
RadixArk just dropped Miles: An open-source RL framework for LLMs and multimodal models to make training simple, efficient, and stable
RadixArk just open-sourced Miles, an enterprise-ready RL framework designed specifically for post-training large-scale LLMs and VLMs. It pairs SGLang for high-throughput rollouts with Megatron-LM (or PyTorch FSDP2) for distributed training.
Anyone running RL at scale knows the usual headaches: engine crashes, off-policy divergence, MoE routing mismatches, and massive weight synchronization overhead. Miles targets those exact infrastructure bottlenecks.
Features:
- Token-in-Token-Out (TITO): Preserves exact rollout tokens and metadata across black-box harnesses and environments without detokenizing and retokenizing, avoiding encoding mismatches.
- P2P RDMA Weight Updates: Synchronizes weight updates between rollout engines and training workers in seconds—even at trillion-parameter scales—without pipeline stalls.
- Rollout Routing Replay (R3): Records expert routing choices during SGLang rollouts and replays them in Megatron-LM’s forward pass, eliminating MoE routing divergence that causes training instability.
- Fully Async & Decoupled RL Pipelines: Decouples rollout and training workers with customizable on/off-policy schedules and async evaluation to maximize GPU utilization.
- In-Place Fault Recovery: Automatically recovers killed or crashed SGLang rollout engines and resumes the run in-place without pausing or restarting the training cluster.
↗️ More info: https://aideveloper44.com/product/miles-6a86280b29bc1550c12a004d
↗️ GitHub: https://github.com/radixark/miles