Skip to main content

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!

Metadata

Release files for alegant 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alegant 1.0.6
File Size Uploaded Provenance Actions
alegant-1.0.6.tar.gz 10.3 kB Without provenance Details for alegant-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alegant 1.0.6
File Interpreter ABI Platform Actions
alegant-1.0.6-py3-none-any.whl Python 3 none any Details for alegant-1.0.6-py3-none-any.whl

Total release size: 21.0 kB

Release files / alegant-1.0.6.tar.gz

Download URL alegant-1.0.6.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b21fff641120932cb4b3812d247157882f1ddc36311043b7006a3d8bf1ccb229
BLAKE2b-256 checksum
How to use checksums
ada02f6befc2c5d152b6a535e6ece32fb46e55d5ecbd544cd54008059a666d46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.0

Release files / alegant-1.0.6-py3-none-any.whl

Download URL alegant-1.0.6-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29e02b5fef51a64b109d3c6744f6026c2504e68d2806986e34028556d05ccab7
BLAKE2b-256 checksum
How to use checksums
1b8eeae006b6e37e6bcac266e6772f1739b8a2f7dd375dd17c11cc36c98047d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.0

Security for alegant 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page