Nimrod
Description
This is a repo with minimal tooling, modules, models and recipes to get easily get started with deep learning training and experimentation with an emphasis on speech, audio and language modeling.
Install
Requires Python 3.10 to 3.12 (PyTorch 2.9).
Install using Pip
pip install slg-nimrod
The core install covers the models, image and text datasets and training.
Optional stacks are extras: audio, diffusion, image, tracking.
nimrod.models.diffusion needs the diffusion extra, and
nimrod.models.ngram needs kenlm, installed separately
(https://github.com/kpu/kenlm). Install all extras with:
pip install "slg-nimrod[all]"
Usage
Check recipes in recipes/ folder. E.g. for a simple digit recognizer
on MNIST:
git clone https://github.com/slegroux/nimrod.git
python train.py experiment=mnist_mlp data.num_workers=8 trainer.max_epochs=20
head config/train.yaml
All the parameters of the experiment are editable and read from a .yaml file which details:
- data and logging directory paths
- data module with data source path and batching parameters
- model architecture
- trainer with hardware acceleration and number of epochs
- callbacks for early stopping and automatic logging to Wandb
Docker
You might want to use docker containers for reproductible development environment or run your project in the cloud
make docker-build
docker pull slegroux/nimrod
docker run -it --rm -p 8888:8888 slegroux/nimrod /bin/bash
You can also use docker-compose to define services and volumes
cd .devcontainer
docker-compose up
docker-compose down
Develop
pip install -e .
Hyperparameter tuning
to compare training results on different model parameters:
python train.py --multirun experiment=mnist_mlp model.nnet.n_h=16,64,256 logger=tensorboard trainer.max_epochs=5
Server
st webapp
Run a simple digit recognizer webapp with GUI
cd server
./run_st_app.sh
Authors
2023 Sylvain Le Groux sylvain.legroux@gmail.com
Metadata
Release files for slg-nimrod 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slg_nimrod-0.1.0.tar.gz | 72.6 kB | Without provenance | Details for slg_nimrod-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slg_nimrod-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for slg_nimrod-0.1.0-py3-none-any.whl |
Total release size: 157.1 kB
Release files / slg_nimrod-0.1.0.tar.gz
| Download URL | slg_nimrod-0.1.0.tar.gz |
|---|---|
| Size | 72.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4dda0451512c42b5d63027924d8bb20d516dc4b13e3a5693c2eaa00e020db1af
|
|
BLAKE2b-256 checksum How to use checksums |
f9f58eb542e34fab2afad02f19751ea92233125852e986e576923e6accca908c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Release files / slg_nimrod-0.1.0-py3-none-any.whl
| Download URL | slg_nimrod-0.1.0-py3-none-any.whl |
|---|---|
| Size | 84.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4de3d7d5873f959c3350b535a8299d51d994130e86cb871331c5cf7901c5137
|
|
BLAKE2b-256 checksum How to use checksums |
a348106b06bc6a2c1a5ed324dc65fc7d8ae477ca8be03bbe0843dd47fb28926b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Security for slg-nimrod 0.1.0
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.