active-learning-and-deployment
Operate PhysicsNeMo active-learning orchestration, support utilities, and ONNX export/runtime checks.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- active-learning-and-deployment
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate PhysicsNeMo active-learning orchestration, support utilities, and ONNX export/runtime checks.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/active-learning-and-deploy.md2.0 KB
- 参考文档references/troubleshooting.md1.5 KB
- 脚本scripts/onnx_export_smoke.py1.5 KB
03 SKILL.md 正文
Active learning and deployment
Use this sub-skill when the task mentions PhysicsNeMo active learning, acquisition/query strategies, label or metrology loops, active-learning checkpoint/restart, experiment logging around iterative fine-tuning, optimizer/metric helpers for those loops, or ONNX export/runtime checks.
Route decisions
- Active learning route: Use when the user is not just training a fixed dataset, but iteratively performs
training -> metrology -> query -> labeling -> data integration. Start with active-learning-and-deploy. - Ordinary training route: If the user only needs a model family, a datapipe, distributed launch, mesh preprocessing, or diffusion sampler/training recipe, route to the corresponding sibling sub-skill instead of forcing the active-learning
Driver. - Deployment/export route: Use this sub-skill for
physicsnemo.deploy.onnx.export_to_onnx_stream, ONNX byte-stream checks, optionalonnxruntimeinference, and export caveats. For model architecture support, first use../model-selection/. - Support utility route: Use this sub-skill for the active-learning-facing subset of
physicsnemo.utilslogging/checkpoint/capture helpers,physicsnemo.metricsmetrology choices, andphysicsnemo.optim.CombinedOptimizer. For distributed checkpoint/domain-parallel details, route to../distributed-and-domain-parallel/. - Sibling routes: Data loading and TensorDict/file-format questions go to
../datapipes/; mesh object validation and geometry go to../mesh-and-geometry/; diffusion/generative internals go to../diffusion-and-generative/; model-family selection goes to../model-selection/.
Operating sequence
- Confirm whether the workflow is an active-learning loop, an ONNX/export check, or a support-utility question.
- For active learning, identify the learner, mutable training data pool, unlabeled pool, query strategy, label strategy or oracle, metrology strategy, queue type, checkpoint policy, logging backend, and CPU/CUDA/distributed constraints.
- Compose the root-exported active-learning configs and driver. Import protocols from
physicsnemo.active_learning.protocols, not from the active-learning package root. - Register custom strategies if they must be serialized or reconstructed from checkpoints.
- For ONNX export, run the bundled tiny smoke first when possible:
scripts/onnx_export_smoke.py. Treatonnxruntimeas optional and only needed for runtime inference, not for export. - If anything fails, use troubleshooting before changing model/data code.
High-value checks
- Root active-learning exports are limited to the driver, default loop, config classes, and registry; protocol classes live in the protocols submodule.
- Config JSON does not carry large/non-serializable data pools, distributed manager objects, collate functions, devices, or strategy runtime state; re-provide them at restart.
- Active-learning queues should be serializable via
to_list()/from_list()or picklable if queue state matters. - Avoid credentialed tracking defaults. Initialize W&B/MLflow explicitly only when the user supplied the needed project/entity/tracking details or requested offline logging.
- ONNX export moves inputs and model through CPU. Do not export in the middle of CUDA graph/static-capture training.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).