Skip to content

Fix GearAssembly UR10e env count - #5843

Merged
kellyguo11 merged 1 commit into
isaac-sim:developfrom
AntoineRichard:antoiner/fix-gearassembly-num-envs
May 29, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:developfrom
AntoineRichard:antoiner/fix-gearassembly-num-envs

Conversation

@AntoineRichard

Copy link
Copy Markdown
Collaborator

Description

Lower the default scene size for the UR10e Deploy GearAssembly training configs from 4096 to 2048 environments. These newly enabled rsl_rl tasks were exhausting GPU memory at the inherited default; 2048 was smoke-tested on a 16 GB RTX 5000 Ada laptop GPU.

No new dependencies are required.

Fixes # (none)

Verification:

  • ./isaaclab.sh -p -m pytest source/isaaclab_tasks/test/test_deploy_gear_assembly_cfg.py
  • Red check before the fix: 2 failures, both resolving to 4096 instead of 2048.
  • 2048-env one-step smoke check for Isaac-Deploy-GearAssembly-UR10e-2F140-v0 and Isaac-Deploy-GearAssembly-UR10e-2F85-v0 on NVIDIA RTX 5000 Ada Generation Laptop GPU, 16376 MiB.
  • ./isaaclab.sh -f before commit and again after commit.

Type of change

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

Screenshots

N/A

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump extension.toml — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

Lower the default UR10e GearAssembly scene size to 2048 environments so the newly enabled training tasks fit on 16 GB GPUs. Add a regression test for the registered task defaults.
@AntoineRichard
AntoineRichard requested a review from Mayankm96 as a code owner May 28, 2026 15:52
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels May 28, 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

PR #5843: Fix GearAssembly UR10e env count

Summary

This PR reduces the default environment count for UR10e GearAssembly tasks from 4096 to 2048 to fit on 16GB GPUs.

Analysis

Category Status Notes
Architecture/Design ✅ Correct pattern - setting num_envs in __post_init__ after super().__post_init__()
Implementation ✅ Clean, minimal change
Test Coverage ✅ Regression tests added for both UR10e variants
Documentation ✅ Changelog fragment included

Findings: 0 issues

Verdict: LGTM 👍

The implementation follows Isaac Lab patterns correctly:

  • Override in __post_init__ after parent initialization
  • Proper regression tests using pytest.mark.parametrize
  • Changelog fragment properly formatted

Optional Enhancement

Consider adding a brief inline comment explaining the GPU memory constraint:

# 2048 envs fits on 16GB GPUs (default 4096 exhausts VRAM)
self.scene.num_envs = 2048

Automated review by Isaac Lab Review Bot

@greptile-apps

greptile-apps Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes GPU OOM on 16 GB cards by lowering the default environment count for the two UR10e GearAssembly rsl_rl training configs from 4096 (inherited from the parent GearAssemblyEnvCfg) to 2048, set explicitly in UR10eGearAssemblyEnvCfg.__post_init__. A new pytest parametrized test guards the default going forward.

  • joint_pos_env_cfg.py: One-line addition of self.scene.num_envs = 2048 immediately after super().__post_init__(); the play-mode subclasses (_PLAY) already override to 50 and are unaffected.
  • test_deploy_gear_assembly_cfg.py: New test file that calls parse_env_cfg for both task variants and asserts scene.num_envs == 2048, matching the verification steps in the PR description.

Confidence Score: 5/5

Safe to merge. The change is a single-line override of a numeric config field, verified by a new parametrized test and a smoke run on the target hardware.

The fix is minimal and well-contained: one line sets num_envs in the shared UR10e base class, the play-mode subclasses already override to 50 so they are unaffected, and the new regression test directly catches any future reversion of this value. The PR description documents hardware-verified smoke testing on a 16 GB GPU.

No files require special attention.

Important Files Changed

Filename Overview
source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/deploy/gear_assembly/config/ur_10e/joint_pos_env_cfg.py Adds self.scene.num_envs = 2048 in UR10eGearAssemblyEnvCfg.__post_init__ to override the parent's 4096 default; both subclass play configs already override to 50 and are unaffected.
source/isaaclab_tasks/test/test_deploy_gear_assembly_cfg.py New regression test that instantiates both UR10e GearAssembly task configs via parse_env_cfg and asserts scene.num_envs == 2048.
source/isaaclab_tasks/changelog.d/antoiner-fix-gearassembly-num-envs.rst Changelog fragment documenting the num_envs reduction for the UR10e GearAssembly training configs.

Class Diagram

%%{init: {'theme': 'neutral'}}%%
classDiagram
    class GearAssemblyEnvCfg {
        +scene: GearAssemblySceneCfg
        +scene.num_envs = 4096
    }
    class UR10eGearAssemblyEnvCfg {
        +__post_init__()
        +scene.num_envs = 2048
    }
    class UR10e2F140GearAssemblyEnvCfg {
        +__post_init__()
    }
    class UR10e2F85GearAssemblyEnvCfg {
        +__post_init__()
    }
    class UR10e2F140GearAssemblyEnvCfg_PLAY {
        +__post_init__()
        +scene.num_envs = 50
    }
    class UR10e2F85GearAssemblyEnvCfg_PLAY {
        +__post_init__()
        +scene.num_envs = 50
    }
    GearAssemblyEnvCfg <|-- UR10eGearAssemblyEnvCfg
    UR10eGearAssemblyEnvCfg <|-- UR10e2F140GearAssemblyEnvCfg
    UR10eGearAssemblyEnvCfg <|-- UR10e2F85GearAssemblyEnvCfg
    UR10e2F140GearAssemblyEnvCfg <|-- UR10e2F140GearAssemblyEnvCfg_PLAY
    UR10e2F85GearAssemblyEnvCfg <|-- UR10e2F85GearAssemblyEnvCfg_PLAY
Loading

Reviews (1): Last reviewed commit: "Fix GearAssembly UR10e env count" | Re-trigger Greptile

@kellyguo11
kellyguo11 merged commit 7eddf5c into isaac-sim:develop May 29, 2026
37 checks passed
kellyguo11 added a commit that referenced this pull request May 29, 2026
…nt training fixes from develop (#5855)

# Description

Cherry pick fixes from the develop branch:

- #5805 
- #5786 
- #5787 
- #5793 
- #5831 
- #5853
- #5841 
- #5843

---------

Signed-off-by: sameerchavan0027 <[email protected]>
Co-authored-by: Antoine RICHARD <[email protected]>
Co-authored-by: hujc <[email protected]>
Co-authored-by: sameerchavan0027 <[email protected]>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants