Skip to content

Fix RLinf playback checkpoint selectors and update the VLA post-training guide - #9155

Merged
ooctipus merged 2 commits into
isaac-sim:mainfrom
Fanxing-LI:fansing/rlinf_docs_checkpoint_links
Nov 26, 2026
Merged

ooctipus merged 2 commits into
isaac-sim:mainfrom
Fanxing-LI:fansing/rlinf_docs_checkpoint_links

Conversation

@Fanxing-LI

@Fanxing-LI Fanxing-LI commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

Follow-up to #7776. Verifying the RLinf VLA post-training guide end to end turned up two defects in the isaaclab_rl RLinf entry points and several problems in the guide itself. This PR fixes them and removes the remaining references to personal Hugging Face checkpoints.

Entry point fixes (isaaclab_rl)

  • isaaclab play --rl_library rlinf --checkpoint latest|best never found a checkpoint. Playback looked up run manifests with env.eval.init_params.id, while training records env.train.init_params.id. All three shipped recipes use a distinct ...-Eval id for evaluation, so the lookup always failed with No compatible manifested run with a checkpoint was found. Playback now resolves the selector against the training id, matching train_rlinf.py; an explicit --task still takes precedence.
  • A relative --config_path failed with initialize_config_dir() requires an absolute config_dir as input. The path is now resolved to an absolute directory before Hydra is initialized.
  • The launch test is now a train → play round trip with a relative config directory: training writes the run manifest, and playback resolves latest through it although the recipe's eval task id differs from its training id. Reverting either fix, or making training record the eval id, turns the test red with the original errors.

Documentation (rlinf_vla_posttraining.rst)

  • Remove the paragraph that pointed at the task author's personal checkpoint repositories.
  • Move the assemble_trocar hf download from the prerequisites into a new "Assemble Trocar checkpoint" subsection after the Step 2 dependency pins, and run it with uv run --no-sync. With the lockfile's huggingface-hub 1.x and typer 0.27, hf downloads the files but exits non-zero with a click.exceptions.Exit traceback; any huggingface-hub < 1.0 works. The Step 2 floor is raised to >=0.34, the first release that ships the hf CLI.
  • Add Environments/Grid to the local-mirror subtree list; the default GroundPlaneCfg USD is loaded from there.
  • Mark flash-attn as optional for GR00T N1.7, which falls back to PyTorch SDPA attention with a warning when the package is missing (building it needs a CUDA 13 nvcc to match the lockfile's torch).
  • Add --no-sync to the uv run isaaclab ... commands in "Key Files" so they do not re-sync the environment.

No linked issue.

Type of change

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

Screenshots

Not applicable (CLI and documentation changes).

Validation

  • uv run python -m pytest source/isaaclab_rl/test/test_entrypoints.py passes (the one skrl parser test was deselected locally because skrl is not installed in my environment).
  • Mutation checks: reverting the playback fix fails the new test with the manifest ValueError; reverting the config-path fix fails it with the Hydra initialize_config_dir() error; making training record the eval id fails it with the manifest ValueError.
  • pre-commit on the changed files, the changelog gate (tools/changelog/cli.py check), and a Sphinx render of the guide pass.
  • No GPU training or evaluation runs were performed for this PR; the code changes are confined to CLI argument handling.

Release backport

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

Checklist

Docker and GPU tests run on demand. Push the commits you want tested, then comment run-ci on the pull request, or run-ci ovstage to include kitless OVStage rendering tests for that run. Subsequent pushes and plain run-ci comments do not run OVStage tests unless you comment run-ci ovstage again.

  • 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 and applied the test-audit criteria to any test changes
  • 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)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

Remove the personal checkpoint links paragraph and fix the issues found
while verifying the documented workflow end to end:

- Move the assemble_trocar ``hf download`` after the Step 2 dependency
  pins into a new subsection and run it with ``uv run --no-sync``; with
  the lockfile's huggingface-hub 1.x and typer 0.27 the ``hf`` command
  exits non-zero after downloading. Raise the hub pin floor to 0.34,
  the first release that ships the ``hf`` CLI.
