SuperAPIAI Directory

miles

github.com · AI developer platforms

an enterprise-facing reinforcement learning framework for large-scale MoE post-training and production workloads.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

Miles is an enterprise-oriented reinforcement learning framework, mainly targeting large-scale post-training and production-grade workloads for LLMs and VLMs. It is derived from slime and co-evolves with it, positioned as "Enterprise-Grade Reinforcement Learning for Large-Scale Model Post-Training". Its slogan is "A journey of a thousand miles begins with a single rollout."

Architecture and main capabilities

Miles pairs SGLang, used for high-throughput rollout, with Megatron-LM, used for scalable training, while also supporting FSDP2 and torchtitan backends. It provides the precision, stability, and observability capabilities required for RL runs at trillion-parameter scale.

Core capabilities include:

  • Fully asynchronous RL: rollout and training workers are decoupled, supporting configurable on-policy and off-policy scheduling, pipelines that reduce bubbles, and customizable asynchronous rollout and eval modes.
  • Fast agent rollout: generation runs on SGLang, distributing requests across multiple engines via a router, retaining per-request metadata and performing cluster health checks, tuned for multi-turn agent workloads.
  • Fast weight updates: new weights can reach the engines within seconds in the loop, even for trillion-parameter models such as Kimi-K2.6; in disaggregated deployments, P2P RDMA serves as the fast path.
  • Low-precision training: supports MXFP8 and NVFP4 training, with numerically stable RL recipes to reduce precision-induced divergence; also supports FP8, INT4 QAT, BF16, and FP16.
  • LoRA and multi-LoRA: low-rank adapters can train frontier-scale models with a small fraction of GPUs, and the same adapter can be loaded directly into SGLang for rollout.

Correctness and resilience

  • Token-in-token-out (TITO): supports every model and every black-box harness, with no detokenize/retokenize between rollout and training.turn.
  • Rollout Routing Replay (R3): expert routing recorded during rollout is replayed in the trainer forward pass, eliminating the MoE routing mismatch that destabilizes large-scale runs, and overlapping computation with communication to reduce cost.
  • Fault tolerance: when an SGLang engine goes down, Miles recovers it and continues running in place—no restart, no pause.

Supported models and hardware

  • Day-0 model support: DeepSeek-V4.1, DeepSeek-V4, Kimi-K3, Qwen3.8, GLM-5.3, GLM-5.2, MiMo-V2.6-Flash, Inkling, and Nemotron are all available on release day. Beyond day 0, nearly every frontier model can run on Miles, including Kimi-K2.6 and Qwen3.5.
  • Broad hardware support: NVIDIA GB300, GB200, B300, B200, H200, H100, and A100, as well as AMD MI355X, MI350X, MI325X, and MI300X. For the support status of each GPU, see the installation documentation, and for AMD ROCm images, see the AMD ROCm section.

Recipes and ways to run

  • Broad recipe support: for RL, GRPO, GSPO, PPO, and REINFORCE++ are supported, in addition to score centering, SFT, and on-policy distillation.
  • Ray or Kubernetes: the same launch script can run on Ray, or be installed as a Helm release, letting Kubernetes schedule every worker in the run.
  • Agent environments: train coding and computer-use agents through connectors such as Harbor, HUD, NeMo Gym, OpenEnv, and Verifiers, each integrating with the appropriate rollout layer, and task sandboxes can run on AgentENV, Daytona, E2B, or Modal.
  • Diffusion models: in Miles-diffusion, Flow-GRPO and Diffusio are supported based on the sglang-diffusion rollout engine and FSDP2 trainer.nNFT and SFT.

Usage and Resources

The repository provides entry points such as Website, Documentation, Quick Start, Supported Models, Miles Diffusion, Blog, and Slack (#miles-rl), and includes documentation sections such as Getting Started, Supported Models, Launch Script Walkthrough, Training Backends, and Contribution Guide. Code repository:https://github.com/radixark/miles Miles is derived from slime and integrates SGLang, Megatron-LM, and torch_memory_saver.

Updates (excerpted from the official text)

The official text lists several timeline updates, including day-0 support by SGLang and Miles for DeepSeek-V4.1, Qwen3.8, Kimi K3, Inkling, and NVIDIA Nemotron 3 Ultra; the release of Miles v0.1 and the technical report Miles v0.1: Production-Level Post-Training; Blackwell-native 8-bit and 4-bit RL (end-to-end MXFP8 and NVFP4); the implementation of on-policy distillation; DeepSeek-V4 Flash RL training coming to AMD Instinct MI355X; a PyTorch-native large-scale LLM RL post-training stack; token-in-token-out; P2P weight transfer, etc.

Limitations

The official text does not provide information such as fees, pricing, specific platform requirements, performance figures, or detailed installation commands; this content is not yet available. When using it, please refer to the official documentation and repository instructions.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools