Skip to content

Moves pretrained-checkpoint sub-module to RL package - #4289

Merged
Mayankm96 merged 3 commits into
isaac-sim:mainfrom
Mayankm96:fix/moves-pretrained
Dec 28, 2025
Merged

Mayankm96 merged 3 commits into
isaac-sim:mainfrom
Mayankm96:fix/moves-pretrained

Conversation

@Mayankm96

Copy link
Copy Markdown
Contributor

Description

Previously, the file lived in the core package. However, it is not a part of the core functionality of Isaac Lab. This MR moves it to RL package.

Type of change

  • Breaking change (existing functionality will not work without user modification)

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 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

@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Dec 28, 2025
@greptile-apps

greptile-apps Bot commented Dec 28, 2025

Copy link
Copy Markdown
Contributor

Greptile Summary

Moved pretrained_checkpoint.py from isaaclab.utils to isaaclab_rl.utils to better reflect that it's RL-specific functionality rather than core Isaac Lab functionality. All import statements across play scripts, demos, and tests were updated to use the new location. Additionally fixed a documentation typo in manager_term_cfg.py.

Critical Issue:

  • The moved module has a broken relative import on line 18 that will cause runtime failures

Changes:

  • Relocated pretrained_checkpoint.py module to RL package
  • Updated 6 files with import path changes (4 play scripts, 1 demo, 1 test)
  • Fixed unrelated documentation typo in manager config
  • No backward compatibility layer provided (breaking change)

Confidence Score: 0/5

  • this PR has a critical import bug that will cause runtime failures
  • the moved module contains a broken relative import (from .assets import retrieve_file_path) that references a non-existent module in the new location, this will cause an ImportError when any code tries to use pretrained checkpoints
  • source/isaaclab_rl/isaaclab_rl/utils/pretrained_checkpoint.py has critical import error that must be fixed

Important Files Changed

Filename Overview
source/isaaclab_rl/isaaclab_rl/utils/pretrained_checkpoint.py moved from isaaclab.utils, but has broken relative import that will cause runtime errors
scripts/reinforcement_learning/rl_games/play.py updated import from isaaclab.utils to isaaclab_rl.utils for pretrained checkpoint
scripts/reinforcement_learning/rsl_rl/play.py updated import from isaaclab.utils to isaaclab_rl.utils for pretrained checkpoint
source/isaaclab/isaaclab/managers/manager_term_cfg.py fixed documentation comment typo (action_manager → recorder_manager)

Sequence Diagram

sequenceDiagram
    participant User
    participant PlayScript as RL Play Scripts
    participant PretrainedCheckpoint as isaaclab_rl.utils.pretrained_checkpoint
    participant Assets as isaaclab.utils.assets
    participant Nucleus as Nucleus Server

    User->>PlayScript: Execute play.py with --pretrained flag
    PlayScript->>PretrainedCheckpoint: get_published_pretrained_checkpoint(workflow, task)
    PretrainedCheckpoint->>PretrainedCheckpoint: Check local cache (.pretrained_checkpoints/)
    alt Checkpoint not cached
        PretrainedCheckpoint->>Assets: retrieve_file_path(ov_path, download_dir)
        Assets->>Nucleus: Download checkpoint from ISAACLAB_NUCLEUS_DIR
        Nucleus-->>Assets: Return checkpoint file
        Assets-->>PretrainedCheckpoint: Return local path
    else Checkpoint cached
        PretrainedCheckpoint->>PretrainedCheckpoint: Use cached checkpoint
    end
    PretrainedCheckpoint-->>PlayScript: Return checkpoint path
    PlayScript->>PlayScript: Load checkpoint and run policy
Loading

@greptile-apps greptile-apps 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.

Additional Comments (1)

  1. source/isaaclab_rl/isaaclab_rl/utils/pretrained_checkpoint.py, line 18 (link)

    logic: incorrect import path breaks the module

    the relative import from .assets won't work in the new location since there's no assets.py in isaaclab_rl/utils/

10 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@Mayankm96

Copy link
Copy Markdown
Contributor Author

@greptile-apps now is it fine?

@greptile-apps greptile-apps 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.

Yes, this looks much better! The changes in this PR correctly move the pretrained checkpoint functionality from the core isaaclab package to the isaaclab_rl package, which makes logical sense since this functionality is specifically related to reinforcement learning workflows.

The refactoring is well-executed:

✅ Proper import path updates: All import statements have been correctly updated from isaaclab.utils.pretrained_checkpoint to isaaclab_rl.utils.pretrained_checkpoint

✅ Logical organization: Moving this module to the RL package makes sense since it's specifically for managing RL checkpoints and workflows

✅ Consistent changes: All affected files (demos, training scripts, tests) have been updated consistently

✅ Clean module structure: The new isaaclab_rl/utils/ package is properly initialized with an __init__.py

✅ Documentation improvements: The script documentation has been enhanced with better examples and clearer descriptions

The only minor thing I notice is that there's one unrelated documentation fix in manager_term_cfg.py (fixing a comment about RecorderTerm class path), but that's a harmless improvement.

This is a good breaking change that improves the codebase organization by separating RL-specific utilities from core Isaac Lab functionality.

@Mayankm96
Mayankm96 merged commit 09fe54a into isaac-sim:main Dec 28, 2025
@Mayankm96
Mayankm96 deleted the fix/moves-pretrained branch December 29, 2025 20:23
thiagolages pushed a commit to thiagolages/isaac-lab that referenced this pull request Jan 6, 2026
# Description

Previously, the file lived in the core package. However, it is not a
part of the core functionality of Isaac Lab. This MR moves it to RL
package.

## Type of change

- Breaking change (existing functionality will not work without user
modification)

## Checklist

- [ ] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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 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
Edify0991 pushed a commit to Edify0991/IsaacLab that referenced this pull request Jan 14, 2026
# Description

Previously, the file lived in the core package. However, it is not a
part of the core functionality of Isaac Lab. This MR moves it to RL
package.

## Type of change

- Breaking change (existing functionality will not work without user
modification)

## Checklist

- [ ] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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 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
nitesh-subedi pushed a commit to nitesh-subedi/IsaacLab that referenced this pull request Feb 5, 2026
# Description

Previously, the file lived in the core package. However, it is not a
part of the core functionality of Isaac Lab. This MR moves it to RL
package.

## Type of change

- Breaking change (existing functionality will not work without user
modification)

## Checklist

- [ ] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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 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
csj-275 pushed a commit to csj-275/IsaacLab that referenced this pull request Jul 8, 2026
# Description

Previously, the file lived in the core package. However, it is not a
part of the core functionality of Isaac Lab. This MR moves it to RL
package.

## Type of change

- Breaking change (existing functionality will not work without user
modification)

## Checklist

- [ ] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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 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
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.

1 participant