Skip to content

Fix RLinf GR00T post-training and G129 waist control; add Newton support for assemble trocar - #8771

Merged
StafaH merged 18 commits into
isaac-sim:mainfrom
mingxueg-nv:mingxueg/fix-trocar-rlinf-stage-embodiment
Nov 16, 2026
Merged

StafaH merged 18 commits into
isaac-sim:mainfrom
mingxueg-nv:mingxueg/fix-trocar-rlinf-stage-embodiment

Conversation

@mingxueg-nv

@mingxueg-nv mingxueg-nv commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

This fixes two regressions affecting GR00T N1.5 RL post-training for the G129 Dex3 assemble-trocar task.

  1. RLinf 0.3 compatibility after the integration update

    • The RLinf revision pinned by #8258 already registers new_embodiment as projector 10, while the GR00T N1.5 checkpoint uses projector 31. Honor an explicitly configured embodiment_tag_id instead of keeping the incompatible pre-registered value.
    • Add the patch-based weight syncer now required to synchronize updated actor weights to the rollout worker during training.
    • Give the stage-update reward term a non-zero weight because RewardManager skips weight-zero terms entirely. Its function still returns zero, so this does not alter the reward value.
    • Use uv and install the build dependencies for the documented flash-attn source build.
  2. G129 arm-motion regression from the actuator limit migration

    • The actuator refactor in #6839 changed the G129 waist setting from velocity_limit=0.0 to joint_velocity_limit=0.0.
    • The old implicit-actuator path ignored velocity_limit=0.0, but the new field writes a hard zero-velocity limit to PhysX. This produced alternating arm velocity/torque responses and made the arms move too slowly to complete the task.
    • Remove the zero solver limit so the waist retains the USD velocity limit, restoring smooth arm tracking.
  3. PhysX and Newton support for the assemble-trocar task

    • PhysX stays the default; append physics=newton_mjwarp to isaaclab train/play --rl_library rlinf to run on Newton. Other trailing KEY=VALUE env overrides are forwarded the same way.
    • Fix two Newton import issues in this scene (PhysX merged-mesh colliders, negative collider scales) and select G1 joints by name, since joint order differs per backend.
  • The task now runs independently on either physics backend. PhysX remains the default and its
    settings are unchanged; Newton is selected with physics=newton_mjwarp, and the
    Newton-specific settings apply only when Newton is selected. With the current Newton settings, we restarted PPO post-training from the SFT checkpoint with success_stage=3 (insertion) on 16 GPUs and trained for about 120 steps
    The training success rate rises steadily from 20.3% at the first step to about 67% (5-step
    moving average) after 122 steps.
e811f225-f331-44b6-ae42-962e8c75e48d

Videos

PhysX Before Fix — zero waist velocity limit, 0/8 success

physx_before_fix

PhysX After Fix — zero waist velocity limit removed, 4/8 success

physx_after_fix

Make Newton behaviour normal as PhysX by SFT model

sft_physx_newton_4x2

Type of change

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

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
  • I have added changelog fragments for the touched packages
  • My name already exists in CONTRIBUTORS.md

The assemble trocar update_stage reward term had weight 0. The reward
manager skips weight-0 terms, so update_task_stage never ran: the task
stage stayed at 0 and no stage reward or success termination was ever
produced. update_task_stage returns zeros, so weight 1.0 runs it without
changing the reward.

The RLinf extension only registered embodiment_tag_id when the tag was
missing from RLinf's registry. RLinf 0f9ea98 maps new_embodiment to
projector 10, so the configured 31 was silently ignored and GR00T N1.5
checkpoints fine-tuned with new_embodiment = 31 decoded actions with an
untrained projector. An explicitly configured ID now overrides the
registered one; without a configured ID the registered ID is kept.
@mingxueg-nv
mingxueg-nv requested a review from a team October 21, 2026 16:29
@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation asset New asset feature or request labels Oct 21, 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

Needs attention: Style consistency (2). Other reviewed categories look good.

  • PR description: The title and body match all nine changed files and provide before/after eight-environment outcome evidence; no description correction is needed.
  • 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: The expected configured override is logged as a warning, misclassifying routine status; use info logging and remove the duplicated override rationale.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 2 inline findings.

Automated review; human maintainers own approval decisions.

tag_id = 31 if configured_id is None else configured_id

# If tag is already in registry (native or previously added), skip
# If tag is already in registry (native or previously added), keep it unless the config

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 — Comment repeats docstring and block above

These lines restate the override rule from the docstring (129-131) and the projector-31 explanation from the comment block (136-144). Keep only the new fact: RLinf registers new_embodiment as 10.

registered_id = embodiment_tags.EMBODIMENT_TAG_MAPPING[embodiment_tag]
if configured_id is not None and registered_id != configured_id:
embodiment_tags.EMBODIMENT_TAG_MAPPING[embodiment_tag] = configured_id
logger.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 · Style Consistency — Expected override logged as warning

An explicitly configured embodiment_tag_id is applied as requested, so no caller action is needed. Per the logging guidance this is status, not a runtime warning; use logger.info.

@greptile-apps

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 3/5

[Medium impact] The changes reach GR00T post-training and G129 robot motion.

Fix the missing stage rewards and last-step success check before merging.

Findings

  1. P1 Completed stages lose rewards ▶
  2. P1 Last-step success is missed ▶

Summary

Fixes GR00T post-training setup and restores the G129 waist’s asset-defined velocity limit.

  • GR00T uses the configured projector ID for an already registered robot tag.
  • The assemble-trocar task advances through its stages.
  • RLinf training sends actor updates through a patch weight syncer.
  • The G129 waist uses its USD velocity limit for arm motion.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Physics step] --> B[Check success and timeout]
    B --> C[Compute rewards]
    C --> D[Update task stage]
    D --> E[Read stage for sparse rewards]
    E --> F{Reset required?}
    F -->|Yes| G[Clear task stage]
    F -->|No| A
Loading

Reviews (1) · Last reviewed commit: "Fix G129 changelog fragment format" · Reviewed by Greptile

Comment on lines 263 to +265
update_stage = RewTerm(
func=mdp.update_task_stage,
weight=0.0,
weight=1.0,

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.

P1 Completed stages lose rewards

Enabling update_stage still leaves some completed stages without a reward. update_task_stage can advance from stage 1 directly to stage 3 when alignment and insertion both pass in one step. But trocar_insertion_reward requires prev_stage_insert == 2, so that transition earns no insertion reward, including on later steps. The other sparse rewards have the same problem when their preceding stage is skipped.

Check whether each completion threshold was crossed rather than requiring the previous stage to equal one specific value.

Comment on lines 263 to +265
update_stage = RewTerm(
func=mdp.update_task_stage,
weight=0.0,
weight=1.0,

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.

P1 Last-step success is missed

update_stage now runs, but it still runs after the environment checks for success. ManagerBasedRLEnv.step computes terminations before rewards, so task_success_termination sees the previous stage. If placement first completes on the final allowed step, the timeout resets the stage before success can ever be reported.

Update the stage before checking terminations, while keeping it ahead of the reward terms.

@AntoineRichard AntoineRichard left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The PR looks reasonable, my main concern is the change of the shared asset for PhysX. MujocoWarp ignores velocity_limits so it will be fine for it, but we may need to retrain some checkpoints. I think in general it's a good kick to re-evaluate our G1 assets.

Comment on lines 773 to -776
"waist": ImplicitActuatorCfg(
joint_names_expr=["waist_yaw_joint", "waist_roll_joint", "waist_pitch_joint"],
joint_effort_limit=1000.0,
joint_velocity_limit=0.0,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this unlocking the hip only for PhysX?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm concerned this may impact our pre-trained policies @ooctipus @Double7sBurger

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.

This asset is not used by any of the Velocity tasks so I think it's fine

- Expand PhysX merged-mesh colliders onto child meshes for Newton.
- Bake negative mesh collider scales into points for Newton.
- Add physics presets (PhysX default, Newton MJWarp) to G129 trocar env.
- Resolve G1 joints by name since joint order differs per backend.
- Forward Hydra-style env overrides through RLinf train/play CLI.
- Document physics=newton_mjwarp and KEY=VALUE env overrides.
- Add changelog fragments for the Newton support changes.
- Test RLinf env override parsing and forwarding.
@mingxueg-nv mingxueg-nv changed the title Fix RLinf GR00T post-training and G129 waist control Fix RLinf GR00T post-training and G129 waist control; add Newton support for assemble trocar Oct 29, 2026
@mingxueg-nv

Copy link
Copy Markdown
Contributor Author

The PR looks reasonable, my main concern is the change of the shared asset for PhysX. MujocoWarp ignores velocity_limits so it will be fine for it, but we may need to retrain some checkpoints. I think in general it's a good kick to re-evaluate our G1 assets.

Thanks @AntoineRichard for review.
Yes, this only affects PhysX; MuJoCo-Warp ignores this limit.
The starting checkpoint nvidia/Assemble_Trocar was trained before #6839, so it never saw this limit. I verified that with the limit the robot's arm motion becomes abnormal and it barely moves, while without it the motion is normal, as shown in the before/after comparison in the description. In this repo, G129_CFG_WITH_DEX3_BASE_FIX is only used by the assemble-trocar task.

I've also added Newton support for this task. I'm validating Newton training on 8×H100 on our cluster and will update here once I have results. Thank you.

…-rlinf-stage-embodiment

# Conflicts:
#	source/isaaclab_newton/isaaclab_newton/cloner/replicate.py
#	source/isaaclab_tasks/isaaclab_tasks/contrib/assemble_trocar/g129_dex3_env_cfg.py
Multi-GPU RLinf training starts one Isaac Sim per GPU. Without multi_gpu=False each
renderer enumerates every GPU on the node through Vulkan and the concurrent workers
crash in omni.kit.renderer at startup.
…embodiment' into mingxueg/fix-trocar-rlinf-stage-embodiment
@AntoineRichard

Copy link
Copy Markdown
Collaborator

@mingxueg-nv is this ready to go? :)

@mingxueg-nv

Copy link
Copy Markdown
Contributor Author

@mingxueg-nv is this ready to go? :)

Hi, @AntoineRichard , I think it's ready, now PhysX and Newton can now be trained and evaluated as independent backends in the assemble trocar task.

StafaH and others added 5 commits November 15, 2026 20:15
On Newton, MuJoCo's soft contacts let the closed left fingers sink 2-3 mm
into trocar_2 and hook it, so opening the thumb no longer frees the hand and
the placement stage fails. A Newton-only startup event sets solref
(0.01, 1.0) on the hand and trocar_2 colliders, which limits the penetration
without changing friction or contact priority. PhysX is unaffected.
Use the shared preset CLI parser like the other RL backends instead of a
custom positional argument, intermixed parsing, and override helper.
@StafaH

StafaH commented Nov 16, 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 16, 2026
@StafaH

StafaH commented Nov 16, 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 16, 2026
@StafaH
StafaH merged commit d44733f into isaac-sim:main Nov 16, 2026
62 of 91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

asset New asset feature or request bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants