Skip to main content

A minimalist Python project for deep learning experiment management. It uses Ray for core distributed environment and backend setup, and provides basic, no-frills tracking for models, optimizers, and LR schedulers.

Project description

Main codecov

TinyExp

A simple Python project for deep learning experiment management.

TinyExp lets you launch experiments with one click: the file you edit becomes the entrypoint to your experiment.

Usage

pip install tinyexp
  1. Run mnist example(By default, It will trained on CPU)
import tinyexp
from tinyexp.examples.mnist_exp import Exp, store_and_run_exp
store_and_run_exp(Exp)
  1. or:
python tinyexp/examples/mnist_exp.py
  1. Run mnist example with overridden config:
python tinyexp/examples/mnist_exp.py dataloader_cfg.train_batch_size_per_device=16

see all available configs:

python tinyexp/examples/mnist_exp.py mode=help

see all available configs with overridden configs:

python tinyexp/examples/mnist_exp.py mode=help dataloader_cfg.train_batch_size_per_device=16

More Examples

  1. ImageNet ResNet-50 Example with Extremely Fast Data Loading (By default, all available GPUs will be used.)
# export IMAGENET_HOME=yours_imagenet_dir

import tinyexp
from tinyexp.examples.resnet_exp import ResNetExp, store_and_run_exp
store_and_run_exp(ResNetExp)

Develop

  1. prepare env
# 1. clone repo
git clone https://github.com/HKUST-SAIL/tinyexp.git
# 2. Set Up Your Development Environment, This will also generate your `uv.lock` file
make install
source .venv/bin/activate
  1. After development, checking whether the code is standardized
# Initially, the CI/CD pipeline might be failing due to formatting issues. To resolve those run:
uv run pre-commit run -a

License

MIT License. See LICENSE.

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

tinyexp-0.0.2.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

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

tinyexp-0.0.2-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file tinyexp-0.0.2.tar.gz.

File metadata

  • Download URL: tinyexp-0.0.2.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for tinyexp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5309d8b4dcad9974bf03bc0eb1cb73182c3e618e8ae9cca4d43e532df8912268
MD5 6f422e36be4381f94fa360b65df23e7c
BLAKE2b-256 dca87931ebaec4b9d74ecd4cab7f5c5f8a6deb889667abd5e9012f8bf538c281

See more details on using hashes here.

File details

Details for the file tinyexp-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tinyexp-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for tinyexp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7abe1ea7d76cd466d6e5b3ced1b79411ab1269f5dfe92c395d08d786be1ff8db
MD5 fad7a2fa31351cbbe3b42f0281cf3fb4
BLAKE2b-256 dbf6181a19bfb1f291ceb2a357a690c7efcfdd3add9d9e5caf55add10a49e207

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