A light-weight system for training AI networks using PyTorch
Project description
What is Helios?
Named after Greek god of the sun, Helios is a light-weight package for training ML networks built on top of PyTorch. It is designed to abstract all of the “boiler-plate” code involved with training. Specifically, it wraps the following common patterns:
Creation of the dataloaders.
Initialization of CUDA, PyTorch, and random number states.
Initialization for distributed training.
Training, validation, and testing loops.
Saving and loading checkpoints.
Exporting to ONNX.
It is important to note that Helios is not a fully fledged training environment similar to Pytorch Lightning. Instead, Helios is focused on providing a simple and straight-forward interface that abstracts most of the common code patterns while retaining the ability to be easily overridden to suit the individual needs of each training scheme.
Main Features
Helios offers the following functionality out of the box:
Resume training: Helios has been built with the ability to resume training if it is paused. Specifically, Helios will ensure that the behaviour of the trained model is identical to the one it would’ve had if it had been trained without pauses.
Automatic detection of multi-GPU environments for distributed training. In addition, Helios also supports training using torchrun and will automatically handle the initialisation and clean up of the distributed state. It will also correctly set the devices and maps to ensure weights are mapped tot he correct location.
Registries for creation of arbitrary types. These include: networks, loss functions, optimizers, schedulers, etc.
Correct handling of logging when doing distributed training (even over multiple nodes).
Installation
Dependencies
Helios requires:
Python (>= 3.11)
TQDM (>= 4.66.2)
OpenCV (>= 4.10.0.84)
Tensorboard (>= 2.17.1)
PyTorch (>= 2.4.0)
Torchvision (>= 0.19.0)
ONNX (>= 1.16.1)
ONNXRuntime (>= 1.19.0)
Matplotlib (>= 3.8.4)
Numpy (>= 2.0.0)
User Installation
You can install Helios using pip:
pip install -U helios-ml
If you require a specific version of CUDA, you can install with:
pip install -U helios-ml --extra-index-url https://download.pytorch.org/whl/cu<version>
Documentation
Documentation available here.
Contributing
There are three ways in which you can contribute to Helios:
If you find a bug, please open an issue. Similarly, if you have a question about how to use it, or if something is unclear, please post an issue so it can be addressed.
If you have a fix for a bug, or a code enhancement, please open a pull request. Before you submit it though, make sure to abide by the rules written below.
If you have a feature proposal, you can either open an issue or create a pull request. If you are submitting a pull request, it must abide by the rules written below. Note that any new features need to be approved by me.
If you are submitting a pull request, the guidelines are the following:
Ensure that your code follows the standards and formatting of Helios. The coding standards and formatting are enforced through the Ruff Linter and Formatter. Any changes that do not abide by these rules will be rejected. It is your responsibility to ensure that both Ruff and Mypy linters pass.
Ensure that all unit tests are working prior to submitting the pull request. If you are adding a new feature that has been approved, it is your responsibility to provide the corresponding unit tests (if applicable).
License
Helios is published under the BSD-3 license and can be viewed here.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file helios_ml-1.2.0.tar.gz
.
File metadata
- Download URL: helios_ml-1.2.0.tar.gz
- Upload date:
- Size: 137.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72529b8c4a0d048eeb0b830dc8501c267a7527f055154cc0eaf32ecaf307a75d |
|
MD5 | 1269a162e2d025702b9ff5fd454a9224 |
|
BLAKE2b-256 | 4b961cb0a10647bbf0bf67f96eb0ef93f45a9867e190bcbde2632d73c48096e5 |
Provenance
The following attestation bundles were made for helios_ml-1.2.0.tar.gz
:
Publisher:
publish.yml
on marovira/helios-ml
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
helios_ml-1.2.0.tar.gz
- Subject digest:
72529b8c4a0d048eeb0b830dc8501c267a7527f055154cc0eaf32ecaf307a75d
- Sigstore transparency entry: 146876132
- Sigstore integration time:
- Predicate type:
File details
Details for the file helios_ml-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: helios_ml-1.2.0-py3-none-any.whl
- Upload date:
- Size: 69.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc95f47bfef20c68099baf9fa215fb0fec2bd75ccfe4de5c78bf3301fc9a023a |
|
MD5 | 203d6a006bd66a1c58853017b7536192 |
|
BLAKE2b-256 | 1c2353512c39b28eca417a348a9537afa564f9cea5ced1871a9a5f4c6dde4503 |
Provenance
The following attestation bundles were made for helios_ml-1.2.0-py3-none-any.whl
:
Publisher:
publish.yml
on marovira/helios-ml
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
helios_ml-1.2.0-py3-none-any.whl
- Subject digest:
dc95f47bfef20c68099baf9fa215fb0fec2bd75ccfe4de5c78bf3301fc9a023a
- Sigstore transparency entry: 146876133
- Sigstore integration time:
- Predicate type: