miles-rl-training
Agent skill fromOrchestra-Research/AI-Research-SKILLs
Provides guidance for enterprise-grade RL training using miles, a production-ready fork of slime. Use when training large MoE models with FP8/INT4, needing train-inference alignment, or requiring speculative RL for maximum throughput.
How to install miles-rl-training
install miles-rl-training
# install the AI-Research-SKILLs pack with the skills CLI
npx skills add Orchestra-Research/AI-Research-SKILLs# or add only this skill to Claude Code: copy the folder
06-post-training/miles/
# into
~/.claude/skills/miles/ (all projects)
.claude/skills/miles/ (one project)
1# miles: Enterprise-Grade RL for Large-Scale Model Training23miles is a high-performance, enterprise-ready RL framework optimized for large-scale model post-training. Built as a production fork of slime, it addresses critical challenges in MoE training stability, low-precision training, and train-inference alignment.45## When to Use miles67**Choose miles when you need:**8- Training 1TB+ MoE models (DeepSeek V3, Qwen3-MoE)9- FP8 or INT4 quantization-aware training10- Bit-wise identical train-inference alignment11- Speculative RL for maximum throughput12- Production stability with enterprise support1314**Consider alternatives when:**15- You want the research-grade original → use **slime**16- You need flexible backend swapping → use **verl**17- You want PyTorch-native abstractions → use **torchforge**1819## Key Features2021### Low-Precision Training22- **Unified FP8**: End-to-end FP8 for both inference and training23- **INT4 QAT**: 1TB models on single-machine VRAM (H200)24- **Rollout Routing Replay (R3)**: Bit-wise expert alignment for MoE2526### Performance Optimizations27- **Speculative RL**: 25%+ rollout speedup with online SFT draft models28- **Zero-Copy Weight Sync**: CUDA IPC zero-copy mapping29- **Partial Rollout**: Recycle half-finished trajectories3031### Train-Inference Alignment32- **TIS/MIS**: Truncated/Masked Importance Sampling for off-policy correction33- **Kernel-level optimization**: FlashAttention-3, DeepGEMM integration3435## Installation3637```bash38# Recommended: Docker39…
Excerpt shown under the repository's MIT license.
