What problem does it solve?
It streamlines LLM reinforcement-learning post-training by coordinating Megatron-LM training with high-throughput SGLang rollouts so you can train faster and at scale without building the systems yourself.
Core Features & Use Cases
- Megatron-LM RL training: Runs actor/critic (optional) training with full parallelism support (TP/PP/DP/SP) for stable, scalable policy optimization.
- SGLang-based rollout generation: Produces responses efficiently via SGLang router for GRPO/PPO-style workflows and multi-turn agent training.
- Data buffer for RL loops: Manages prompts, custom filtering, and off-policy buffering to support research-grade training pipelines.
- Use Case: Train a GLM-4.x or Qwen/DeepSeek/Llama reasoning model with GRPO by streaming JSONL prompts into SGLang rollouts and feeding generated samples into Megatron-LM for iterative policy updates.
Quick Start
Train a GRPO run by executing: python train.py --actor-num-nodes 1 --actor-num-gpus-per-node 4 --rollout-num-gpus 4 --advantage-estimator grpo --use-kl-loss --kl-loss-coef 0.001 --rollout-batch-size 32 --n-samples-per-prompt 8 --global-batch-size 256 --num-rollout 3000 --prompt-data /path/to/data.jsonl