What problem does it solve?
slime streamlines the painful process of post-training large language models with reinforcement learning by tightly coordinating Megatron-LM training with SGLang-based high-throughput rollout generation.
Core Features & Use Cases
- RL post-training with Megatron-LM: Supports actor training (and optional critic) with full parallelism (TP/PP/DP/SP) so you can run GRPO-style pipelines efficiently.
- Fast rollout generation with SGLang + router: Produces rollout samples at scale using an inference router, enabling multi-turn and tool-aware workflows.
- Flexible data buffer and off-policy workflows: Provides rollout data sources and buffering/selection so you can reuse or filter generated samples before training.
Use cases include training reasoning/GLM-style models with GRPO, building custom rollout data generation pipelines, and integrating reward/verifier logic while maintaining strong Megatron-LM compatibility for RL scaling.
Quick Start
Ask the AI to help you train with GRPO by running train.py with your chosen model script, rollout/batch parameters, and a JSONL dataset path that contains prompt and label fields.