Machine Learning tool allowing plug-and-play training for pytorch models
Project description
pyroml
🔥 Machine Learning framework allowing plug-and-play training for pytorch models
Installation
$ git clone https://github.com/peacefulotter/pyroml.git
$ cd pyroml
$ sudo apt install python3.10-venv # check you python version and change it here if !=
$ sudo apt install python3-virtualenv
$ python3 -m venv venv
$ source ./venv/bin/activate
$ pip install -r requirements.txt
Running tests
$ cd tests
$ python main.py # this will launch the training, follow the wandb link to access the plots
$ python pretrain.py # will load the last checkpoint and compute mse on a small part of the dataset, outputs True if model predicts correctly!
Done
- Metrics, with support for custom metrics
- WandB
- Checkpoints
- Load pretrained models from checkpoints
TODO:
- seed
- use ctx:
- type_ctx = nullcontext() if device_type == 'cpu' else torch.amp.autocast(device_type=device_type, dtype=torch.bfloat16) for auto compatibility between model output and dataset target https://github.com/epfml/llm-baselines/blob/main/src/optim/base.py#L14C5-L15C56
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
pyroml-0.0.6.tar.gz
(8.9 kB
view details)
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 pyroml-0.0.6.tar.gz.
File metadata
- Download URL: pyroml-0.0.6.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4af002ebddbf3ea833e0e8aeea892314646ee77fd81f21d9e513f2b6b31b152
|
|
| MD5 |
f4df358d1819a9c11536a861f868c4c7
|
|
| BLAKE2b-256 |
6d5cf48e4172b5ae575a1a34600135b4a4ac581f06be304112d33a55a1df474d
|
File details
Details for the file pyroml-0.0.6-py3-none-any.whl.
File metadata
- Download URL: pyroml-0.0.6-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fc5cf88429e6c982234f846b63d9d8e3340fb9a56137a5d61f5a0fce19f8f44
|
|
| MD5 |
d7a8b3a762da19ce915071dcd6ac57ae
|
|
| BLAKE2b-256 |
67d76dfe33937a3f9eb10e4c12a3b706153df7b22f953e076d976b8e61489bb2
|