Skip to content

Separate NeRD model, training and recorder ownership - #1

Merged
ooctipus merged 2 commits into
mehdiataei:mataei/newton-neuralfrom
ooctipus:refactor/nerd-declarative-workflows
Nov 25, 2026
Merged

ooctipus merged 2 commits into
mehdiataei:mataei/newton-neuralfrom
ooctipus:refactor/nerd-declarative-workflows

Conversation

@ooctipus

Copy link
Copy Markdown

Separate NeRD model, training and recording ownership

This refactors the integration in isaac-sim#9200 so learned dynamics use Isaac Lab's existing environment, recorder, preset and Newton construction paths. Recording uses the existing RecorderManager; this PR has no dependency on isaac-sim#9121.

Composition

  • NeRDCfg / task model configurations describe model architecture and physical inputs only. NeRDTrainingCfg independently owns optimization settings.
  • Tasks register their model, training settings and recording environment separately. Recording environments declare exploration actions, reset/termination terms and recorder terms; the normal environment step owns physics and reset ordering.
  • A native dataset output handler exports recorder episodes directly to NeRD trajectories. There is no intermediate HDF5 conversion or recorder-owned simulation loop. Exported episodes are independent native worlds, with invalid padding to the declared maximum episode length.
  • NewtonNeRDManager loads the model once and supplies it explicitly through Newton's solver-construction boundary. Adapters do not retrieve the global simulation context. NewtonBackend consumes setup-time changes while retaining changes queued by initialization consumers.
  • Evaluation selects one explicit checkpoint, resolves policy settings using its training physics, and preserves caller domain/agent overrides. Evaluation solver settings stay with evaluation physics. Runner construction uses the shared RSL-RL inference path.
  • Franka OSC inherits the shared Franka base without acquiring the neural physics alternative. ANYmal recording and deployment share the target-bound declaration, and deployment validates clipping against checkpoint bounds.

Migration

The unmerged combined recipe API and recording simulation wrappers are removed without compatibility aliases. Dataset and output checkpoint paths are explicit. Regenerate checkpoints to include the validated physical-model and action-bound contract. Existing policy-training entrypoints remain the policy-training path; this PR does not add SuperMimic.

Validation

  • File-by-file structural audit and architecture gates for removed abstractions, configuration ownership and dependency direction.
  • Neural package and neural script suites, plus physics action ownership: 29 passed (CPU/CUDA solver stepping, graph/reset/history behavior, recorder output for Franka/ANYmal/Allegro, training, configuration composition and evaluation).
  • Focused Newton manager construction/reset/model-change/action coverage: 15 passed.
  • Observation manager, recorder manager and manager-based environment coverage: 70 passed; updated action-ownership cases also pass in the final suite above.
  • Solver-specific evaluation override regression: 2 passed after the final evaluation change.
  • Recorder scale smoke: 256 Allegro environments × 32 steps exported 8,192 samples in 32 native shards, with the dataset marked complete (12.64 seconds including startup; not a throughput comparison).
  • Full uv run isaaclab --format and changelog gate against the Add isaaclab_neural integration for Newton neural robot dynamics isaac-sim/IsaacLab#9200 head: passed.
  • Clean Sphinx HTML build with warnings treated as errors: passed without warnings.

Tests emit existing Newton/PyTorch/USD deprecation warnings. Large-scale policy learning and learned-model quality benchmarks were not run.

@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab labels Nov 24, 2026
@ooctipus
ooctipus merged commit 0f348ff into mehdiataei:mataei/newton-neural Nov 25, 2026
1 check passed
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant