What problem does it solve?
miles-rl-training helps you perform stable, production-grade reinforcement learning post-training for large Mixture-of-Experts (MoE) models while maintaining train-inference consistency under low precision (FP8/INT4).
Core Features & Use Cases
- Unified FP8 + INT4 Quantization-Aware RL: Enables end-to-end low-precision training that reduces numerical mismatch and supports very large MoE models.
- Rollout Routing Replay (R3) for MoE alignment: Records expert routing decisions during SGLang inference and replays them during training to keep expert selection identical.
- Speculative RL for throughput: Uses speculative RL (via SGLang/EAGLE) to increase rollout throughput for large-scale training runs.
- Use Case: You are fine-tuning a Qwen3-MoE or DeepSeek-V3-class MoE model with FP8/INT4 and need bit-wise train-inference expert alignment plus faster rollout generation without RL collapse.
Quick Start
Run miles RL training for a large MoE model with GRPO advantage estimation using your HF checkpoint and rollout sampling configuration.