Alegant: a elegant training framework
Project description
Alegant
Alegant is an elegant training framework for PyTorch models.
Install Alegant
Before installing Alegant, please make sure you have the following requirements:
- Python >= 3.7
- torch >= 1.9
Simple installation from PyPI
pip install alegant
To install fairseq and develop locally:
python setup.py develop
Usage
To use alegant, follow the steps below:
- Define your Model.
- Define your DataModule.
- Define your Trainer.
- Run the training script using the following command:
python --config_file run.py
Make sure to replace config_file with the path to your configuration file.
Configuration
To customize the training process, you need to provide a configuration file. This file specifies various parameters such as dataset paths, model architecture, hyperparameters, etc. Make sure to create a valid configuration file before running the framework.
Project Structure
alegant
├── tensorboard
├── data
├── alegant
│ ├── data_module.py
│ ├── trainer.py
│ └── utils.py
├── src
│ ├── dataset.py
│ ├── loss.py
│ ├── model
│ │ ├── modeling.py
│ │ ├── poolers.py
│ ├── trainer.py
│ └── utils.py
├── config.yaml
├── run.py
└── setup.py
Contact
If you have any questions or inquiries, please contact us at zhuhh17@qq.com
Thank you for using Alegant! Happy training!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alegant-1.0.4.tar.gz.
File metadata
- Download URL: alegant-1.0.4.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ff7075db0de2032f6611bf6292d219b7b4642af40e024437b7eaf0c7319b1b6
|
|
| MD5 |
6912c63ec17280a53107368c49d56b67
|
|
| BLAKE2b-256 |
159acf3087caf1eebe2a58598fee39bc3d9ba664bee994dbcd635c715d9c04db
|
File details
Details for the file alegant-1.0.4-py3-none-any.whl.
File metadata
- Download URL: alegant-1.0.4-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff01c9ac3fb869138f12a0d44cfaf2d34dae9f639fd9d8f4fcf3bcb99f0c6f92
|
|
| MD5 |
61eda8251928dcfdaba4802e57d9dcfd
|
|
| BLAKE2b-256 |
9d6cacf3ad79bacc1b7c6bd7879858d0f87c60157ff9e181f2f226e74faf5f98
|