NVIDIA PhysicsNeMo is an open-source PyTorch framework for physics machine learning
(physics ML), scientific machine learning (SciML), and AI for science and engineering.
It provides reusable library components and end-to-end training recipes.
pip install "nvidia-physicsnemo[cu13]"
For CUDA 12, a basic install, optional features, or source setup, refer to
installation options.
Every visual above comes from a PhysicsNeMo recipe or workflow.
Why PhysicsNeMo
PyTorch-native and composable. Use a complete architecture, a layer, a numerical
operator, or a data transform without replacing your existing PyTorch workflow.
Built for scientific representations. Work with regular grids, meshes, point
clouds, graphs, and nested physical fields while preserving their structure.
Scale the sample itself. Use ShardTensor domain parallelism to split a single
high-resolution sample across GPUs, alongside PyTorch DistributedDataParallel (DDP) or
Fully Sharded Data Parallel 2 (FSDP2).
Explore Recipes
Start from a recipe and adapt it to your data, geometry, physics, and deployment
constraints. Explore by physical domain:
PhysicsNeMo models are ordinary torch.nn.Module objects. Choose a family by the
representation of your data and the task you need to solve. Model names link to source
code. The final column links to examples and papers.
Refer to the model catalog
for the full API and configuration details.
Contents of PhysicsNeMo
The framework is layered so high-level workflows can reuse lower-level scientific
building blocks without forcing those foundations to depend on applications.
flowchart TB
apps["Applications and workflows<br/><a href='https://github.com/NVIDIA/physicsnemo/tree/main/examples'>Examples</a> · <a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/active_learning'>Active learning</a> · <a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/diffusion'>Diffusion</a>"]
blocks["Physics AI building blocks<br/><a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/models'>Models</a> · <a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/datapipes'>Datapipes</a> · <a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/metrics'>Metrics</a> · <a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/domain_parallel'>Domain parallel</a> · <a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/optim'>Optim</a>"]
base["Reusable foundations<br/><a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/mesh'>Mesh</a> · <a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/nn'>NN</a> · <a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/utils'>Utils</a> · <a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/distributed'>Distributed</a> · <a href='https://github.com/NVIDIA/physicsnemo/tree/main/physicsnemo/core'>Core</a>"]
apps -->|"build on"| blocks
blocks -->|"reuse"| base
classDef workflow fill:#F5FAEF,stroke:#76B900,stroke-width:2px,color:#111111
classDef building fill:#EEF7E1,stroke:#76B900,stroke-width:2px,color:#111111
classDef foundation fill:#E8F5D0,stroke:#76B900,stroke-width:2px,color:#111111
class apps workflow
class blocks building
class base foundation
Arrows follow the allowed dependency direction in the
import-layer contract.
The diagram is simplified. Follow the links below for the public surfaces.
Experimental modules
incubate models such as AeroJEPA,
alongside uncertainty quantification, guardrails, parameter-efficient fine-tuning
with LoRA, and other research utilities.
API stability: APIs under physicsnemo.experimental are incubating and may change
between releases. Stable modules follow the project's semantic-versioning policy.
Refer to the changelog for API changes and removals.
Use PhysicsNeMo with Coding Agents
The repository includes two NVIDIA-authored skills for Codex, Claude Code, and other
compatible coding agents:
PhysicsNeMo ShardTensor
helps add domain parallelism, integrate DDP or FSDP2, implement shard-aware
operations, and write multi-GPU correctness tests
(evaluation).
Installation Options
Refer to pyproject.toml
for currently supported Python versions, optional dependency groups, and exact
dependency constraints. The command at the top of this README selects the CUDA 13
backend. Use the CUDA 12 backend instead with:
Specify the CUDA 12.9 PyTorch index because pip does not read the index settings
in pyproject.toml. The CUDA 12 backend is Linux-only and uses PyTorch 2.13,
the newest release with CUDA 12.9 wheels.
For a basic installation that uses PyPI's default PyTorch distribution and does not
install the CUDA-specific RAPIDS packages:
pip install nvidia-physicsnemo
Optional features compose with either backend, for example:
git clone https://github.com/NVIDIA/physicsnemo.git
cd physicsnemo
uv sync --extra cu13
Notice and Disclaimer
Installing PhysicsNeMo downloads its dependencies. Some datapipes and examples
also download datasets or model checkpoints when you ask them to.
NOTICE AND DISCLAIMER: This software automatically retrieves, accesses or interacts
with external materials. Those retrieved materials are not distributed with this
software and are governed solely by separate terms, conditions and licenses. You are
solely responsible for finding, reviewing and complying with all applicable terms,
conditions, and licenses, and for verifying the security, integrity and suitability
of any retrieved materials for your specific use case. This software is provided "AS
IS", without warranty of any kind. The author makes no representations or warranties
regarding any retrieved materials, and assumes no liability for any losses, damages,
liabilities or legal consequences from your use or inability to use this software or
any retrieved materials. Use this software and the retrieved materials at your own
risk.
Before opening a pull request, read the
contribution guide
and coordinate the proposed work with maintainers in an issue or discussion.
Every pull request should correspond to an open issue. For substantial changes,
wait for maintainer feedback before starting implementation.