Skip to content

Software

HIL-SERL

By Robotic AI & Learning Lab Berkeley, from github.com/rail-berkeley/hil-serl (opens in a new tab)

  • Humanoids and robot learning
  • Framework
  • Apache-2.0

A set of libraries, environment wrappers and examples for training robot manipulation policies with reinforcement learning, using demonstrations and human corrections.

  • Stale. No commit in 12 months: the newest is from 27 Oct 2025.

Facts

GitHub stars
1,606read on 28 Nov 2026
Last update
27 Oct 2025Newest commit on main
Maintenance
Staleno commit in 12 months
Difficulty
Advanced
Hardware it needs, as the project states it
Real-robot use is for a Franka arm and needs the serl_robot_infra setup with ROS; no other hardware requirements are stated.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit c32939b (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Trains RL policies for robotic manipulation from a mix of demonstrations and human corrections.
  • Actor and learner nodes run asynchronously and exchange data over the network, with the learner periodically syncing the policy to the actor.
  • Includes agents such as SAC and BC, Gym environment wrappers, a replay buffer and data store, and vision models.
  • Provides scripts for policy training, demonstration data collection and reward classifier training.
  • Robot infrastructure includes a Flask server that sends commands to the robot via ROS and a Gym environment for the Franka robot.
  • Includes step-by-step walkthroughs for tasks such as RAM insertion, USB pickup and insertion, object handover and egg flip.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Stale, last commit on 27 Oct 2025.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit c32939b

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by Robotic AI & Learning Lab Berkeley, at commit c32939b, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

HIL-SERL: Precise and Dexterous Robotic Manipulation via Human-in-the-Loop Reinforcement Learning

(opens in a new tab) (opens in a new tab) (opens in a new tab)

Picture: task_banner.gif

Webpage: https://hil-serl.github.io/ (opens in a new tab)

HIL-SERL provides a set of libraries, env wrappers, and examples to train RL policies using a combination of demonstrations and human corrections to perform robotic manipulation tasks with near-perfect success rates. The following sections describe how to use HIL-SERL. We will illustrate the usage with examples.

🎬: HIL-SERL video (opens in a new tab)

Table of Contents

Installation
  1. Setup Conda Environment: create an environment with

    conda create -n hilserl python=3.10
    
  2. Install Jax as follows:

    • For CPU (not recommended):

      pip install --upgrade "jax[cpu]"
      
    • For GPU:

      pip install --upgrade "jax[cuda12_pip]==0.4.35" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
      
    • For TPU

      pip install --upgrade "jax[tpu]" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
      
    • See the Jax Github page (opens in a new tab) for more details on installing Jax.

  3. Install the serl_launcher

    cd serl_launcher
    pip install -e .
    pip install -r requirements.txt
    
  4. Install for serl_robot_infra Follow the README (opens in a new tab) in serl_robot_infra for installation and basic robot operation instructions. This contains the instruction for installing the impendence-based serl_franka_controllers (opens in a new tab). After the installation, you should be able to run the robot server, interact with the gym franka_env (hardware).

Overview and Code Structure

HIL-SERL provides a set of common libraries for users to train RL policies for robotic manipulation tasks. The main structure of running the RL experiments involves having an actor node and a learner node, both of which interact with the robot gym environment. Both nodes run asynchronously, with data being sent from the actor to the learner node via the network using agentlace (opens in a new tab). The learner will periodically synchronize the policy with the actor. This design provides flexibility for parallel training and inference.

Table for code structure

Code DirectoryDescription
examples (opens in a new tab)Scripts for policy training, demonstration data collection, reward classifier training
serl_launcher (opens in a new tab)Main code for HIL-SERL
serl_launcher.agents (opens in a new tab)Agent Policies (e.g. SAC, BC)
serl_launcher.wrappers (opens in a new tab)Gym env wrappers
serl_launcher.data (opens in a new tab)Replay buffer and data store
serl_launcher.vision (opens in a new tab)Vision related models and utils
serl_robot_infra (opens in a new tab)Robot infra for running with real robots
serl_robot_infra.robot_servers (opens in a new tab)Flask server for sending commands to robot via ROS
serl_robot_infra.franka_env (opens in a new tab)Gym env for Franka robot
Run with Franka Arm

We provide a step-by-step guide to run RL policies with HIL-SERL on a Franka robot.

Check out the Run with Franka Arm (opens in a new tab)

Citation

If you use this code for your research, please cite our paper:

@misc{luo2024hilserl,
      title={Precise and Dexterous Robotic Manipulation via Human-in-the-Loop Reinforcement Learning},
      author={Jianlan Luo and Charles Xu and Jeffrey Wu and Sergey Levine},
      year={2024},
      eprint={2410.21845},
      archivePrefix={arXiv},
      primaryClass={cs.RO}
}

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.