Skip to content

Concepts

Most ML projects do not become difficult because torch.nn.Module is difficult. They become difficult because dataset handling, model wiring, training, evaluation, logging, and export gradually turn into project-specific glue code.

A reusable project template helps with folders, but it still encourages copying implementations between projects. NexuML takes a different approach: reusable pieces live in libraries, while a scenario composes those pieces into an explicit experiment.

The design borrows the useful part of block-based systems such as Simulink: reusable blocks, explicit inputs/outputs, clear data flow, and per-block configuration, while keeping the implementation in normal Python/PyTorch code.

The core concepts

A useful shorthand

If you remember only four things:

  1. ScenarioSpec describes the experiment.
  2. Typed definitions describe reusable components.
  3. TensorDict keys make the pipeline flow explicit.
  4. Lightning runs the lifecycle after NexuML materializes the graph.

For hands-on learning, use the Tutorials instead of reading every concept page first.