Skip to content

Add native offline NeRD for Cartpole and ANYmal C - #8825

Draft
ooctipus wants to merge 2 commits into
isaac-sim:mainfrom
ooctipus:feat/native-nerd-tasks
Draft

ooctipus wants to merge 2 commits into
isaac-sim:mainfrom
ooctipus:feat/native-nerd-tasks

Conversation

@ooctipus

@ooctipus ooctipus commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Add native offline NeRD workflows for Cartpole and flat/rough ANYmal C: collect transitions through recorder terms, fit resumable dynamics from HDF5, and train or play policies through Isaac Lab's normal reinforcement-learning entrypoints.

NeRD consumes the actual applied motor effort at each physics step. Actuators retain position/velocity commands, clipping and internal state. The Newton solver owns learned physics and CUDA-graph state writes; task configurations own capture schemas and recipes; isaaclab_rl.nerd owns fitting. Rough terrain preserves live contact conditioning, terrain-aware resets and checkpoint validation.

Dependencies: shared recorder capture/storage (#8822) is merged into main. This branch is rebased onto that merge and is independent of SuperMimic/G1 (#8826). The broader PhysicsNeMo ownership migration remains separate in #8835.

The NeRD guide covers recording, fitting, policy training, logging, checkpoint upload and recovery. NeRD uses the shared Newton backend and stateless solver hooks; its solver owns learned history and Torch allocation lifetime. Legacy target-conditioned/incomplete checkpoint contracts remain rejected; no compatibility aliases are added.

Validation

The full warnings-as-errors Sphinx HTML build passed for this branch.

  • In this isolated branch, 5 NeRD tests passed: four capture/fit/resume/deployment configurations plus the relocated NeRD architecture gate. The cases cover Cartpole/ParallelNeRD, flat ANYmal/ParallelNeRD, flat ANYmal/VectorNeRD and rough ANYmal/ParallelNeRD, including applied-effort capture, contact history, checkpoint mismatch rejection and repeated graph resets.
  • Full repository formatting/changelog gates and git diff --check passed.
  • Verified imports resolve to this checkout with installed editable-package fallback disabled; the SuperMimic modules are unavailable. The rebase removes the obsolete NeRD manager subclass and reads model/state/control from the shared Newton backend.
  • Fresh fitting and policy integration results from Integrate native NeRD and SuperMimic with Cartpole, ANYmal C and G1 #8806 remain applicable: ANYmal fitting, Cartpole fitting, recovery and PPO smokes, and rough-terrain training. Splitting this PR does not constitute a new training run.

Dependencies and limits

PhysicsNeMo Robotics is optional. The validated environment uses development revision a81160ef and local attention-accumulation fix ee6d2e0, with PhysicsNeMo 2.1.1. Push access to that dependency was denied; safe FP16 fitting still depends on the unpublished fix, and a released compatible package combination remains unresolved.

The solver fixes robot parameters/materials while permitting supported static terrain changes through live contacts. Independent moving objects, per-surface materials, external body wrenches and force/joint-wrench sensors remain unsupported. Solver-side motor drives and MuJoCo-specific actuators are rejected when they generate effort beyond the captured boundary. Existing wrench diagnostics and optimized reconstruction kernels remain external experiments; this PR does not advertise sensor accuracy or learned-rollout convergence.

Type of change

  • Native learned-physics integration, task configurations and offline fitting
  • Solver-configuration fixes and checkpoint-contract migration
  • Documentation update

Checklist

  • Read the contribution guidelines
  • Ran repository formatting and changelog checks
  • Updated documentation
  • Validated changed behavior and applied the test-audit criteria
  • Added package changelog fragments and independent minor-version markers
  • Contributor already listed in CONTRIBUTORS.md
  • No runtime warnings (existing dependency/backend warnings remain)

@ooctipus
ooctipus force-pushed the feat/native-nerd-tasks branch from 6896d27 to a57fb3f Compare November 2, 2026 22:30
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Nov 2, 2026
@ooctipus

ooctipus commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team isaac-mimic Related to Isaac Mimic team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant