Skip to main content

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 Alegant and develop locally:

python setup.py develop

Example

For examples on how to use elegant, please refer to the examples directory in this repository. It contains sample configuration files and code snippets to help you get started.

Usage

To use Alegant, follow the steps below:

  1. Define your Model.
  2. Define your DataModule.
  3. Define your Trainer.
  4. Set your configuration.
  5. Run the training script using the following command:
cd alegant/example
python example_main.py  # for simply use the DataModule and Trainer
python example_runner.py # for using the runner from Alegant

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
├── alegant
│   ├── __init__.py
│   ├── runner.py
│   ├── trainer.py
│   ├── data_module.py
│   ├── utils.py
│   └── example
│       ├── data
│       ├── config.yaml
│       ├── example_main.py
│       ├── example_runner.py
│       ├── logs
│       ├── README.md
│       ├── src
│       │   ├── dataset.py
│       │   ├── loss.py
│       │   ├── model
│       │   │   ├── modeling.py
│       │   │   ├── poolers.py
│       │   ├── trainer.py
│       │   └── utils.py
│       └── tensorboard
└── 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

alegant-1.0.6.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alegant-1.0.6-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file alegant-1.0.6.tar.gz.

File metadata

  • Download URL: alegant-1.0.6.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.0

File hashes

Hashes for alegant-1.0.6.tar.gz
Algorithm Hash digest
SHA256 b21fff641120932cb4b3812d247157882f1ddc36311043b7006a3d8bf1ccb229
MD5 d244e4ffcff4ee6fd5141b3a3d5b92a4
BLAKE2b-256 ada02f6befc2c5d152b6a535e6ece32fb46e55d5ecbd544cd54008059a666d46

See more details on using hashes here.

File details

Details for the file alegant-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: alegant-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.0

File hashes

Hashes for alegant-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 29e02b5fef51a64b109d3c6744f6026c2504e68d2806986e34028556d05ccab7
MD5 114e9e4d29af676ca21817f6a2f77ef1
BLAKE2b-256 1b8eeae006b6e37e6bcac266e6772f1739b8a2f7dd375dd17c11cc36c98047d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page