Repository navigation
Fixes device decoupling of RL Games training vs. sim device - #3997
Merged
Merged
Conversation
kellyguo11
requested review from
ClemensSchwarke,
Mayankm96,
Toni-SM and
ooctipus
as code owners
November 11, 2025 01:02
Contributor
Greptile OverviewGreptile SummaryThis PR enables device decoupling for RL Games, allowing simulation to run on one device (e.g., CPU) while training runs on another (e.g., GPU). The key changes are: Core Implementation:
How It Works:
Testing:
The implementation is clean, well-documented, and follows the existing architecture. Device transfers use Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Policy as RL Policy<br/>(rl_device)
participant Wrapper as RlGamesVecEnvWrapper
participant Env as Isaac Environment<br/>(sim_device)
Note over Policy,Env: Training Step Flow
Policy->>Wrapper: step(actions)<br/>[on rl_device]
Wrapper->>Wrapper: actions.to(sim_device)<br/>Transfer to simulation
Wrapper->>Env: step(actions)<br/>[on sim_device]
Env-->>Wrapper: obs, rew, term, trunc<br/>[on sim_device]
Wrapper->>Wrapper: _process_obs(obs_dict)<br/>Transfer obs to rl_device
Wrapper->>Wrapper: rew.to(rl_device)<br/>dones.to(rl_device)<br/>extras.to(rl_device)
Wrapper-->>Policy: obs, rew, dones, extras<br/>[on rl_device]
Note over Policy,Env: Reset Flow
Policy->>Wrapper: reset()
Wrapper->>Env: reset()
Env-->>Wrapper: obs_dict<br/>[on sim_device]
Wrapper->>Wrapper: _process_obs(obs_dict)<br/>Transfer to rl_device
Wrapper-->>Policy: obs<br/>[on rl_device]
|
ooctipus
approved these changes
Nov 11, 2025
ooctipus
left a comment
Collaborator
There was a problem hiding this comment.
Test is a bit long to read, and feels like could be refactored to make a bit nicer. But everything else looks pretty good
Collaborator
There was a problem hiding this comment.
It feels like this test file can be refactored a bit :D, that way the step 1 - 5 maybe more clear, easier for future.
Signed-off-by: Kelly Guo <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
T-K-233
pushed a commit
to ucb-bar/IsaacLab
that referenced
this pull request
Dec 29, 2025
…m#3997) # Description Allows rlgames to decouple devices for simulation and training. This should allow running simulation on CPU and training on GPU ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [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 `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task --> --------- Signed-off-by: Kelly Guo <[email protected]> Signed-off-by: Kelly Guo <[email protected]>
Edify0991
pushed a commit
to Edify0991/IsaacLab
that referenced
this pull request
Jan 14, 2026
…m#3997) # Description Allows rlgames to decouple devices for simulation and training. This should allow running simulation on CPU and training on GPU ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [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 `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task --> --------- Signed-off-by: Kelly Guo <[email protected]> Signed-off-by: Kelly Guo <[email protected]>
nitesh-subedi
pushed a commit
to nitesh-subedi/IsaacLab
that referenced
this pull request
Feb 5, 2026
…m#3997) # Description Allows rlgames to decouple devices for simulation and training. This should allow running simulation on CPU and training on GPU ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [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 `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task --> --------- Signed-off-by: Kelly Guo <[email protected]> Signed-off-by: Kelly Guo <[email protected]>
csj-275
pushed a commit
to csj-275/IsaacLab
that referenced
this pull request
Jul 8, 2026
…m#3997) # Description Allows rlgames to decouple devices for simulation and training. This should allow running simulation on CPU and training on GPU ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [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 `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task --> --------- Signed-off-by: Kelly Guo <[email protected]> Signed-off-by: Kelly Guo <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Allows rlgames to decouple devices for simulation and training. This should allow running simulation on CPU and training on GPU
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there