Skip to content
ReviewRamble

The weekly brief

AI, reviewed, in your inbox.

  • New reviews of tools, models, MCP servers and repos, with the verdict up front
  • Re-checked prices and ratings when something changes
  • New analysis pieces as they are published

Models, agents, MCP servers and the tools actually worth your time.

One email a week. Unsubscribe with the link in any brief. How we use your email

slime

Tsinghua and Z.ai's RL post-training framework joining Megatron training to SGLang rollouts; it trained every GLM release since 4.5.

Reviewed by ReviewRamble editors · Updated

Source code Open source

Share this page:XLinkedInFacebookRedditWhatsAppEmail

Our rating

4.4/5

slime is the RL framework to study if you post-train large MoE models on H100-class clusters, with production use behind every recent GLM release, but it asks you to live with Megatron and offers little on a single consumer GPU.

What is slime?

slime is a reinforcement-learning post-training framework from THUDM, the Knowledge Engineering Group at Tsinghua University, working with Z.ai. It connects Megatron-LM for training with SGLang for generating rollouts through a shared data buffer, so reward functions, verifiers, multi-turn tool use and sandboxed environments plug into one training loop. Megatron arguments pass through unchanged, and SGLang arguments take a --sglang- prefix.

Z.ai used it for the RL stage of GLM-4.5 through GLM-5.3, and it supports Qwen 2.5 to 3.8, DeepSeek V3, V3.1 and R1, and Llama 3. Several frameworks build on it, among them RadixArk's Miles, the vLLM project's vime and Alibaba's Dressage. It is Apache 2.0, reached v0.4.0 on 9 October 2026 and had commits as recently as 27 November.

Is slime worth it?

slime's best credential is production use: Z.ai lists it as the RL framework behind eight GLM releases, from GLM-4.5 to GLM-5.3-Flash. The design keeps training and rollout as separate services, Megatron on one side and SGLang servers behind a router on the other, joined by a data buffer. That makes agentic RL simple to express. A custom generate function can run multi-turn tool calls or a sandbox and return token-correct trajectories, and the examples include coding-agent RL on Qwen3.8-27B with SWE data and fully asynchronous rollouts for agent tasks with a long tail of slow samples.

The ecosystem says as much as the code. RadixArk's Miles adds enterprise features and LoRA on top, the vLLM project's vime swaps the rollout engine for vLLM while keeping slime's training side, and AWS's AgentCore RL toolkit offers slime as a training back end. A Hugging Face survey of 16 open RL libraries in March 2026 counted it among the Megatron-based libraries that handle MoE expert parallelism correctly. It now has 8,893 stars and 1,379 forks; ByteDance's verl had about four times slime's stars in that survey and supports more training and inference back ends.

The catch: the hardware floor is high. The quick start lists images for H100, H200, B200 and B300, GPU CI mostly covers H100 and H200, and the conda route builds Megatron, SGLang and patches into /root. LoRA training is still an open pull request upstream, so parameter-efficient RL means Miles or another fork, and checkpoints need converting from Megatron to Hugging Face format. Open issues read like a busy project's: a cuDNN version that gives wrong attention gradients with head_dim 256 on H800, removed samples still counted in the loss divisor, HTTP 4xx errors retried 60 times. Releases arrive every one to three months, and nightly images move faster.

Our take: slime suits a lab or company with an H100 cluster and Megatron experience that wants the same RL path Z.ai used. Someone fine-tuning a 7B model on one card will get further with TRL or Unsloth, and a team that wants to swap training back ends will find verl more forgiving.

Where it earns its place

  • A post-training team at a model lab with a multi-node H100 cluster

    Run GRPO on a Qwen3 MoE model with verifier rewards

    Start from the slimerl/slime CUDA 13 Docker image, pass Megatron parallelism flags directly and SGLang flags with --sglang-, and plug a reward function into the rollout. Fully asynchronous mode keeps GPUs busy when some samples take far longer than others.

  • An applied-research group training a coding agent

    Reward a model on real test results from sandboxed repositories

    examples/coding_agent_rl trains Qwen3.8-27B on Xiaomi MiMo SWE data with sunabako sandboxes and the official test rewards, with a custom generate function handling the multi-turn tool loop.

  • A university lab researching RL systems

    Prototype a new rollout scheduling idea without writing a trainer from scratch

    APRIL and RLVE were both built on slime's rollout and data buffer interfaces. The documented reading path runs from train.py through RolloutManager to the Megatron actor, so a change stays in one module while Megatron and SGLang handle the rest.

Before you commit

Setup
Docker on Linux x86_64 with NVIDIA GPUs: pull slimerl/slime:latest-cu130, mount the repository and run pip install -e . --no-deps inside; the image enables CUDA 13 compatibility libraries for drivers back to 535. A conda route builds everything from source and takes longer. An AMD tutorial exists.
Integrations
Megatron-LM and SGLang with arguments passed through, Ray for orchestration, an optional straw transport on JuiceFS, and external rollout engines across GPU fleets; downstream frameworks include Miles, vime, Dressage, Relax and AWS's AgentCore RL toolkit.
Data and privacy
Runs entirely on your own cluster; the docs describe no hosted service or telemetry. Apache 2.0, with model weights under their own licences.
Cost at scale
The software is free and the cost is GPUs: the documented images target H100, H200, B200 and B300, and recipes for large MoE models span several nodes. THUDM sells nothing; RadixArk's Miles is the enterprise-oriented fork.
Limits
No upstream LoRA; GPU CI runs mainly on H100 and H200, so other platforms are less tested; open bugs in loss accounting and request retries; the conda script writes to /root; SGLang patches are being moved upstream under an open RFC.

What’s good

  • Production use for the RL stage of GLM-4.5 through GLM-5.3
  • Clean split between Megatron training, SGLang rollout and a data buffer
  • Custom generate, reward and verifier hooks for multi-turn agentic RL
  • Fully asynchronous rollout and prefill-decode disaggregation for slow agent tasks

What’s not

  • Built for H100, H200 and Blackwell clusters, with little for single consumer GPUs
  • No upstream LoRA support yet
  • The Megatron dependency and patched SGLang make setup heavy
  • Checkpoints need conversion to Hugging Face format

Best for

ML teams post-training large dense or MoE models with RL on H100-class clusters, especially for agentic and coding tasks.

slime alternatives

Where it fits in the AI stack

slime: common questions

Is slime worth it?
slime is the RL framework to study if you post-train large MoE models on H100-class clusters, with production use behind every recent GLM release, but it asks you to live with Megatron and offers little on a single consumer GPU. We rate it 4.4 out of 5.
How much does slime cost?
Free under Apache 2.0. No paid edition from THUDM; the cost is the GPU cluster.
What are the downsides of slime?
Built for H100, H200 and Blackwell clusters, with little for single consumer GPUs; no upstream LoRA support yet; the Megatron dependency and patched SGLang make setup heavy; checkpoints need conversion to Hugging Face format.
Who is slime best for?
ML teams post-training large dense or MoE models with RL on H100-class clusters, especially for agentic and coding tasks.
How much does slime cost for a team or in production?
The software is free and the cost is GPUs: the documented images target H100, H200, B200 and B300, and recipes for large MoE models span several nodes. THUDM sells nothing; RadixArk's Miles is the enterprise-oriented fork.
Is slime safe for company data?
Runs entirely on your own cluster; the docs describe no hosted service or telemetry. Apache 2.0, with model weights under their own licences.
What are the best slime alternatives?
The closest alternatives we have reviewed are TRL, Agent Lightning, Axolotl and Unsloth.

Answers checked Nov 30, 2026.

Make slime? Show this rating on your siteslime rated 4.4 out of 5 on ReviewRamble