Skip to content

[Proposal] Stable-Baselines3 (SB3) Improvements #1769

Closed

Description

@RandomOakForest

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:

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

  1. added
    enhancement
    on Jan 31, 2025
  2. AntoineRichard commented on Aug 27, 2026

    @AntoineRichard
    Collaborator

    Thanks for turning @araffin's SB3 discussion into a tracked proposal, @RandomOakForest. The bulk of it is done: #2022 (merged) brought in the optimized Sb3VecEnvWrapper fast path (fast_variant=True in source/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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions