What problem does it solve?
This Skill addresses the challenge of optimizing Large Language Models (LLMs) post-training using Reinforcement Learning (RL) with the slime framework, enabling scalable and efficient model enhancements.
Core Features & Use Cases
- Megatron-LM Integration: Seamless integration with Megatron-LM for training with full parallelism support.
- SGLang Rollout: High-throughput rollout generation using SGLang for efficient inference.
- Data Buffer Management: Flexible prompt management and sample storage for data handling.
- Model Support: Supports training for various models including GLM, Qwen3, DeepSeek V3/R1, and Llama 3.
- Use Case: Ideal for research-grade frameworks requiring production backing, such as Z.ai, for implementing custom data generation workflows and tight integration with Megatron-LM for RL scaling.
Quick Start
Run the following command to start the training process for a GRPO model using slime:
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 \
${MODEL_ARGS[@]} ${CKPT_ARGS[@]}