SuperAPIAI Directory

ROLL

github.com · AI developer platforms

An Efficient and User-Friendly Scaling Library for Reinforcement Learning with Large Language Models.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

ROLL (Reinforcement Learning Optimization for Large-Scale Learning) is an efficient and easy-to-use large language model reinforcement learning library open-sourced by Alibaba, designed specifically for leveraging large-scale GPU resources for LLM reinforcement learning. It aims to significantly improve LLM performance in key scenarios such as human preference alignment, complex reasoning, and multi-turn agent interaction. The project was developed by Alibaba's Taobao and Tmall Group and Alibaba Group, and the code is distributed under the Apache License 2.0.

In terms of use, ROLL targets reinforcement learning post-training and large-scale training for large language models, covering multi-task RL training, agentic reinforcement learning, and various post-training technical workflows. Its goal is to provide researchers and engineering teams with reinforcement learning training capabilities ranging from a single machine to clusters of thousands of GPUs.

Main capabilities include:

  1. Multi-task reinforcement learning training (RLVR): covers tasks such as mathematics, programming, general reasoning, open-ended question answering, and instruction following; supports flexible domain_batch_size distribution control; supports sample-level asynchronous parallel Rollout, asynchronous reward computation, and dynamic sampling; asynchronous training is being implemented.
  2. Agentic RL: supports multi-turn interaction capabilities such as games, multi-turn dialogue, and tool use; supports environment-level asynchronous parallel rollout and asynchronous training; multi-turn interaction rollout supports local debugging to improve the development efficiency of multi-turn interaction business; supports TrajectoryWise (StarPO) and StepWise (GiGPO) training paradigms.
  3. Algorithm-friendly: provides flexible and rich RL strategy configurations by default, with more than 20 reinforcement learning strategy options, such as reward normalization, reward clipping, and multiple advantage estimation methods; supports reinforcement learning algorithms such as PPO, GRPO, Reinforce++, TOPR, RAFT++, and GSPO out of the box, while the materials also list strategy and algorithm names such as PPO Lite, GSPO, GSPO, RewardFL, StarPO, and GiGPO.
  4. Rich training and inference engines: adopts a Ray-based multi-role distributed architecture; unifies multiple backends through policy abstraction, making it easy to scale from a single machine to a thousand-GPU cluster. Inference/generation supports vLLM and SGLang; training supports FSDP2 and Megatron-LM 5D parallelism (mcore-adapter, dp/tp/pp/cp/ep); possesses extreme offload/reload capabilities; supports LoRA training; supports FP8 rollout (FP8 inference for LLM as judge; the combination of FP8 rollout and BF16 training is still under development).
  5. AutoDeviceMapping: supports customizing device mapping for different roles, and flexibly manages colocated and disaggregated deployment.
  6. Observability: integrates SwanLab / WandB / TensorBoard, and can track performance for each domain and reward type.
  7. Rich post-training technology support: covers Agentic RL LLM & VLM, LLM & VLM RLVR, Distill Pipeline LLM & VLM, DPO Pipeline LLM & VLM; the SFT Pipeline is still under development.

In terms of usage, the project provides installation instructions, configuration system documentation, debugging guides, trackers and metrics, checkpoint saving and restoration guides, instructions for converting MCoreAdapter models to Hugging Face format, as well as documentation such as single-node deployment quick start, multi-node deployment quick start, quick start for rapid development using Alibaba Cloud Function Compute DevPod, and FAQs. The materials also mention pipelines such as RLVR Pipeline, Agentic Pipeline, Agentic comprehensive guide, and Distill Pipeline. In terms of resources, it provides Resource Config, GPU time-sharing reuse control, asynchronous parallel Rollout, asynchronous training features, and an Ascend usage guide.

Applicable scenarios include human preference alignment for large language models, complex reasoning, multi-turn agent interaction, mathematics and programming tasks, general reasoning, open-ended question answering, instruction following, as well as agent tasks such as games, multi-turn dialogue, and tool use, and can run in environments ranging from a single machine to large-scale GPU clusters.

In terms of limitations, the materials only clearly state that asynchronous training is still being implemented, the combination of FP8 rollout and BF16 training is still under development, and the SFT Pipeline is still under development; other features, fees, prices, platforms, or effects not mentioned in the materials have not yet been provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools