Composable ML pipelines for reproducible experiments.
NexuML is a modular PyTorch framework for building machine-learning systems from reusable, typed components connected through explicit TensorDict keys. A ScenarioSpec describes data, model pipelines, training, evaluation, logging, export, and execution in one place and can be persisted as validated YAML.
Why NexuML?
ML projects often start as a clean notebook and gradually collect project-specific dataset code, model wiring, training loops, evaluation scripts, and export logic. Copying a project template improves the folder structure, but it still duplicates implementations and makes experiments harder to reproduce or extend.
NexuML separates reusable implementations from experiment composition. Datasets, model blocks, evaluation algorithms, and loader backends can live in libraries; scenarios assemble those pieces into explicit pipelines without reimplementing the training lifecycle for every project.
Core ideas
- Typed component definitions — Python scenarios construct concrete Pydantic definitions directly; stable registry identities are used for discovery and persisted YAML.
- TensorDict pipelines — named tensors flow through ordered stages using explicit
keys_inandkeys_outcontracts. - Declarative scenarios —
ScenarioSpeccomposes data, pipeline, training, evaluation, logging, checkpoint, export, and execution configuration. - One Lightning lifecycle — PyTorch Lightning owns the training loop; local and Ray execution reuse the same NexuML session semantics.
- Pluggable data paths — PyTorch, NVIDIA DALI, and tensor-shard loaders plus dataset export to NumPy, mmap, Torch, TensorDict memmap, WebDataset, and tensor shards.
- Post-training evaluation — typed evaluation definitions materialize stateful algorithms while fitted pipeline layers can perform post-train processing before test.
- Portable model artifacts — export a compiled pipeline with weights, resolved configuration, metadata, and dependency information.
- CLI workflow — inspect registries and backends, resolve scenarios, build pipelines, train, tune, export datasets, and package models.
Install
NexuML is currently published on TestPyPI. PyPI remains the fallback for dependencies.
For most users, install the framework together with the reusable base library:
uv pip install --index https://test.pypi.org/simple --default-index https://pypi.org/simple "nexuml[library]"
Install only the framework and CLI when you want to provide all components yourself:
uv pip install --index https://test.pypi.org/simple --default-index https://pypi.org/simple nexuml
NVIDIA DALI, Ray, tracking, tuning, S3, and export integrations are optional. See the installation guide before adding platform-specific extras.
Container image
The complete Linux AMD64 development and training environment is also published with an explicit NexuML and CUDA version:
docker pull ghcr.io/nexufed/nexuml:0.2.0-cuda12.8.1
docker run --rm -it --gpus all ghcr.io/nexufed/nexuml:0.2.0-cuda12.8.1
The image contains both NexuML packages and all optional extras. See the installation guide for host requirements and other tags.
First look
With the base library installed, inspect a real scenario without starting a training job:
nexuml registry list scenarios
nexuml resolve cifar-resnet
nexuml build configs/cifar-resnet.yaml
This shows the central NexuML flow: a Python scenario is resolved to a reproducible configuration and then materialized into a validated TensorDict pipeline. Continue with Get started for training requirements.
Learn by building
The NexuML Tutorial repository is the home for complete hands-on projects. It builds an external NexuML library from scratch rather than hiding the framework behind finished built-in components.
The learning path starts with MNIST library basics, then adds file-backed Speech Commands audio with native DALI loading and demonstrates pipeline composition by swapping a CNN encoder for a Transformer while reusing the rest of the system.
Version note: the tutorial repository evolves independently from NexuML. NexuML 0.2 uses typed component definitions and rejects the legacy selector/parameter-bag syntax, so use a tutorial revision compatible with the NexuML version you install.
Documentation
- Get started — install NexuML and inspect your first scenario.
- Tutorials — complete hands-on projects and the tutorial compatibility note.
- Guides — accomplish a specific task such as training, tuning, exporting, or adding a component.
- Concepts — understand the architecture, TensorDict data flow, definitions, discovery, and scenarios.
- Reference — exact CLI, configuration, backend, decorator, and Python API information.
Extending NexuML
External libraries can provide their own typed layers, data sources, evaluation algorithms, loader backends, and scenarios through the nexuml.libraries entry-point group or a local library root. See Build a custom library for the package structure and component contracts.
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
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 nexuml-0.2.1.tar.gz.
File metadata
- Download URL: nexuml-0.2.1.tar.gz
- Upload date:
- Size: 129.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f53186ea5750c42c40861057371bc85754eaaf8a9520bffa751ece09a3c2695
|
|
| MD5 |
d9c2f5f40382cecf3ba0b9efa8703f33
|
|
| BLAKE2b-256 |
804a6c20a56d737835518450a5ba5726beb92af74ed6059fd9784f4e445df744
|
Provenance
The following attestation bundles were made for nexuml-0.2.1.tar.gz:
Publisher:
release.yml on NexuFed/NexuML
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nexuml-0.2.1.tar.gz -
Subject digest:
9f53186ea5750c42c40861057371bc85754eaaf8a9520bffa751ece09a3c2695 - Sigstore transparency entry: 2704403123
- Sigstore integration time:
-
Permalink:
NexuFed/NexuML@bbd1b2c00ccff467695e533ff9a01464f22758e5 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/NexuFed
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bbd1b2c00ccff467695e533ff9a01464f22758e5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nexuml-0.2.1-py3-none-any.whl.
File metadata
- Download URL: nexuml-0.2.1-py3-none-any.whl
- Upload date:
- Size: 162.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d3f7dbe152e94682735211d0c23aa5a91b4ae5ffc4d7a513f96e981afe77aac
|
|
| MD5 |
f8190e76264b4f6ef43889cda0362410
|
|
| BLAKE2b-256 |
a690233882641db19a5c842bf98f75b5b41239aa002d0556c73a322b0a0edae9
|
Provenance
The following attestation bundles were made for nexuml-0.2.1-py3-none-any.whl:
Publisher:
release.yml on NexuFed/NexuML
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nexuml-0.2.1-py3-none-any.whl -
Subject digest:
6d3f7dbe152e94682735211d0c23aa5a91b4ae5ffc4d7a513f96e981afe77aac - Sigstore transparency entry: 2704403135
- Sigstore integration time:
-
Permalink:
NexuFed/NexuML@bbd1b2c00ccff467695e533ff9a01464f22758e5 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/NexuFed
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bbd1b2c00ccff467695e533ff9a01464f22758e5 -
Trigger Event:
release
-
Statement type: