Library / SDK
leggedrobotics/rsl_rl avatar
leggedrobotics/rsl_rl

RSL-RL: a compact PPO and distillation library for robot learning

A fast and simple implementation of learning algorithms for robotics.

3,156 stars726 forksPythonNOASSERTION

At a glance

What is it?
RSL-RL is a GPU-accelerated PyTorch library for robot learning, built around PPO and student-teacher distillation. It is aimed at researchers who want to read and modify the algorithm itself rather than configure a large framework.
Who is it for?
Adopt RSL-RL if you are doing robot learning research and want a small PyTorch codebase you can read and modify, especially if you already work inside Isaac Lab, Legged Gym, mjlab or MuJoCo Playground. Do not adopt it if you need offline RL, model-based methods, or a framework with a configuration layer that hides the training loop.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • leggedrobotics/rsl_rl3,156 ★ · +144
Star history
Repository2026-09-242026-11-24
leggedrobotics/rsl_rl3k3.2k

144 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What RSL-RL is for, and who should pick it up

RSL-RL is a learning library for robotics research. The README describes it as "GPU-accelerated, lightweight" and says its compact design lets researchers prototype and test new ideas "without the overhead of modifying large, complex libraries." That sentence is the whole pitch, and it also defines the audience: people who want to change the algorithm, not people who want to avoid touching it.

The library ships two method families. PPO is the workhorse for locomotion and manipulation policies. Student-Teacher Distillation is the second, used when a policy trained with privileged information has to be compressed into one that runs from onboard observations. Both are listed in the README under "Robotics-first methods."

If your project is a conventional supervised learning pipeline, or a reinforcement learning problem with no simulator and no robot, RSL-RL has little to offer. It exists because robot learning has a specific shape: a physics simulator produces rollouts at high throughput, and the algorithm has to keep up.

The mechanism: PPO, distillation and multi-GPU rollouts

The repository layout puts the algorithms under rsl_rl/, with the package installed as rsl-rl-lib. The README states that the library supports multi-GPU training and that it is used by Isaac Lab, Legged Gym, mjlab and MuJoCo Playground. Those four environments are the integration surface: each one supplies the simulator and the environment wrapper, and RSL-RL supplies the optimizer and the rollout buffer.

That division matters when you evaluate the library. RSL-RL does not ship a simulator, and the README does not claim one. If you install rsl-rl-lib on its own, you get the algorithms and their PyTorch dependencies, not a robot. The training loop you actually run lives in the environment library you pair it with.

The dependency list in pyproject.toml is short and tells you what the library assumes: torch>=2.6.0, tensordict>=0.7.0, numpy>=1.16.4, tensorboard, GitPython, onnx and onnxscript>=0.5.4. The presence of onnx and onnxscript indicates that policies can be exported to ONNX for deployment outside Python. tensordict suggests the rollout data is organized in structured tensors rather than plain dictionaries. The README does not document the export workflow, so treat the ONNX dependencies as a signal of intent rather than a documented feature.

Student-teacher distillation in this library follows the standard two-stage pattern: a teacher policy is trained with access to information the deployed robot will not have, then a student policy is trained to imitate it using only what the robot can observe. The README names the method but does not spell out the loss or the schedule, so anyone planning to use it should read the source under rsl_rl/ before assuming a particular formulation.

Installing rsl-rl-lib and running a first training job

The README requires Python 3.9+ and recommends a virtual environment, noting that if your environment library (Isaac Lab is the example given) already created one, you should activate it first. The package name on PyPI is rsl-rl-lib, not rsl_rl.

To use RSL-RL as a dependency of an environment library:

bash
pip install rsl-rl-lib

After this, the rsl_rl package is importable from your environment. You should see the version reported by pip match the release you intended to install; the current release line is 5.5.1.

If you intend to modify the algorithms, the README gives a development install instead. This clones the repository and installs it in editable mode, so your edits to the source take effect without reinstalling:

bash
git clone https://github.com/leggedrobotics/rsl_rl
cd rsl_rl
pip install -e .

The README stops there. It does not include a standalone training script, a sample configuration, or a command that runs PPO on a built-in task. That is a deliberate consequence of the design: RSL-RL is meant to be driven by an environment library, and the README points to Isaac Lab, Legged Gym, mjlab and MuJoCo Playground for that. To run your first real job, install one of those, follow its training instructions, and let it call into RSL-RL. The RSL-RL documentation site at leggedrobotics.github.io/rsl_rl is the place to look for API-level detail that the README omits.

Optional extras exist for experiment tracking. The pyproject.toml defines test, wandb and neptune extras, so a tracking backend is installed with the corresponding extra rather than by default.

Where RSL-RL stops being the right tool

The README lists PPO and Student-Teacher Distillation. It does not list off-policy algorithms, model-based methods, offline RL, or any algorithm family beyond those two. A related search phrase asks about "rsl rl sac", but the README does not mention SAC, and nothing in the repository metadata suggests it is included. If your problem needs an off-policy method, this is not the library to reach for.

