Skip to content

[CI] Let CI recover from evicted Warp and OVRTX caches - #9359

Merged
ooctipus merged 2 commits into
isaac-sim:mainfrom
hujc7:jichuanh/license-check-no-uv-cache
Dec 3, 2026
Merged

ooctipus merged 2 commits into
isaac-sim:mainfrom
hujc7:jichuanh/license-check-no-uv-cache

Conversation

@hujc7

@hujc7 hujc7 commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Since 19:24 UTC on 2026-12-02, every pull request that runs the standalone demo smoke test has failed it (17 of 17):
the shared Warp and OVRTX caches were evicted, and with cold caches three demos exceed their startup budget. This stops
the license check from filling the cache budget, and lets the demos pass with cold caches so CI recovers by itself.

Description

Two changes, one per commit:

  1. Disable the uv cache of the license check (.github/workflows/license-check.yaml). The workflow runs only on
    pull requests, so its license-check job saves its ~2 GB uv cache under refs/pull/<n>/merge, where no other pull
    request can restore it: eight pull requests held eight identical copies. Once the repository is over its cache
    limit, GitHub evicts entries by last access, so the main-scoped Warp kernel and OVRTX shader caches are lost
    whenever the GPU jobs do not read them for a while.
  2. Raise the startup timeout of the demos that exceed it with cold caches
    (source/isaaclab/test/app/standalone_script_cases.py): startup_timeout=600.0 for nist, h1_locomotion and
    bin_packing, as zoo and sharpa_rj45 already use. Without it, a cache eviction fails every pull request, so
    nothing merges to main and the caches, which only main publishes, never come back.

Measured on 2026-12-01..02:

Observation Value
Cache held at 22:22 UTC ~18 GB, 16.8 GB of it license-check uv caches (GitHub evicts asynchronously: the total exceeds the 10 GB limit until the next eviction pass)
Evictions at 22:26, 22:33 and 22:38 UTC every entry not accessed in the previous ~15–20 min
Warp kernel cache from main last restored at 16:19 UTC, gone at 19:32 UTC
standalone demos (headless, non-Kit) from 19:24 to 23:00 UTC all 17 jobs that ran the demos timed out (cache misses)
Cold-cache demo time on this pull request (Docker + Tests run, CI GPU runners sm120, driver 595.58.03; Warp, OVRTX kit and kitless caches all missed) nist 382 s, h1_locomotion 375 s, bin_packing 361 s: all passed under the 600 s budget (warm bin_packing: 57–80 s)
license-check install step with the cache on (188 jobs) median 187 s (restored: 187 s, not restored: 187 s)
license-check install step with the cache off (3 runs on this pull request) 283 s, 95 s, 208 s

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Release backport

  • Backport this pull request to the active release branch after it merges into main

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab --format
  • Documentation changes are not required because only CI configuration and test settings changed
  • My changes generate no new warnings
  • Test changes: the standalone demo smoke test run on this pull request, with the caches empty, exercises the new timeouts
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (.skip: test-only change)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

hujc7 added 2 commits December 2, 2026 14:40
The license check runs only on pull requests, so the uv cache it saves (~2 GB) is scoped to one pull request and no other pull request can restore it. These copies fill the repository cache budget and evict the Warp kernel and OVRTX shader caches published from main, so the standalone demo tests start cold and time out. A restored copy does not shorten the dependency install.
With empty Warp kernel and OVRTX shader caches, nist and h1_locomotion take about 360 to 400 s and bin_packing more than 300 s, so every pull request fails the standalone demo smoke test until main republishes the caches, and pull requests cannot merge to trigger that republish. A 600 s startup budget, as zoo and sharpa_rj45 already use, lets the test pass with cold caches.
@hujc7 hujc7 changed the title [CI] Disable the uv cache of the license check workflow [CI] Let CI recover from evicted Warp and OVRTX caches Dec 2, 2026
@hujc7

hujc7 commented Dec 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 Dec 2, 2026
@hujc7
hujc7 marked this pull request as ready for review December 2, 2026 23:22
@hujc7
hujc7 requested a review from a team December 2, 2026 23:22
@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] This PR appears safe to merge.

Summary

This PR reduces cache pressure from the license check and gives three smoke tests more time to start with empty caches.

  • The license check leaves shared cache space for GPU jobs.
  • Three demos get more time to start when caches are cold.

No actionable issues were found. Review checks were limited to reading code; no GPU demos or workflows were run.

Reviews (1) · Last reviewed commit: "Raise the startup timeout of the demos t..." · Reviewed by Greptile

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

All reviewed code categories look good.

  • PR description: Title and scope match the diff; clarify ~18 GB occupancy versus the 10 GB limit and make cold-cache timings reproducible with revisions, command, hardware, backends, environment counts, warmup, and per-demo startup results.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Implementation looks good.
  • Style consistency: Style consistency looks good.
  • Test quality: Test quality looks good.

No blocking issues. No inline findings.

Automated review; human maintainers own approval decisions.

@hujc7

hujc7 commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

Re the review bot's description note: the description now explains the ~18 GB versus the 10 GB limit (GitHub evicts asynchronously, so the total stays above the limit until its next eviction pass) and records the cold-cache run on this pull request: Docker + Tests run 46993763727 on the CI GPU runners, with the Warp, OVRTX kit and OVRTX kitless caches all missed, where nist (382 s), h1_locomotion (375 s) and bin_packing (361 s) passed under the 600 s budget.

@ooctipus
ooctipus merged commit b79a348 into isaac-sim:main Dec 3, 2026
95 of 96 checks passed
kellyguo11 added a commit that referenced this pull request Dec 3, 2026
…ion (#9368)

## Description

Backport fourteen merged PRs to `release/3.1.0`:

| Original PR | Change |
| --- | --- |
| #9359 | Let CI recover after Warp and OVRTX cache eviction; allow
cold-cache demo startup. |
| #9292 | Detect UTF-8 and BOM-marked UTF-16 YAML input and write UTF-8
independently of the system locale. |
| #9346 | Update the Isaac Sim CI image digest to `6745f1725c9b`. |
| #9334 | Bind cloned deformable state and materials in clone-plan
environment order. |
| #9172 | Update and pin setup-uv and cache actions in performance CI. |
| #9062 | Resolve ray-caster mounts through shared frame views and fix
Kuka-Allegro camera mounts and missed-ray clipping. |
| #9247 | Use floating-point digital-filter coefficients when
configuration literals are integers. |
| #9285 | Support scalar shapes in uniform, triangular, and log-uniform
random sampling. |
| #9333 | Initialize OVPhysX physics consumers and joint-wrench bindings
before deferred render cloning. |
| #9366 | Add the success-guided reset sampling paper citation to the
NIST package docstring. |
| #9369 | Mark ARM64 OptiX rendering tests as expected failures without
starting the unsupported runtime. |
| #9365 | Fix documented GR00T N1.7 installation with explicit tyro and
Git LFS/source-override handling. |
| #9270 | Upgrade Newton, MuJoCo/MuJoCo Warp 4.1, Warp 1.20, USD
schemas, and LEAPP, with required runtime and converter compatibility
changes. |
| #9317 | Preserve convex-hull collider types when constructing the
implicit MPM solver. |

Cherry-picked with `-x`, preserving one commit per source PR. The first
six were applied in merge order (#9334, #9062, #9292, #9359, #9346,
#9172), followed by #9247, #9285, #9333, #9366, #9369, #9365, #9270, and
#9317. All fourteen applied without conflicts or manual edits. Every
stable patch ID matches its original merge commit. Original
documentation, regression tests, and changelog fragments are preserved.

### Compatibility

These are the original PRs in full, including their compatibility
changes and version markers:

- #9292: legacy locale-encoded YAML must be converted to UTF-8.
- #9062: ray casters require an existing mount frame; the old
Newton/OVPhysX synthetic mounting behavior is removed. The shared
FrameView transform API is added. Kuka-Allegro missed rays now clip at
2.5 m, changing observations seen by previously trained policies.
- #9333: removes unreleased internal binding-event plumbing; public
`PhysicsEvent.PHYSICS_READY` subscriptions and callback priorities
remain supported. This includes the lifecycle changes from the original
PR.

- #9270: upgrades core dependencies and includes breaking API removals.
Actuators use `command_interface` / `command_interface_state` and
`drive`; Newton sensors use solver observables. Removed options include
`MujocoCollisionCfg.solmix`, `MJWarpSolverCfg.update_data_interval` /
`ls_parallel`, and `KaminoPADMMCfg.compl_tolerance`;
`soft_contact_margin` becomes `soft_contact_gap`. Native MuJoCo CPU
simulation requires one world. The temporary MJCF converter patch and
original migration documentation are included. ARM OptiX requires an
R590+ driver; #9369 retains the expected failure on current ARM CI.

## Type of change

- Release backport: bug fixes, dependency upgrades, compatibility
changes, CI updates, tests, and documentation.

## Validation

Latest combined head: `1a2304c75`. The branch includes a merge of
release tip `7cfe2659f` in `9f60679bc`; existing changes from that merge
are preserved.

### Final combined-head checks

- Full repository formatting/lint, changelog validation against
`upstream/release/3.1.0`, and `git diff --check upstream/release/3.1.0`
passed at `1a2304c75`.
- #9317 applied without conflicts and its stable patch ID matches the
original. Its required Newton revision
`838ddf544927333559af894dfba0edb1a9efba04` is already locked through
#9270.
- Focused MPM tests were attempted with `uv run --no-sync python -m
pytest source/isaaclab_newton/test/physics/test_newton_solvers.py -k mpm
-q`; collection is blocked by the missing `isaaclab_newton` installation
in this macOS environment. The CUDA regression requires
supported-platform CI.

### Earlier thirteen-backport checks

- Full repository formatting/lint passed:
`ISAACLAB_CHANGELOG_BASE_REF=upstream/release/3.1.0 uv run --no-sync
isaaclab --format`.
- Changelog validation against `upstream/release/3.1.0` and `git diff
--check upstream/release/3.1.0` passed.
- #9270 applied without conflicts and its stable patch ID matches the
original. Its original dependency lock, wheel overrides, runtime
adaptations, tests, golden image, and changelog fragments are preserved.
- Root dependency metadata: **13 passed**; wheel-builder metadata: **14
passed**, using `uv run --no-sync python -m pytest` on the corresponding
CLI test files.
- Reset-state buffers: **7 passed, 1 skipped** in the existing macOS
environment. This environment still has Warp **1.17.0**, so this result
does not validate the new Warp 1.20 runtime.
- Confirmed the lock selects Warp 1.20.0, MuJoCo/MuJoCo Warp 4.1.0,
Newton USD schemas 0.8.0, and Newton revision
`838ddf544927333559af894dfba0edb1a9efba04`.
- Updated dependency installation, GPU simulation/rendering, and a clean
docs build remain unvalidated locally. Earlier runtime test results
below predate #9270 and do not establish compatibility with the upgraded
dependencies.

### Earlier twelve-backport checks

- Full repository formatting/lint, changelog validation against
`upstream/release/3.1.0`, and `git diff --check upstream/release/3.1.0`
passed at `26293b3bc`.
- #9365 applied without conflicts and its stable patch ID matches the
original. It changes only the GR00T installation documentation;
`pyproject.toml` and `uv.lock` are unchanged by this cherry-pick.
- The updated installation command block passed `bash -n`. External
GR00T installation and training were not rerun locally.
- Clean docs validation remains outstanding on a supported platform, as
detailed below.

### Earlier eleven-backport checks

- Full repository formatting/lint, changelog validation against
`upstream/release/3.1.0`, and `git diff --check upstream/release/3.1.0`
passed at `2a7783ebe`.
- #9369 applied without conflicts and its stable patch ID matches the
original.
- Evaluated the actual OptiX xfail decorator for `aarch64`, `arm64`,
`x86_64`, and `AMD64`: only ARM64 enables `xfail(run=False)`; Newton
Warp tests retain no xfail marker.
- GPU rendering was not rerun locally.

### Earlier ten-backport checks

The following checks passed at `97dc765f9`, before the test-marker-only
#9369 cherry-pick:

- Full repository formatting/lint checks passed:
`ISAACLAB_CHANGELOG_BASE_REF=upstream/release/3.1.0 uv run --no-sync
isaaclab --format`.
- Changelog check passed: `uv run --no-sync python
tools/changelog/cli.py check upstream/release/3.1.0 --include-worktree`.
- `git diff --check upstream/release/3.1.0` passed.
- All ten stable patch IDs match their source commits.
- Tensor processors: **13 passed**, using `uv run --no-sync python -m
pytest source/isaaclab/test/utils/test_tensor_processors.py -q`.
- Direct CPU checks passed for scalar, batched, and empty requests in
uniform, triangular, and log-uniform sampling, plus integer-coefficient
digital-filter unit-delay behavior. The scalar-sampling and
integer-coefficient bugs were reproduced before these fixes were added.
- The existing uv interpreter and imported core package were verified to
point at this checkout.

### Earlier six-backport checks

The following passed at `2afdfd8be`, before the four additional
cherry-picks, using `uv run --no-sync python -m pytest <file> -q`, one
file per process:

- YAML I/O: **8 passed**.
- Clone-plan algebra: **32 passed, 5 skipped**.
- Ray-caster kernels: **17 passed**.

### Remaining validation

- Validation used the existing uv environment on macOS because normal uv
resolution rejects this platform; the committed lockfile supports Linux
and Windows only.
- A clean docs build was attempted for the initial six-backport head
with `uv run --no-sync isaaclab --docs`; its nested uv invocation was
blocked by that platform restriction. The expanded documentation changes
still need a supported-platform build.
- GPU/OVPhysX/Newton simulation integration, including the #9333
lifecycle changes, and cold-cache demos have not been rerun locally for
this combined backport.
- No complete CI result is claimed for the latest combined head.

## Checklist

- [x] Read the contribution guidelines.
- [x] Run full repository formatting and lint checks.
- [x] Preserve original documentation, tests, and package changelog
fragments.
- [x] Verify all fourteen cherry-picks match the original patches.
- [x] Run focused locally supported checks.
- [ ] Complete clean docs and GPU integration validation on supported
platforms.

---------

Signed-off-by: Sylvester Kaczmarek <[email protected]>
Co-authored-by: ooctipus <[email protected]>
Co-authored-by: YuTeh Shen <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Sylvester Kaczmarek <[email protected]>
Co-authored-by: hujc <[email protected]>
Co-authored-by: isaaclab-bot[bot] <282401363+isaaclab-bot[bot]@users.noreply.github.com>
Co-authored-by: fanes <[email protected]>
Co-authored-by: Richard Schmitt <[email protected]>
Co-authored-by: Mateo Guaman Castro <[email protected]>
Co-authored-by: Junnosuke Kamohara <[email protected]>
hujc7 added a commit that referenced this pull request Dec 3, 2026
…#8997)

## Summary

- A Warp graph alone (no Torch stream alignment) records the whole
`compute` of both network actuators (`ActuatorNetMLP` and
`ActuatorNetLSTM`, now both on Warp-NN) and every masked reset of the
actuator networks and the ray-caster drift. Both actuators are
`capturable`.
- Per `compute` call against `main` eager: in a Warp graph, Go1 MLP
377.5 → 82.0 µs and ANYdrive LSTM 686.1 → 76.6 µs at 4096 envs; run
eagerly, on par or faster (E3, E4).
- Env step against `main`: unchanged (E5). With the default
`use_newton_actuators=True`, Newton's own actuator runs these networks,
so this PR's actuators run when Newton actuators are disabled.

## Dependencies

| # | Item | State |
|---|---|---|
| D1 | The env step does not record these actuators yet: velocity tasks
keep the Isaac Lab actuator path eager (their contact sensor samples
between physics steps, so the physics does not take over the actions;
`ActuatorCollection.is_graphable` excludes explicit groups) | follow-up
|
| D2 | warp-nn 0.5.0 (released 2026-11-29) runs both networks (0.4.1
rejects the LSTM export's `Slice`); this PR requires `warp-nn>=0.5.0` |
done |
| D3 | `ActuatorNetLSTM` on Warp-NN | done in this PR |
| D4 | With the default `use_newton_actuators=True`, Newton runs the
network from a Torch `.pt2` export, which Newton cannot capture; handing
it ONNX instead, with the shipped checkpoints moved to ONNX so both
paths load only `.onnx` (no export at load) | follow-up |

# Description

| # | Change | Where |
|---|---|---|
| C1 | MLP `compute` = history kernel (shift + scaled network input) →
Warp-NN → scale + DC motor clip kernel; efforts in preallocated Warp
buffers, `computed_effort`/`applied_effort` stay Torch views |
`actuator_net.py`, `actuator_kernels.py` |
| C2 | LSTM `compute` = input kernel → Warp-NN → new hidden and cell
states copied into their state buffers → the same clip kernel; `sea_*`
stay Torch views of the Warp buffers | `actuator_net.py` |
| C3 | Shared base `ActuatorNetBase`: network file check,
computed-effort buffer, network loading, scale + clip launch |
`actuator_net.py` |
| C4 | Network file: `.onnx` loaded by its local path, so weights the
exporter stores next to it (`.onnx.data`) resolve (with
`use_newton_actuators=False` only; the native path names the flag when
it gets a non-TorchScript file); a TorchScript file is exported to ONNX
at load for the actuator's batch (the LSTM reads its layer count and
hidden size from the weights, so traced checkpoints load). When Warp-NN
cannot run a TorchScript network (an unsupported operator, or any ONNX
export error), Torch runs the module as before, with a `FutureWarning`
naming the file and operator: deprecated, that actuator instance is not
`capturable`, and `network` stays the TorchScript module. Such an ONNX
file fails with a `ValueError` naming the file. Otherwise `network` is
the Warp-NN runtime (**breaking**; no caller in the repo) |
`actuator_net.py`, `actuator_net_cfg.py`, `utils/io/onnx.py`,
`schemas_actuators.py` |
| C5 | Masked resets in Warp kernels (LSTM states, MLP histories);
`env_ids` keep `main`'s Torch path | `actuator_net.py` |
| C6 | Both actuators `capturable`: drops the opt-outs `main` added in
#9120 | `actuator_net.py` |
| C7 | The network actuators' kernels sit in the actuators package's
kernel module, in their own section | `actuator_kernels.py` |
| C8 | `DCMotor` clips its effort with the network actuators'
`dc_motor_clip` kernel into a preallocated buffer (`applied_effort` is
its Torch view), so the torque-speed envelope lives in one place (E6) |
`actuator_pd.py`, `actuator_kernels.py` |
| C9 | Ray-caster drift resampled from per-env Warp RNG states, seeded
once when the rays initialize from the env seed and the sensor's prim
path and offset; a later `env.reset(seed=...)` does not restart the
drift | `base_ray_caster.py`, `ray_caster/kernels.py`,
`utils/warp/kernels.py::initialize_rng_state` |
| C10 | Test LSTM fixtures take the last time step with `squeeze`
(Warp-NN 0.5.0 has no `Gather`); a `CumSum` head pins the Torch fallback
of both actuators (LSTM state carry, MLP history window, partial resets,
as the Warp-NN path) and the ONNX load error; actuator concepts page
describes the network file | `actuator_equivalence.py`,
`test_dc_motor.py`, `test_actuator_net.py`, `concepts/actuators.rst` |
| C11 | New dependency `warp-nn>=0.5.0` | `pyproject.toml`, `uv.lock` |
| C12 | MDP2 reads `capturable` from the actuator instance, so it
refuses an actuator whose network Torch runs; `ActuatorBase.capturable`
says an instance may turn it off | `mdp2_scene_data.py`,
`actuator_base.py` |

## Known limitations

| # | Case | Behaviour |
|---|---|---|
| L1 | A network whose Warp-NN warm-up fails at the actuator's batch:
the shipped ANYdrive LSTM at 1 env × 1 joint (Warp-NN's `Squeeze` has no
0-D output) | raises `NotImplementedError` instead of falling back;
`main` ran it with Torch. No task reaches a batch of 1 (ANYdrive groups
have 12 joints); reported to Warp-NN |
| L2 | `compute` called inside a non-default Torch stream that Warp does
not follow | Warp kernels and Torch work are not ordered (Warp-NN path
and Torch fallback alike); the repo's callers run on the default stream
or put Torch on Warp's stream (Newton's `torch_follows`, MDP2 capture) |
| L3 | A remote (Nucleus or URL) ONNX file with external weights | only
the `.onnx` is downloaded; keep the weights inline for remote files |

## Evidence

Per `compute` call (µs):

| # | Compared | Host | 512 envs · `main` eager | 512 envs · this PR |
4096 envs · `main` eager | 4096 envs · this PR |
|---|---|---|---|---|---|---|
| E1 | Go1 MLP, Warp graph (warp-nn MR !41 head, before 0.5.0) | L40 |
386.3 | 30.2 (−92 %) | 377.5 | 82.0 (−78 %) |
| E2 | ANYdrive LSTM, Warp graph | RTX PRO 6000 | 471.0 | 36.9 (−92 %) |
686.1 | 76.6 (−89 %) |
| E3 | Go1 MLP, eager | RTX PRO 6000 | 211.8 | 196.1 (−7 %) | 205.2 |
196.7 (−4 %) |
| E4 | ANYdrive LSTM, eager | RTX PRO 6000 | 497.0 | 493.6 (−1 %) |
738.0 | 510.2 (−31 %) |

E5: env step (ms, RTX PRO 6000, 4096 envs, Newton MJWarp; `main`
`d56d381a20f` vs this PR `ec5dc495c89`, alternating runs, median of 6 ×
100 steps):

| # | Actuator path | Task | `main` | this PR |
|---|---|---|---|---|
| 1 | Newton actuators (default) | Isaac-Velocity-Rough-AnymalD | 11.75
/ 11.96 | 11.83 / 11.88 |
| 2 | Newton actuators (default) | IsaacContrib-Velocity-Flat-UnitreeGo1
| 5.72 / 5.77 | 5.64 / 5.67 |
| 3 | Isaac Lab actuators (`use_newton_actuators=False`) |
Isaac-Velocity-Flat-AnymalD | 15.00 | 14.86 |
| 4 | Isaac Lab actuators (`use_newton_actuators=False`) |
IsaacContrib-Velocity-Flat-UnitreeGo1 | 5.74 | 5.78 |

E6: `DCMotor.compute` eager (µs, RTX PRO 6000, 12 joints; `ec5dc495c89`
vs `ac3553dfd46`, alternating, 2 runs each): 512 envs 64.9 / 65.9 → 48.7
/ 44.5; 4096 envs 63.9 / 66.9 → 48.1 / 44.3.

At `46c853c902d` (RTX PRO 6000): `test_actuator_net.py` 16,
`test_dc_motor.py` 22, `test_actuator_collection.py` 29,
`test_newton_adapter.py` 26, `test_newton_actuators_newton.py` 38 and
`test_newton_raycast_sensor.py` 10 passed. At `ec5dc495c89` (RTX PRO
6000): `test_actuator_net.py` 13, `test_dc_motor.py` 22,
`test_actuator_collection.py` 30 (2 skipped) and
`test_newton_actuators_newton.py` 38 passed. Both actuators' `compute`
and masked reset replay from a Warp graph on Warp's own stream, from a
Warp graph on Torch's stream and from `torch.cuda.graph` with zero error
(12/12). ANYdrive LSTM at `3a8360a89d9`: against `main` eager with TF32
off, 9.7e-4 (512 envs) and 1.1e-3 (4096 envs) over 24 steps; against an
FP64 reference, Warp-NN 1.7e-5 and `main`'s FP32 cuDNN 9.5e-4. At
`ecf06ff652f` (merged `main`: warp-lang 1.20.0, warp-nn 0.5.0; RTX PRO
6000): `test_actuator_net.py` 20 (Torch fallback of both actuators on
CPU and CUDA; a mutation of the MLP fallback input fails it)
`test_newton_adapter.py` 26 and
`test_mdp2_env.py::test_env_rejects_assets_it_cannot_reset_or_write_in_place`
2 passed. Ray-caster tests at `e7c807e3226`:
`test_newton_raycast_sensor.py` 10, `test_ray_caster_sensor.py` 4,
`test_ray_caster_integration.py` 10 passed.

## History

- 2026-12-02: Torch fallback keeps the module in `network` and calls it
as `main` did (`65613e278bb`, `eac128b5242`); MDP2 reads `capturable`
from the instance (`11fbdd45b1b`); ONNX export errors fall back, MLP
fallback test, `.onnx` needs `use_newton_actuators=False`
(`e7c79b77c1a`); ONNX loaded by path, `network` change marked breaking
(`cc76ff167c2`); merged `main` (`ecf06ff652f`).
- 2026-12-02: Torch fallback, deprecated, for TorchScript networks
Warp-NN cannot run (`7aa3d43435d`); merged `main` with the CI cache fix
#9359 (`77fa7ad3a00`).
- 2026-12-01: review round: traced checkpoints load,
unsupported-operator error, ONNX loading split from the TorchScript
export, `ActuatorNetBase`, `DCMotor` shares the clip kernel, the
collection's device copy dropped, drift seeded once at init
(`ac3553dfd46` … `b4175b1a588`); merged `main` (`46c853c902d`).
- 2026-11-30: `ActuatorNetLSTM` on Warp-NN with a shared base
(`3a8360a89d9`); both actuators capturable (`d98b83c5b12`); TorchScript
exported for the actuator's batch (`6f4030a8889`); review cleanups
(`5d49b8dd94e`, `ec5dc495c89`).
- 2026-11-30: merged `main`; require warp-nn 0.5.0 (`19d9aab3247`).
- 2026-11-23: MLP actuator fully in Warp (review rounds 9–16):
`6c27eb313a7`, `0ef4971028a`, `4634d7863fa`; merged `main`.
- 2026-11-16: drift seeded per sensor config (`e7c807e3226`), reseeded
by `configure_seed` (`4b9dd927aa2`); test trims.
- 2026-11-13: rebuilt on `main` after #8821 merged and #6646 closed.

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (existing functionality will not work without user
modification)

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `main`

## Screenshots

Not applicable.

## Checklist

Docker and GPU tests run on demand. Push the commits you want tested,
then
comment `run-ci` on the pull request.

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`uv run isaaclab --format`
- [x] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [x] I have validated the changed behavior with focused coverage and
applied the [test-audit
criteria](https://github.com/isaac-sim/IsaacLab/blob/main/skills/developer/test-audit/SKILL.md)
to any test changes
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump package versions — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
isaaclab-bot Bot pushed a commit that referenced this pull request Dec 3, 2026
…#8997)

## Summary

- A Warp graph alone (no Torch stream alignment) records the whole
`compute` of both network actuators (`ActuatorNetMLP` and
`ActuatorNetLSTM`, now both on Warp-NN) and every masked reset of the
actuator networks and the ray-caster drift. Both actuators are
`capturable`.
- Per `compute` call against `main` eager: in a Warp graph, Go1 MLP
377.5 → 82.0 µs and ANYdrive LSTM 686.1 → 76.6 µs at 4096 envs; run
eagerly, on par or faster (E3, E4).
- Env step against `main`: unchanged (E5). With the default
`use_newton_actuators=True`, Newton's own actuator runs these networks,
so this PR's actuators run when Newton actuators are disabled.

## Dependencies

| # | Item | State |
|---|---|---|
| D1 | The env step does not record these actuators yet: velocity tasks
keep the Isaac Lab actuator path eager (their contact sensor samples
between physics steps, so the physics does not take over the actions;
`ActuatorCollection.is_graphable` excludes explicit groups) | follow-up
|
| D2 | warp-nn 0.5.0 (released 2026-11-29) runs both networks (0.4.1
rejects the LSTM export's `Slice`); this PR requires `warp-nn>=0.5.0` |
done |
| D3 | `ActuatorNetLSTM` on Warp-NN | done in this PR |
| D4 | With the default `use_newton_actuators=True`, Newton runs the
network from a Torch `.pt2` export, which Newton cannot capture; handing
it ONNX instead, with the shipped checkpoints moved to ONNX so both
paths load only `.onnx` (no export at load) | follow-up |

# Description

| # | Change | Where |
|---|---|---|
| C1 | MLP `compute` = history kernel (shift + scaled network input) →
Warp-NN → scale + DC motor clip kernel; efforts in preallocated Warp
buffers, `computed_effort`/`applied_effort` stay Torch views |
`actuator_net.py`, `actuator_kernels.py` |
| C2 | LSTM `compute` = input kernel → Warp-NN → new hidden and cell
states copied into their state buffers → the same clip kernel; `sea_*`
stay Torch views of the Warp buffers | `actuator_net.py` |
| C3 | Shared base `ActuatorNetBase`: network file check,
computed-effort buffer, network loading, scale + clip launch |
`actuator_net.py` |
| C4 | Network file: `.onnx` loaded by its local path, so weights the
exporter stores next to it (`.onnx.data`) resolve (with
`use_newton_actuators=False` only; the native path names the flag when
it gets a non-TorchScript file); a TorchScript file is exported to ONNX
at load for the actuator's batch (the LSTM reads its layer count and
hidden size from the weights, so traced checkpoints load). When Warp-NN
cannot run a TorchScript network (an unsupported operator, or any ONNX
export error), Torch runs the module as before, with a `FutureWarning`
naming the file and operator: deprecated, that actuator instance is not
`capturable`, and `network` stays the TorchScript module. Such an ONNX
file fails with a `ValueError` naming the file. Otherwise `network` is
the Warp-NN runtime (**breaking**; no caller in the repo) |
`actuator_net.py`, `actuator_net_cfg.py`, `utils/io/onnx.py`,
`schemas_actuators.py` |
| C5 | Masked resets in Warp kernels (LSTM states, MLP histories);
`env_ids` keep `main`'s Torch path | `actuator_net.py` |
| C6 | Both actuators `capturable`: drops the opt-outs `main` added in
#9120 | `actuator_net.py` |
| C7 | The network actuators' kernels sit in the actuators package's
kernel module, in their own section | `actuator_kernels.py` |
| C8 | `DCMotor` clips its effort with the network actuators'
`dc_motor_clip` kernel into a preallocated buffer (`applied_effort` is
its Torch view), so the torque-speed envelope lives in one place (E6) |
`actuator_pd.py`, `actuator_kernels.py` |
| C9 | Ray-caster drift resampled from per-env Warp RNG states, seeded
once when the rays initialize from the env seed and the sensor's prim
path and offset; a later `env.reset(seed=...)` does not restart the
drift | `base_ray_caster.py`, `ray_caster/kernels.py`,
`utils/warp/kernels.py::initialize_rng_state` |
| C10 | Test LSTM fixtures take the last time step with `squeeze`
(Warp-NN 0.5.0 has no `Gather`); a `CumSum` head pins the Torch fallback
of both actuators (LSTM state carry, MLP history window, partial resets,
as the Warp-NN path) and the ONNX load error; actuator concepts page
describes the network file | `actuator_equivalence.py`,
`test_dc_motor.py`, `test_actuator_net.py`, `concepts/actuators.rst` |
| C11 | New dependency `warp-nn>=0.5.0` | `pyproject.toml`, `uv.lock` |
| C12 | MDP2 reads `capturable` from the actuator instance, so it
refuses an actuator whose network Torch runs; `ActuatorBase.capturable`
says an instance may turn it off | `mdp2_scene_data.py`,
`actuator_base.py` |

## Known limitations

| # | Case | Behaviour |
|---|---|---|
| L1 | A network whose Warp-NN warm-up fails at the actuator's batch:
the shipped ANYdrive LSTM at 1 env × 1 joint (Warp-NN's `Squeeze` has no
0-D output) | raises `NotImplementedError` instead of falling back;
`main` ran it with Torch. No task reaches a batch of 1 (ANYdrive groups
have 12 joints); reported to Warp-NN |
| L2 | `compute` called inside a non-default Torch stream that Warp does
not follow | Warp kernels and Torch work are not ordered (Warp-NN path
and Torch fallback alike); the repo's callers run on the default stream
or put Torch on Warp's stream (Newton's `torch_follows`, MDP2 capture) |
| L3 | A remote (Nucleus or URL) ONNX file with external weights | only
the `.onnx` is downloaded; keep the weights inline for remote files |

## Evidence

Per `compute` call (µs):

| # | Compared | Host | 512 envs · `main` eager | 512 envs · this PR |
4096 envs · `main` eager | 4096 envs · this PR |
|---|---|---|---|---|---|---|
| E1 | Go1 MLP, Warp graph (warp-nn MR !41 head, before 0.5.0) | L40 |
386.3 | 30.2 (−92 %) | 377.5 | 82.0 (−78 %) |
| E2 | ANYdrive LSTM, Warp graph | RTX PRO 6000 | 471.0 | 36.9 (−92 %) |
686.1 | 76.6 (−89 %) |
| E3 | Go1 MLP, eager | RTX PRO 6000 | 211.8 | 196.1 (−7 %) | 205.2 |
196.7 (−4 %) |
| E4 | ANYdrive LSTM, eager | RTX PRO 6000 | 497.0 | 493.6 (−1 %) |
738.0 | 510.2 (−31 %) |

E5: env step (ms, RTX PRO 6000, 4096 envs, Newton MJWarp; `main`
`d56d381a20f` vs this PR `ec5dc495c89`, alternating runs, median of 6 ×
100 steps):

| # | Actuator path | Task | `main` | this PR |
|---|---|---|---|---|
| 1 | Newton actuators (default) | Isaac-Velocity-Rough-AnymalD | 11.75
/ 11.96 | 11.83 / 11.88 |
| 2 | Newton actuators (default) | IsaacContrib-Velocity-Flat-UnitreeGo1
| 5.72 / 5.77 | 5.64 / 5.67 |
| 3 | Isaac Lab actuators (`use_newton_actuators=False`) |
Isaac-Velocity-Flat-AnymalD | 15.00 | 14.86 |
| 4 | Isaac Lab actuators (`use_newton_actuators=False`) |
IsaacContrib-Velocity-Flat-UnitreeGo1 | 5.74 | 5.78 |

E6: `DCMotor.compute` eager (µs, RTX PRO 6000, 12 joints; `ec5dc495c89`
vs `ac3553dfd46`, alternating, 2 runs each): 512 envs 64.9 / 65.9 → 48.7
/ 44.5; 4096 envs 63.9 / 66.9 → 48.1 / 44.3.

At `46c853c902d` (RTX PRO 6000): `test_actuator_net.py` 16,
`test_dc_motor.py` 22, `test_actuator_collection.py` 29,
`test_newton_adapter.py` 26, `test_newton_actuators_newton.py` 38 and
`test_newton_raycast_sensor.py` 10 passed. At `ec5dc495c89` (RTX PRO
6000): `test_actuator_net.py` 13, `test_dc_motor.py` 22,
`test_actuator_collection.py` 30 (2 skipped) and
`test_newton_actuators_newton.py` 38 passed. Both actuators' `compute`
and masked reset replay from a Warp graph on Warp's own stream, from a
Warp graph on Torch's stream and from `torch.cuda.graph` with zero error
(12/12). ANYdrive LSTM at `3a8360a89d9`: against `main` eager with TF32
off, 9.7e-4 (512 envs) and 1.1e-3 (4096 envs) over 24 steps; against an
FP64 reference, Warp-NN 1.7e-5 and `main`'s FP32 cuDNN 9.5e-4. At
`ecf06ff652f` (merged `main`: warp-lang 1.20.0, warp-nn 0.5.0; RTX PRO
6000): `test_actuator_net.py` 20 (Torch fallback of both actuators on
CPU and CUDA; a mutation of the MLP fallback input fails it)
`test_newton_adapter.py` 26 and
`test_mdp2_env.py::test_env_rejects_assets_it_cannot_reset_or_write_in_place`
2 passed. Ray-caster tests at `e7c807e3226`:
`test_newton_raycast_sensor.py` 10, `test_ray_caster_sensor.py` 4,
`test_ray_caster_integration.py` 10 passed.

## History

- 2026-12-02: Torch fallback keeps the module in `network` and calls it
as `main` did (`65613e278bb`, `eac128b5242`); MDP2 reads `capturable`
from the instance (`11fbdd45b1b`); ONNX export errors fall back, MLP
fallback test, `.onnx` needs `use_newton_actuators=False`
(`e7c79b77c1a`); ONNX loaded by path, `network` change marked breaking
(`cc76ff167c2`); merged `main` (`ecf06ff652f`).
- 2026-12-02: Torch fallback, deprecated, for TorchScript networks
Warp-NN cannot run (`7aa3d43435d`); merged `main` with the CI cache fix
#9359 (`77fa7ad3a00`).
- 2026-12-01: review round: traced checkpoints load,
unsupported-operator error, ONNX loading split from the TorchScript
export, `ActuatorNetBase`, `DCMotor` shares the clip kernel, the
collection's device copy dropped, drift seeded once at init
(`ac3553dfd46` … `b4175b1a588`); merged `main` (`46c853c902d`).
- 2026-11-30: `ActuatorNetLSTM` on Warp-NN with a shared base
(`3a8360a89d9`); both actuators capturable (`d98b83c5b12`); TorchScript
exported for the actuator's batch (`6f4030a8889`); review cleanups
(`5d49b8dd94e`, `ec5dc495c89`).
- 2026-11-30: merged `main`; require warp-nn 0.5.0 (`19d9aab3247`).
- 2026-11-23: MLP actuator fully in Warp (review rounds 9–16):
`6c27eb313a7`, `0ef4971028a`, `4634d7863fa`; merged `main`.
- 2026-11-16: drift seeded per sensor config (`e7c807e3226`), reseeded
by `configure_seed` (`4b9dd927aa2`); test trims.
- 2026-11-13: rebuilt on `main` after #8821 merged and #6646 closed.

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (existing functionality will not work without user
modification)

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `main`

## Screenshots

Not applicable.

## Checklist

Docker and GPU tests run on demand. Push the commits you want tested,
then
comment `run-ci` on the pull request.

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`uv run isaaclab --format`
- [x] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [x] I have validated the changed behavior with focused coverage and
applied the [test-audit
criteria](https://github.com/isaac-sim/IsaacLab/blob/main/skills/developer/test-audit/SKILL.md)
to any test changes
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump package versions — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

(cherry picked from commit ccd75ad)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants