Archive of AI

Source Snapshot / 2026-10-09-zhipu-slime-zcode-dev-ecosystem-1

THUDM/slime Official Repository

Linked event: 2026-10-09 · Zhipu AI (Z.ai) Open-Sources Asynchronous RL Framework slime and Expands ZCode Developer Tooling Ecosystem

Publisher
GitHub
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / de6c6993e8076e10
Original URL
Open source ↗
Wayback Backup
Wayback archive ↗
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

[来源关键摘录] slime is an open-source LLM training framework for RL scaling connecting Megatron with SGLang, powering GLM-4.5 through GLM-5.3 post-training.

[正文前段节选] Skip to content

Navigation Menu

Appearance settings

You signed in with another tab or window. Reload to refresh your session.

You signed out in another tab or window. Reload to refresh your session.

You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

Repository navigation

NotificationsYou must be signed in to change notification settings

Fork1.4k (1.4k)

Star8.9k (8.9k)You must be signed in to star a repository

slime is an LLM training framework for RL Scaling.

thudm.github.io/slime

Apache-2.0 license

Contributing

Custom properties

Report repository

BranchesTags

Open more actions menu

Latest commit

1,669 Commits

Folders and files

Last commit message

Last commit date

.claude/skills

slime_plugins

.dockerignore

.pre-commit-config.yaml

CONTRIBUTING.md

README_zh.md

build_conda.sh

pyproject.toml

requirements.txt

View all files

Repository files navigation

slime is an LLM training framework for RL scaling, providing two core capabilities:

High-Performance Training: Supports efficient training in various modes by connecting Megatron with SGLang;

Flexible Data Generation: Enables arbitrary training data generation workflows through custom data generation interfaces and server-based engines.

slime's design goal is to make these two capabilities reinforce each other without turning the system into a heavy stack of disconnected trainers, rollout services, and agent frameworks. Megatron training, SGLang rollout, custom data generation, reward computation, verifier feedback, and environment interaction all flow through the same training / rollout / Data Buffer path.

This makes slime one of the most battle-tested open RL post-training frameworks: small enough to understand and extend, but validated through complete training loops behind SOTA-level model releases.

Why This Design Matters

Production experience: slime is the RL framework behind GLM-5.3-Flash, GLM-5.3, GLM-5.2, GLM-5.1, GLM-5, GLM-4.7, GLM-4.6, and GLM-4.5.

Direct engine integration: Megatron arguments are available directly; SGLang arguments use the --sglang- prefix.

Customizable data generation: generation functions, reward functions, verifiers, and environments connect through documented interfaces.

Correctness and reliability: separate rollout-only and train-only debugging, reproducibility controls, recovery, and CPU/GPU tests support long-running experiments.

Supported Models

Alongside the GLM family, slime supports Qwen (Qwen3.8, Qwen3.6, Qwen3.5, Qwen3-Next, Qwen3 MoE, Qwen3, Qwen2.5), DeepSeek (V3, V3.1, R1), and Llama 3. See the model configurations in scripts/models and the training examples.

Engine Configuration and Deployment

Use Megatron arguments directly for parallelism, optimizers, checkpoints, and model configuration. Prefix installed SGLang arguments with --sglang-; for example, --mem-fraction-static becomes --sglang-mem-fraction-static.

For more involved deployments:

SGLang Config: YAML configuration for server groups, multiple models, and per-group overrides.

PD Disaggregation: separate prefill and decode resources.

Delta Weight Sync: send changed weight bytes over shared storage.

External Rollout Engines: connect serving processes managed outside the training job, including disk-based updates across different GPU fleets.

Correctness, Stability, and CI

CPU tests cover core behavior and customization contracts. GPU tests exercise dense and MoE training, rollout deployment, checkpointing, precision, fully asynchronous rollout, distillation, and debug replay. See CI for the test matrix and how to run it.

Engineering guides: Debugging, Reproducibility, Fault Tolerance, Tracing, and Profiling.

slime: An SGLang-Native Post-Training Framework for RL Scaling

Agent-Oriented Design: An Asynchronous and Decoupled Framework for Agentic RL

slime v0.1.0: Redefining High-Performance RL Training Frameworks

Table of Contents

Architecture Overview

Ecosystem Built on slime

Arguments Walkthrough

Code Reading Path

Developer Guide

FAQ & Acknowledgements

Module Descriptions:

training (Megatron): Responsible for the main training process, reads data from the Data Buffer, and synchronizes parameters to the rollout module after training.

rollout (SGLang + router): Generates new data (including rewards/verifier outputs) and stores it in the Data Buffer. Custom generate functions can wrap this with multi-turn loops, tool calls, environment/sandbox interaction, and verifier-based reward.

data buffer: A bridge module that manages prompt initialization, custom data, and rollout generation methods (including agentic workflows that produce samples through the same interface).

The default payload transport is Ray object-store. Selecting --rollout-data-transport straw uses straw for persistent prompt tasks, rollout continuations and training batches on shared JuiceFS storage. Ray carries control messages and references; generation and training processes read and write packed payloads directly. See the straw usage and recovery guide.

Follow the Quick Start Guide for environment setup, data preparation, and your first training run.

We also provide examples for some use cases not covered in the quick start guide; please check examples.

Agentic RL examples

These agentic RL examples use the standard rollout and data buffer interfaces:

examples/multi_agent: Multi-agent generation via --custom-generate-function-path inside the standard rollout loop.

examples/search-r1: Search/RAG-style multi-turn generation via --custom-generate-function-path.

examples/fully_async: Fully-async rollout, useful for long-tail agentic generation where some samples take much longer than others.

examples/coding_agent_rl: Qwen3.8-27B coding-agent RL on Xiaomi MiMo SWE data, using sunabako sandboxes, official test rewards, and token-correct trajectories.

See the Customization Guide for which interface to use for a given agentic workflow.

These are not just demos. They are independent systems that use slime as a reusable RL substrate for production-scale post-training, agentic RL, domain RL, and rollout-system research.

🐎 Dressage: Scalable RL for Any Agent and Sandbox

Dressage is an agentic RL training framework built on slime by Alibaba Accio, centered on unified RL for blackbox agents (e.g., OpenCode, OpenClaw) and white loops across any sandbox environment (e.g., bwrap, E2B, Kubernetes). It decouples interaction semantics, execution placement, and token-level trajectory capture through Paddock, Sandbox, and Proxy layers, adapting agent workflows without rewriting their internal loops. Dressage records token-wise logprobs, loss masks, weight versions, and MoE routing, then uses TITO and segment-aware training to turn long-horizon tool interactions into stable RL samples.

⛵ Miles: Enterprise-Grade Reinforcement Learning for Large-Scale Model Training

Miles is an RL post-training framework for large-scale models, built on slime by RadixArk. It stays closely aligned with slime's upstream development while extending it with enterprise-oriented features: deeper SGLang integration, operational tooling, deployment support, and optimizations for new models and hardware. Miles also adds a growing set of production features, including LoRA, TITO, and low-precision training.

🔷 vime: vLLM-Native RL Post-Training Built on slime

vime is a post-training framework built on slime and maintained by the vLLM project. It keeps slime's Megatron training stack, Data Buffer dataflow, and custom data-generation design, with its main change being a rollout backend swapped to vLLM with vllm-router. Starting from an existing slime launch script, adjusting only rollout-related parameters is enough to quickly run training with vime.

🌈 Relax: Asynchronous RL Engine for Omni-Modal Agentic Training

[...内容已截断,完整版请查看原文或 Wayback 快照]