AGENT SKILL

physicsnemo

Route PhysicsNeMo users to the right model, data, scaling, mesh, diffusion, active-learning, or deployment workflow.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
physicsnemo
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Route PhysicsNeMo users to the right model, data, scaling, mesh, diffusion, active-learning, or deployment workflow.
disable-model-invocation
true

02 资源文件 7

03 SKILL.md 正文

PhysicsNeMo

Use this repo skill for NVIDIA PhysicsNeMo: a scientific-ML framework for physics-aware models, data pipelines, mesh processing, distributed/domain-parallel execution, diffusion workflows, active learning, and ONNX export.

This skill is a router, not a full manual. Start here to choose the right sub-skill, then follow the bundled reference files and scripts for the detailed workflow.

Quick start

  • Public install: pip install nvidia-physicsnemo
  • If you need a specific backend or optional workflow, read optional dependencies first.
  • Tiny smoke: run python scripts/physicsnemo_environment_smoke.py after install.
  • For contributor/editable use in a local checkout, keep the public package name nvidia-physicsnemo and do not depend on this repository path at runtime.

What to route where

Root import and package shape

  • physicsnemo.models root exports only DiT, DoMINO, and FullyConnected.
  • Most model families are imported from their family subpackages, such as physicsnemo.models.fno, physicsnemo.models.meshgraphnet, or physicsnemo.models.graphcast.
  • physicsnemo.mesh root exports the core object model; validation, I/O, sampling, repair, and geometry helpers live in submodules.
  • physicsnemo.active_learning root exports the driver/config/registry surface; protocol interfaces live in its protocols submodule.

If a user asks for an exact class name, backend option, or import path, use package API map and the relevant sub-skill reference rather than guessing from memory.

Read these first when needed

  • Install and environment — install commands, backend notes, and the package smoke check.
  • Optional dependencies — extras such as cu12, cu13, gnns, mesh-extras, datapipes-extras, sym, natten, and Transformer Engine.
  • Troubleshooting — import mistakes, missing extras, CUDA/backend issues, data/weight access, and long-example overrun prevention.
  • Repository provenance — source commit, package version, dirty-state summary, and evidence paths.

Selection hints

When the task is ambiguous, resolve these axes before diving deeper:

  1. Data shape: regular grid, weather lat-lon or HEALPix, unstructured mesh/graph, point cloud, particle graph, or coordinate/tabular inputs.
  2. Task type: surrogate/regression, autoregressive forecasting, physics-informed training, diffusion/generative, active learning, deployment, or scaling.
  3. Constraints: CUDA availability, optional extras, external datasets, pretrained weights, latency, and whether the user wants a tiny smoke or a full example.

If the route still depends on the exact model family, open model-selection first.

Minimal verification workflow

  1. Install the package and any needed extras.
  2. Run python scripts/physicsnemo_environment_smoke.py.
  3. Route to the appropriate sub-skill.
  4. Use that sub-skill’s bundled reference files for the deep workflow.

Notes

  • Do not send users to original repo paths at runtime; only use bundled references and scripts.
  • Do not treat large example training jobs as smoke tests.
  • Keep experimental APIs labeled experimental when a workflow explicitly depends on them.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351