The second limitation is the dependency on an external environment library. RSL-RL has no built-in task. Someone who wants to evaluate the library on a toy problem first will find no such entry point in the README, and the tests/ directory is the only self-contained code path the repository metadata reveals. That makes the initial evaluation heavier than it looks: you are really evaluating RSL-RL plus Isaac Lab, or RSL-RL plus MuJoCo Playground.

The third is hardware. The README calls the library GPU-accelerated and lists multi-GPU training as a feature. It does not describe a CPU-only path or state minimum GPU requirements. On a CPU-only machine, the throughput advantage the library is built around does not apply, and the README offers no guidance on what to expect.

RSL-RL against rl_games

The most common comparison in this space is rl_games, which is the other RL library widely used with Isaac Gym and Isaac Lab. The difference is in what each one optimizes for.

rl_games is built around a configuration-driven design: training runs are defined by YAML files, and the algorithms are assembled from configurable components. That scales well across many tasks and lets you change behavior without editing algorithm code. The cost is indirection. When something behaves unexpectedly, you trace it through the configuration layer before you reach the math.

RSL-RL takes the opposite position. The README's first key feature is a "minimal, readable codebase with clear extension points for rapid prototyping." The library assumes you will open the source and change it. That is faster when your research question is about the algorithm itself, and slower when your research question is about a task and you would rather not think about the optimizer.

Neither choice is universally better. If you are running many tasks with standard algorithms and want configuration to be the interface, rl_games fits that workflow. If you are modifying the update rule, the advantage network, or the distillation loss, a smaller codebase is easier to reason about. The related search phrase "rsl_rl vs rl_games" reflects exactly this decision.

Licence, maintenance and upgrade cost

The repository metadata reports the licence as NOASSERTION, which means no recognized SPDX identifier was detected at the top level. The pyproject.toml, however, declares license = "BSD-3-Clause", and the repository contains both a LICENSE file and a licenses/ directory with a dependencies subdirectory. The setup.py header carries the line "SPDX-License-Identifier: BSD-3-Clause" along with a copyright notice for ETH Zurich and NVIDIA CORPORATION. The discrepancy between the metadata field and the project files is worth resolving yourself by reading LICENSE and the files under licenses/dependencies before you redistribute anything. This is a description of what the files say, not legal advice.

The bundled dependency licence texts under licenses/dependencies suggest the project tracks the licences of what it ships, which is a reasonable sign for downstream redistribution, but the README does not discuss licensing at all.

On maintenance: the last push to the default branch was on 2026-09-09, the same date as the v5.5.1 release, with v5.5.0 on 2026-08-27 and v5.4.2 on 2026-07-15. The release cadence over that period is roughly one release per month, and the repository is not archived. The README does not state a support policy, a deprecation policy, or a versioning scheme, so upgrading is a matter of reading the release notes for each version.

Upgrade cost is dominated by the pinned dependencies. The package requires torch>=2.6.0, tensordict>=0.7.0 and onnxscript>=0.5.4. If your environment library pins a different torch or tensordict, you resolve that conflict before you resolve anything in RSL-RL itself. The pyproject.toml also configures pyright with pythonVersion = "3.9" and typeCheckingMode = "basic", and reportOptionalMemberAccess is disabled, so type checking is a development aid rather than a guarantee.

Editorial conclusion

Adopt RSL-RL if you are doing robot learning research and want a small PyTorch codebase you can read and modify, especially if you already work inside Isaac Lab, Legged Gym, mjlab or MuJoCo Playground. Do not adopt it if you need offline RL, model-based methods, or a framework with a configuration layer that hides the training loop. Before committing, verify the LICENSE file text, since the repository metadata does not carry a recognized SPDX license expression, and confirm on PyPI that rsl-rl-lib at the version you need supports your installed torch and tensordict.

Frequently asked questions

What is RSL-RL?

It is a GPU-accelerated, lightweight learning library for robotics research, implemented in PyTorch and distributed on PyPI as rsl-rl-lib. It provides PPO and Student-Teacher Distillation with support for multi-GPU training.

What does RSL-RL stand for?

The README does not expand the abbreviation. The project is credited to the Robotics Systems Lab at ETH Zurich, and the citation in the README lists Schwarke, Mittal, Rudin, Hoeller and Hutter as authors.

How does RSL-RL compare with rl_games?

The README positions RSL-RL as a minimal, readable codebase with clear extension points for rapid prototyping, while rl_games is the other RL library commonly used with Isaac Gym and Isaac Lab. The README does not contain a direct comparison, so the choice comes down to whether you want to modify the algorithm code or configure it.

Official sources

  1. Issues
  2. leggedrobotics/rsl_rl on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/leggedrobotics-rsl-rl.svg)](https://hysenlabs.com/projects/leggedrobotics-rsl-rl)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/leggedrobotics-rsl-rl.svg)](https://hysenlabs.com/projects/leggedrobotics-rsl-rl)

Was this useful?