← All entries
Code2026#1328

slime v0.4.0: A First Step Toward Greater Scale

Summary

slime (THUDM) is an LLM post-training framework for RL scaling that connects Megatron training with SGLang rollout through a shared training/rollout/Data Buffer path; it is the RL framework behind the GLM-4.5 through GLM-5.3 model releases and supports Qwen, DeepSeek, and Llama 3 models (repo ~8.6K stars, Apache-2.0). Release v0.4.0, 'A First Step Toward Greater Scale', was motivated by OpenAI's Navier-Stokes research effort (~10,000 concurrent agents, ~130B output tokens), which prompted a rethink of RL infrastructure scale. Four architectural changes: (1) Focus — two training modes share one train.py lifecycle: synchronous training for algorithmic exploration and correctness, fully async training for throughput at scale (legacy train_async.py removed; PR #2391). (2) Distributed rollout — with the new straw backend, fully async rollout runs one rollout worker per Ray node on CPU resources, each with its own generation pool and asyncio event loop, so orchestration spreads across cluster CPUs instead of a single process bottleneck; training batches collect completed groups without waiting for every worker (PR #2410). (3) Persistent storage — straw (github.com/zhuzilin/straw) provides durable queues and shared tensor storage on a filesystem (JuiceFS currently supported): rollout workers publish payloads to shared storage and training ranks read by reference, moving bulk data off Ray's object-store transport; prompt tasks, partial rollouts, completed samples, and converted training batches persist as large append-only files to reduce small-file/filesystem metadata overhead, with checkpoint rollback support (PRs #2410, #2427). Select via --rollout-data-transport straw. (4) Independent recovery — Megatron training lifetime separated from the SGLang serving cluster: healthy engines/routers keep running after a training failure, and resubmitted training restores the last committed checkpoint and replays retained batches, reusing accepted samples and conversion results (PR #2444). Other improvements: score centering (REINFORCE objective with top-p replay and importance-sampling corrections, --use-score-centering, for training-inference mismatch); PipelineRL --flush-cache-interval letting unfinished requests and KV caches survive selected weight updates; streaming and agent rollouts (cumulative/incremental generation streams, partial-prefix retention, per-request cancellation); Biren SUPA and Ascend NPU accelerator backends; correctness fixes (linear-attention gradients under context parallelism, full-vocabulary reference logprobs in actor top-p replay, checkpoint shard selection in disk-delta sync); stack updated to Megatron Core 0.19.2, Transformer Engine 2.18.0, Flash Linear Attention 0.5.2, NCCL 2.30.7.

Venue
GitHub release v0.4.0 (2026-10-08); THUDM/slime — LLM post-training framework for RL Scaling (Megatron + SGLang), Apache-2.0
Source
x
Access
free
Added
Oct 9, 2026
Verified
Oct 9, 2026
Found via
#slime_framework

Research notes

  • Discovery: @slime_framework X post 2026-10-08 ~7:14 PM ET (~9.4K views, 105 likes, 62 bookmarks), top of a 5-post thread; release notes verified against the full v0.4.0 GitHub release text 2026-10-09. Relevance: directly in the user's RL post-training / training-infra cluster — another RL-scaling framework in the exact orbit of 1610 (NeMo-DCR), 1620 (ThunderSyncRL), 1622 (Proximal stack), 1625 (AfterQuery), 1633 (decisive-edit checkpoint selection). ThunderSyncRL connection: both attack learner/rollout scaling for agentic RL — ThunderSyncRL streams gradients while holding a fixed policy snapshot for batch-sync correctness, while slime v0.4.0 goes fully async with durable rollout queues (straw) and independent Megatron recovery; the sync-vs-async tradeoff plus straw's persistent-queue design are concrete infra design points for his own RL stack. License Apache-2.0 (verified on repo page).

Similar entries