Repository navigation
Description
Discussed in #1749
Originally posted by araffin January 30, 2025
Hello,
I would like to discuss an propose some improvements for SB3 integration with isaac lab (as a follow up of #528).
I've been playing around IsaacLab with SB3/SBX (SBX = SB3 + jax) and I have some improvements to suggests/questions:
- with respect to the speed, most of the slow down comes from the adapter (SB3 wrapper), and by only treating envs that are terminated, I managed to improve speed by 3X (my fork is here, trying out things: https://github.com/araffin/IsaacLab/tree/feat/sb3-update), so if you think it is interesting, I can contribute the fast variant (https://github.com/araffin/IsaacLab/blob/feat/sb3-update/source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/utils/wrappers/sb3.py)
- why not use python script to define hyperparameter config for sb3 too? this would be consistent with other frameworks and would allow to support multiple algorithms?
- why not have default hyperparameters for each algo? (currently the process of adding support for a new task is a bit annoying and require to dig deep in the folder structure :/)
- would you be interested in tuned hyperparameters for more isaac lab tasks?
To reproduce, using my fork (https://github.com/araffin/IsaacLab, branch /feat/sb3-update):
Default, runs at 10 000 steps/s:
./isaaclab.sh -p source/standalone/workflows/sb3/train.py --task Isaac-Velocity-Flat-Unitree-A1-v0 --num_envs 1024 --algo ppo
Fast variant, runs at 35 000 steps/s (SBX) and 30 000 steps/s:
./isaaclab.sh -p source/standalone/workflows/sb3/train.py --task Isaac-Velocity-Flat-Unitree-A1-v0 --num_envs 1024 --algo ppo --fast
fastest variant but incorrect (truncation not handled, lower performance): --no--info flag, runs at 40 000 steps/s (similar to rsl_rl)
Side remark: while playing around, the rsl_rl ppo hyperparameters don't seem to be tuned for the A1 task/ I managed to get much higher rewards with SB3/SBX implementation (mean reward ~30 vs ~10 for rsl_rl, probably because they don't handle truncation?)
Activity
Adds optimizations and additional training configs for SB3 (#2022)
Adds optimizations and additional training configs for SB3 (isaac-sim…
Adds optimizations and additional training configs for SB3 (#2022)
Adds optimizations and additional training configs for SB3 (#2022)
Adds optimizations and additional training configs for SB3 (#2022)
Adds optimizations and additional training configs for SB3 (isaac-sim…
Adds optimizations and additional training configs for SB3 (isaac-sim…
AntoineRichard commentedon Aug 27, 2026
Thanks for turning @araffin's SB3 discussion into a tracked proposal, @RandomOakForest. The bulk of it is done: #2022 (merged) brought in the optimized
Sb3VecEnvWrapperfast path (fast_variant=Trueinsource/isaaclab_rl/isaaclab_rl/sb3.py, which only post-processes environments that terminated) plus additional tuned SB3 training configs.The remaining asks — Python-based hyperparameter configs and per-algorithm defaults — are best tracked separately, so closing as done; please reopen if you'd rather keep this as the umbrella.
🤖 This issue was reviewed as part of an AI-assisted triage of the Isaac Lab backlog, with automated verification against the current codebase. If we got this wrong, please reopen — we'd rather hear about it!