Skip to content

Match GR00T PyTorch with Isaac Lab - #8721

Merged
kellyguo11 merged 1 commit into
isaac-sim:developfrom
kellyguo11:fix/gr00t-match-isaaclab-torch
Oct 19, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:developfrom
kellyguo11:fix/gr00t-match-isaaclab-torch

Conversation

@kellyguo11

@kellyguo11 kellyguo11 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Follow-up to #8718, which has merged.

This change keeps the vulnerability fix from #8718 while matching the GR00T N1.5 environment to Isaac Lab's current PyTorch stack:

  • PyTorch 2.11.0
  • Torchvision 0.26.0
  • CUDA 13.0 wheels

The documentation and constrained GR00T requirements now use the same versions as the repository-level Isaac Lab pins. The branch is rebased onto #8718's merge commit, so this PR contains only the 2.10/CUDA 12.8 to 2.11/CUDA 13.0 follow-up.

Type of change

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

Release backport

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

Screenshots

Not applicable.

Validation

  • ISAACLAB_CHANGELOG_BASE_REF=upstream/develop uv run isaaclab -f
  • uv run --extra dev isaaclab --docs
  • Confirmed the documented and constrained GR00T versions match Isaac Lab's torch==2.11.0, torchvision==0.26.0, and CUDA 13.0 index.
  • Installed the isolated GR00T N1.5 environment with PyTorch 2.11.0+cu130 and extension-free PyTorch3D; uv pip check passed.
  • Loaded the pretrained N1.5 checkpoint and completed client/server inference with all six expected finite action tensors.
  • Completed a one-step fine-tuning run and final checkpoint save (loss: 0.002790760016068816).

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage; no tests were changed
  • No source package is touched, so no package changelog fragment is required
  • My name already exists in CONTRIBUTORS.md

@kellyguo11
kellyguo11 requested a review from a team October 19, 2026 03:51
@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-mimic Related to Isaac Mimic team labels Oct 19, 2026

@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: The body accurately explains the stacked #8718 dependency, version alignment, isolated environment, and validation; no performance claim or hot-path change requires benchmark evidence.
  • 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.

@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Updates the separate GR00T environment to match Isaac Lab’s PyTorch stack.

  • GR00T N1.5 setup now uses Isaac Lab's PyTorch versions.

Reviews (1) · Last reviewed commit: "Match GR00T PyTorch with Isaac Lab" · Reviewed by Greptile

@kellyguo11
kellyguo11 force-pushed the fix/gr00t-match-isaaclab-torch branch from adf81d3 to 56efe3f Compare October 19, 2026 03:54
@kellyguo11

Copy link
Copy Markdown
Contributor 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 Oct 19, 2026
@kellyguo11
kellyguo11 merged commit c6138dc into isaac-sim:develop Oct 19, 2026
59 checks passed
StafaH added a commit that referenced this pull request Oct 26, 2026
…e cuRobo cache (#8818)

## Summary

This is a follow-up to #8802. Across the last 40 PR runs of `Docker +
Tests`, the median wall time is 23 min, but the p75 is 43 min. The two
groups don't overlap: every run that took 40–65 min rebuilt a Docker
image, and every run that didn't finished in 14–28 min. This PR targets
the rebuilds, plus one serial test job.

### Where the slow runs go

| | Runs | Wall time |
|---|---|---|
| Both deps caches hit | ~24/40 | 14–28 min |
| Deps cache missed (base, cuRobo, or both) | ~16/40 | 30–65 min |

What happens on a cache miss:
- **cuRobo image:** 23–47 min, all of it on the critical path. One
30-min build broke down as: 4 min pulling cache layers, 2 min `uv sync`,
7.5 min recompiling cuRobo (its layer sits after the lockfile `COPY`), 3
min exporting layers, **10 min `--load` tarball** into the daemon, and 1
min cache export.
- **Base image:** about 20 min. That splits into 3.4 min cache pull, 2.3
min `uv sync`, 4.6 min exporting layers, **6 min `--load` tarball**, and
1.5 min cache export.

Why the cache misses so often:
1. **The nightly version bump.** The `[CI][Auto Version Bump]` commit
rewrites `version = "..."` in each bumped package's `pyproject.toml` and
its editable `uv.lock` entry. Both files feed the deps hash, so every
day's first PR rebuilt the images even though no dependency changed.
Replaying main over Oct 15–25: **18 distinct deps hashes before this PR,
9 after.** The remaining 9 are real changes to `docker/`, the
`isaaclab.cli` sources, or dependencies.
2. **Only the base image was built post-merge.** `build-curobo` skipped
`push` events, so the cuRobo deps cache was never warmed. Several runs
hit the base image cache (0.3 min) and still spent 25–30 min building
cuRobo.

## Changes

1. **Ignore first-party version bumps in the deps hash**
(`_lib/compute-deps-hash`).
- Manifests are now hashed by content, with two kinds of line dropped:
`version =` in a `[project]`/`[package]` table, and `version =` in
`uv.lock` entries whose `source` is `editable` or `virtual`.
- Third-party lock versions and all dependency specifiers are still
hashed.
- Covered by a new test in `test_registry_credential_fallback.py`. It
fails against the old hash code.
- Trade-off: an image served from the deps cache can report a stale
`importlib.metadata.version()` for first-party packages. The source is
bind-mounted, so the code under test is current. No CI test in the
Docker jobs checks these versions (`test_wheel.py` runs in install-ci).
2. **Build the cuRobo image on pushes to protected branches**, with no
test consumer. This matches what the base image already does. A cache
hit costs about 0.3 min of a GPU runner.
3. **`test-curobo`: `test-jobs: "3"`.** The job ran its three files one
at a time, about 9.7 min in total (`test_pink_ik.py` ~410 s, planner
franka ~100 s, cube stack ~73 s). Run concurrently, the job should be
bounded by `test_pink_ik.py` at about 7 min. Since #8802 moved contrib
off the cuRobo image, `test-curobo` is the last job to finish in the
newest runs.

4. **Standalone demos (Kit): 4 → 3 concurrent launches.** In 2 of the
last 8 runs (here and on an unrelated PR, both on the same main commit),
`microduck_warehouse` hung at startup right after the Newton viewer fell
back to headless EGL, and was killed at the 300 s launch timeout. In
passing runs it takes about 110 s, and the slowest Kit launch about 148
s. The non-Kit job has passed every run and stays at 4.
5. **De-flake `test_sphere_contact_time[cuda-mesh]`** (PhysX contact
sensor). The sphere's contact pose put its center at z = 0, half buried.
On the cobblestone triangle mesh, GPU PhysX sometimes resolves that
overlap below the mesh, which then reports no contact. It failed 5/5
retries in one run here, and locally 21/80 with four concurrent
processes; it passes on an idle GPU. With a 5 cm penetration (z = 0.2),
80/80 pass under the same load.

This PR touches `docker-build/action.yml`'s deps-hash inputs, so its own
CI run does a full rebuild of both images. Expect a slow first run.

## Follow-ups (not in this PR)

- **Skip `--load` on ECR builds (6–10 min per rebuilt image).** The
docker-container builder exports the whole image as a tarball into the
daemon, only so that the "Layer CI test dependencies" step and the base
invariants check can run locally. Possible fix:
- fold the pytest layer into the build (a temp Dockerfile that appends
it, or a `FROM` stage);
  - push straight from buildx (`push=true`, both tags);
- run `test_image_invariants.py` against a staging tag, then alias the
commit and deps tags with `imagetools create`.
- **Compile cuRobo in a stage that doesn't depend on the lockfile.** It
is rebuilt (7.5 min) on any `uv.lock` or pyproject change because it
comes after the `uv sync` layers. Keying it on the torch/CUDA version
would let it hit the layer cache.
- **`test_pink_ik.py`:** building the `FixedBaseUpperBodyIK-G1` env
takes about 2 min, versus about 7 s for the other three envs. Splitting
the file with xdist would need `--dist loadgroup`; the default `load`
mode would build every env on every worker.
- **Infra:** runners take about 3 min to pick up jobs after the image
build, and each job pulls a 2–4 min image. The ideas from #8802 still
apply: AMI-baked base layers or SOCI, and a warm runner pool.

## Test plan
- [x] `pytest
.github/actions/_lib/test_registry_credential_fallback.py`: the new test
passes, and fails against the old hash code.
- [x] Replayed the new hash over main's history: bump commits keep the
hash; real dependency commits (#8721, #8668) change it.
- [x] pre-commit on the changed files.
- [ ] CI: both images rebuild, and `test-curobo` passes with 3 slots.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation isaac-mimic Related to Isaac Mimic team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant