NVFlow is the workflow orchestration platform for NeMo-based data generation, training, and evaluation. Projects define workflows from their own stages and from NVFlow's shared stages, such as the NeMo Gym and document-grounded synthetic data generation (SDG) suites. NVFlow validates, plans, packages, and runs those workflows through its direct Slurm engine or on operator-supplied Ray Jobs clusters.
Domain teams package their application logic as projects, optionally define scenario DAGs as recipes, and reuse complete workflow definitions across them. Projects retain ownership of their data, models, prompts, stages, dependencies, documentation, and quality.
- Project — A self-contained, distributable application bundle.
- Recipe — An optional named project-scoped DAG of reusable workflows.
- Workflow — A runnable YAML definition that selects, orders, and configures stages for one objective.
- Stage — A reusable Python unit of work, such as preparing data, training a model, or evaluating checkpoints. A stage is either owned by a project or provided by NVFlow as a shared stage.
- Task — A scheduler-level command or service contributed by a stage.
Project
├── Workflow
│ └── Stage
│ └── Task
└── Recipe (optional)
└── Workflow references and dependencies
“Step” is an informal documentation or output label. The formal NVFlow
execution unit is a stage selected through pipeline_stages. See
Core concepts for configuration inheritance,
planning, targets, and receipts.
- Compose ordered, dependency-aware stages with declarative YAML.
- Keep application code and dependencies in self-contained projects.
- Validate configuration and inspect the launch plan before submitting work.
- Use the same workflow definition through the CLI or Python API.
Platform code, including the shared stages under nvflow/stages/, lives under
nvflow/. In-repo projects—including the copyable starter—live under
projects/. See
Core concepts for ownership boundaries.
Prerequisites:
- Git
- uv
- Python 3.13.14 (NVFlow supports
>=3.13.14,<3.14) - A C++ compiler: gcc and g++ on Linux, or the Xcode Command Line Tools on
macOS. A project's first workflow command builds its environment, which
compiles
editdistance, a NeMo-Skills dependency that publishes no Python 3.13 wheels. - Linux or macOS
On macOS, Apple silicon is required. Intel macOS is not supported because compatible PyTorch wheels are unavailable.
curl -LsSf https://astral.sh/uv/install.sh | sh
git clone https://github.com/NVIDIA/nvflow.git
cd nvflow
uv syncCan't clone or install where you run
nvflow? Use thenvflow-clientcontainer instead. It bundles the CLI and every project's environment, so that host needs only the image, an SSH key, and a cluster config. Build it once on a connected host withscripts/build_images.sh nvflow-client; see Remote and air-gapped launch.
The checkout installs the lightweight NVFlow bootstrap. Each selected project gets a full isolated cached environment containing the execution stack and that project's launcher dependencies; project and workflow discovery do not create it.
Repository contributors should also install the development tools and commit hooks:
uv sync --all-extras --group ci
uv run pre-commit install--all-extras installs the ray, execution, and dev extras: Ray Jobs
support, the execution stack, and the contributor tools. The ci group adds
project-test dependencies used by the full suite. See
CONTRIBUTING.md for contribution requirements.
Before using
nvflow planornvflow run, choose an explicit target with--cluster. Complete INSTALL.md, then set up a target with Slurm execution or Ray execution, and return here. Either target needs:
- the worker images:
.sqshfiles on Slurm, or the clusters' images on Ray;- the models required by the selected workflow; and
- writable data and output mounts.
Both target types can launch from a workstation through an
ssh_tunnelblock; see Remote and air-gapped launch.
For detailed prerequisites and expected output, follow Run your first workflow.
The starter contains the smallest complete workflow:
uv run nvflow list-projects
uv run nvflow list-workflows -p starter
uv run nvflow list-stages \
--workflow starter:generateThe minimal starter intentionally defines no recipe. Recipes remain optional; projects can expose direct workflows, selector-keyed recipe DAGs, or both.
list-workflows prints selectors accepted by every command that loads a workflow.
list-stages shows the active stages for one selected workflow. The first
validate, plan, or run may pause and require network access while NVFlow
prepares the full project execution environment; later commands reuse it.
Use uv run nvflow list-stage-types to discover NVFlow's shared stages, including
NeMo Gym rollouts, NeMo-RL SFT and GRPO training, and a generic train/validation
split. See Discover shared stage types
for namespace filtering, detailed inspection, and workflow uses examples, and
Train with NVFlow's shared stages for training.
Inspect its configuration locally:
uv run nvflow validate \
--workflow starter:generate
uv run nvflow show-config \
--workflow starter:generateThese commands do not require scheduler access and do not submit work. Learn what they check and see their options under Validate and Inspect configuration.
After completing the required execution setup, inspect the target-resolved plan
and submit, passing your Slurm or Ray target as --cluster:
uv run nvflow plan \
--workflow starter:generate \
--cluster my_cluster
uv run nvflow run --all \
--workflow starter:generate \
--cluster my_clusterOn Ray, run returns once its controller is submitted; follow the run with
Monitor and verify.
Static plan does not inspect workflow storage; --live adds read-only
filesystem discovery, through the target on Slurm and on the launcher on Ray.
Neither mode submits work. See
Plan for details.
Use --config projects/starter/workflows/generate.yaml instead of --workflow
when you need to select an arbitrary YAML path.
See
Run the configured workflow
for target, environment, external-project, and output-format options.
- Starter project: overview and first-workflow guide
- Finance project: quick start and workflow guides for the validated quick-start path
- HopChain project: quick start and project overview
Use nvflow list-recipes to discover connected scenarios across projects, or
add --project <name> to narrow the list. Use
nvflow list-workflows --project <name> to discover reusable single-workflow definitions.
Start from the project starter:
cp -R projects/starter ~/my-project
cd ~/my-projectThen follow Create an NVFlow project and the project and recipe contract.
In the copied project, run uv sync once to install its lightweight nvflow
bootstrap, then use uv run nvflow .... The first semantic command may pause and
require network access while preparing the full cache-owned execution
environment; uv run nvflow sync-project is only optional prewarming for CI or
offline use. The project does not copy
NVFlow's resolver policy. Its small [tool.uv.sources].nvflow entry pins only
the tested NVFlow Git revision used to bootstrap without a package registry.
Use the documentation hub to navigate by role:
- Core concepts
- Platform architecture
- Project and recipe contract
- Workflow loading and planning
- CLI and Python API
- Cluster configuration
- Slurm execution
- Ray execution
- Remote launch
nvflow/ # Platform source and public contracts
projects/ # Maintained projects and copyable starter
docs/ # Platform, operator, contributor, and maintainer docs
cluster_configs/ # Cluster templates
dockerfiles/ # Worker and optional launcher images
scripts/ # Image build, container staging, and CI scripts
tests/ # Platform contract and integration tests
Project contributions should include project-owned tests and documentation. Platform changes must keep concrete project dependencies out of the platform package.