THUDM/slime

slime is an LLM post-training framework for RL Scaling.

What it solves

slime is a high-performance LLM post-training framework designed for RL scaling. It solves the problem of disconnected and heavy stacks of trainers, rollout services, and agent frameworks by unifying the training, rollout, and data generation paths into a single, streamlined flow.

How it works

slime connects Megatron-LM for training and SGLang for rollouts. It uses a "native pass-through" design, allowing users to use Megatron and SGLang arguments directly without adding abstraction layers. The architecture consists of three main modules:

  • Training (Megatron): Handles the main training process and synchronizes parameters to the rollout module.
  • Rollout (SGLang + router): Generates new data and computes rewards/verifier outputs.
  • Data Buffer: Acts as a bridge managing prompt initialization and rollout generation methods.

It supports various advanced deployment configurations, such as PD disaggregation (prefill/decode separation), delta weight synchronization for efficient updates, and external rollout engines for disaggregated serving.

Who it’s for

Researchers and engineers working on large-scale RL post-training for LLMs, specifically those using the Megatron-SGLang stack. It is designed for those needing a battle-tested framework that is lightweight enough to be extended for agentic RL, omni-modal training, or verifiable environments.

Highlights

  • Battle-tested: Used to train the GLM family of models (GLM-4.5 through GLM-5.3).
  • SGLang-Native: Deeply optimized for SGLang to leverage specific serving, routing, and caching capabilities.
  • Flexible Data Generation: Supports custom interfaces for multi-agent systems, tool use, and long-horizon agentic workflows without forking the training kernel.
  • Production-Ready: Includes built-in support for fault tolerance, tracing, profiling, and comprehensive CI/CD for RL infrastructure.
  • Broad Model Support: Compatible with Qwen, DeepSeek V3/R1, and Llama 3 series.

Related

  • Project
  • Dispatch
  • Dispatch
  • Project
  • Project