- Add ``Environments/Grid`` to the local mirror subtree list since the
  default ground plane is loaded from there.
- Mark flash-attn as optional for GR00T N1.7, which falls back to SDPA
  attention with a warning when it is missing.
- Add ``--no-sync`` to the ``uv run isaaclab`` commands in Key Files.
``isaaclab play --rl_library rlinf --checkpoint latest|best`` looked up
run manifests with ``env.eval.init_params.id`` while training records
``env.train.init_params.id``, so recipes with a separate evaluation task
id never found their checkpoints. Resolve the selector against the
training id, matching the train entrypoint.

Resolve ``--config_path`` to an absolute directory before handing it to
Hydra, whose ``initialize_config_dir()`` rejects relative paths.

Extend the launch test into a train/play round trip with a relative
config directory: training writes the run manifest and playback resolves
``latest`` through it although the eval task id differs.
@Fanxing-LI
Fanxing-LI requested a review from a team November 23, 2026 04:34
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Nov 23, 2026
@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Fixes RLinf checkpoint selection and relative config directories.

  • RLinf playback finds checkpoints when training and evaluation use different task ids.
  • RLinf accepts relative config folders for training and playback.
  • The VLA guide gives updated setup steps for GR00T post-training.

No actionable issues found. This review checked source code; it did not run tests or GPU workflows.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Config[Config directory] --> Absolute[Resolve absolute path]
  Absolute --> Hydra[Compose recipe]
  Hydra --> Train[Training task ID]
  Train --> Manifest[Write run manifest]
  Hydra --> Play[Playback selector]
  Manifest --> Match[Match training task and config name]
  Play --> Match
  Match --> Weights[Load saved weights]
Loading

Reviews (1) · Last reviewed commit: "Fix RLinf playback checkpoint selectors ..." · 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

Needs attention: Implementation (1), Style consistency (1). Other reviewed categories look good.

  • PR description: The title matches the five-file diff; describe validation as mocked CLI composition with synthetic weights, record the actual pytest deselection command, and limit the hf compatibility claim to the documented >=0.34,<1.0 range.
  • 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: The N1.7 command block still executes flash-attn installation without CUDA 13 nvcc; move that command into a separate optional step so the documented SDPA path remains usable.
  • Style consistency: The new launch helper omits backend and return annotations required by contribution guidance; annotate the module parameter and composed configuration result.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 2 inline findings.

Automated review; human maintainers own approval decisions.

uv pip install --no-deps \
"git+https://github.com/NVIDIA/Isaac-GR00T.git@1a1837f20538b7d7e21f977a11a5aee14f99803c" \
"transformers==4.57.3" "tokenizers>=0.22,<0.23" "huggingface-hub>=0.34,<1.0"
# Optional: building flash-attn requires a CUDA 13 nvcc. Without it, N1.7 logs a warning

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.

🟡 Warning · Implementation — Separate the optional flash-attn install

The N1.7 command block still installs flash-attn when followed as written, failing without CUDA 13 nvcc despite the stated SDPA fallback. Put the install in a clearly optional step.

backend.run(args)
GlobalHydra.instance().clear()

def launch(backend, checkpoint: str):

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.

🟡 Warning · Style Consistency — Annotate the new launch helper

The helper omits its backend parameter and return annotations, contrary to the signature-typing rule. Annotate the module argument and composed configuration return value.

@hujc7

hujc7 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

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 26, 2026
@ooctipus
ooctipus merged commit c1afcee into isaac-sim:main Nov 26, 2026
63 checks passed
@kellyguo11

Copy link
Copy Markdown
Contributor

should we cherry pick this to release?

@Fanxing-LI

Copy link
Copy Markdown
Contributor Author

should we cherry pick this to release?

Yes, I have updated the description.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants