Skip to main content

Config-driven PyTorch training framework: assemble nets, data, losses and trainers from YAML

Project description

Echelon3

Config-driven PyTorch training framework. Every component of a training run — network, dataset, augmentations, losses, metrics, optimizer, scheduler, trainer, export — is described in a YAML config as a module / type / config triple and instantiated dynamically:

net:
  module: echelon3.nets.classifier   # import path (or a path to a .py file)
  type: ClassifierNet                # class or factory function in that module
  config: { ... }                    # constructor kwargs

There is no component registry: anything importable can be plugged in — classes from echelon3, from torch/timm/torchmetrics/albumentations, or from your own project code living next to your configs.

Documentation: https://veryviolet.github.io/echelon3/

Install

pip install echelon3

Train

echelon3-train --config-dir ./configs --config-name my_experiment

Multi-GPU (DDP):

CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --nproc_per_node=4 \
    $(which echelon3-train) --config-dir ./configs --config-name my_experiment

dataloaders.train.config.batch_size is the global batch size; under DDP it is split across ranks automatically. Without torchrun the trainer falls back to DataParallel (device / device_ids config keys).

Quick start

See examples/ for a self-contained smoke run: synthetic dataset generation and a minimal classifier config.

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

echelon3-0.5.0.tar.gz (115.2 kB view details)

Uploaded Source

Built Distribution

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

echelon3-0.5.0-py3-none-any.whl (122.3 kB view details)

Uploaded Python 3

File details

Details for the file echelon3-0.5.0.tar.gz.

File metadata

  • Download URL: echelon3-0.5.0.tar.gz
  • Upload date:
  • Size: 115.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for echelon3-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b007cfe5da40341432f9e4fe596b62a259137402fba898298fe4b0ac014792d2
MD5 eddfd86fe0e7b86af403dba8c6bfe94b
BLAKE2b-256 ecb364c81e81ff42dff971a2a4fafdf264589b0b078ca960cdf1703c947dd506

See more details on using hashes here.

Provenance

The following attestation bundles were made for echelon3-0.5.0.tar.gz:

Publisher: publish.yml on veryviolet/echelon3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file echelon3-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: echelon3-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 122.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for echelon3-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4add438e7d5082a01e9c120e8827258be5b25dcb5527c3bf1ec036e8d8b3fee6
MD5 e0513d8afc0c06ac6381138884637ffe
BLAKE2b-256 dc483180e254058a9613c09a3f2bceafea9df2fb9cb86bd752d561fc90e051a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for echelon3-0.5.0-py3-none-any.whl:

Publisher: publish.yml on veryviolet/echelon3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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