TopGit
GitHub Repo Review

Miles reinforcement learning framework for enterprise RL

radixark/miles
MTopGit review image for radixark/miles
Review by Topgit.dev for radixark/miles, with GitHub repository stats and README context.
Quick verdict

Use Miles only when an LLM or VLM post-training team is prepared to operate a distributed RL stack, not when a small proof of concept is the goal. Miles couples SGLang rollouts with Megatron-LM training, while also supporting FSDP2 and torchtitan backends. Its practical edge is the operational path: asynchronous rollout, in-loop weight updates, low-precision recipes, routing replay, and recovery of failed SGLang engines. Checked 2026-12-02: Apache-2.0, last push 2026-12-02.

Stars
★ 3.4k
Forks
⑂ 660
Contributors
👥 146
Language
Python
License
Apache-2.0
Topic
—
Updated
Dec 2026
Homepage
GitHub

Core RL Capabilities

  • ✓Fully asynchronous RL separates rollout and training workers, with configurable on-policy and off-policy schedules plus adjustable rollout and evaluation modes.
  • ✓SGLang handles generation through a router that distributes requests across engines, retains request metadata, and checks fleet health for multi-turn agentic workloads.
  • ✓Weight updates reach rollout engines inside the training loop, with P2P RDMA offered as a faster path for disaggregated deployments.
  • ✓MXFP8 and NVFP4 training are available alongside FP8, INT4 QAT, BF16, and FP16, giving teams several precision choices for distributed training.
  • ✓Token-in-token-out avoids a detokenize-and-retokenize step between rollout and training, while Rollout Routing Replay reproduces recorded MoE expert routing in the trainer.
  • ✓When an SGLang engine fails, Miles can recover it and resume the run without restarting or pausing the entire job.
How this repository's GitHub stars have grown over time. Source: star-history.com.View the star history ↗

Post-Training Workloads

  • •Frontier LLM and VLM post-training with GRPO, GSPO, PPO, or REINFORCE++ recipes.
  • •Distributed RL for mixture-of-experts models where rollout routing must remain consistent with the trainer’s forward pass.
  • •Low-rank adaptation and multi-LoRA training, including loading the resulting adapters into SGLang for rollout.
  • •Agentic coding and computer-use environments connected through Harbor, HUD, NeMo Gym, OpenEnv, and Verifiers.
  • •Diffusion model post-training with Flow-GRPO, DiffusionNFT, and SFT through the separate Miles-diffusion project.

Installation and Hardware

The README links to dedicated installation documentation, but does not include the install commands themselves. The documented hardware coverage includes NVIDIA GB300, GB200, B300, B200, H200, H100, and A100 GPUs, plus AMD MI355X, MI350X, MI325X, and MI300X accelerators. Installation references also point to per-GPU status and separate AMD ROCm images, so deployment planning should start with the linked requirements rather than assuming one environment fits both hardware families.

Launching a Training Run

A Miles project is organized around a launch script that coordinates rollout workers, training workers, routing, weight updates, and evaluation. The same launch structure can run through Ray or be installed as a Helm release for Kubernetes scheduling. Teams select a training recipe and backend, connect a rollout environment or supported model, then use the documented launch-script walkthrough to bring up the distributed run. Agent workloads add environment connectors and sandbox services, while diffusion training uses the sglang-diffusion rollout engine with an FSDP2 trainer.

Strengths

  • ✓The SGLang and Megatron-LM pairing addresses both generation throughput and scalable training instead of treating rollout as an afterthought.
  • ✓Low-precision options cover MXFP8, NVFP4, FP8, INT4 QAT, BF16, and FP16, giving post-training teams room to tune cost and numerical behavior.
  • ✓Asynchronous execution, in-loop weight updates, and engine recovery target concrete pain points in long distributed RL jobs.
  • ✓Apache-2.0 permits commercial use and modification without imposing a copyleft license.
  • ✓The project supports Megatron-LM, FSDP2, and torchtitan rather than locking every workload to one trainer path.

Scale and Platform Constraints

  • △Miles requires substantial distributed infrastructure, including coordinated SGLang rollout engines and a compatible training backend. The README documents support across specific NVIDIA and AMD GPU families, but it does not make Miles suitable for small local experiments.
  • △Asynchronous rollout, precision settings, routing behavior, weight-transfer paths, and backend configuration introduce a large operational surface. The README describes the available controls but does not claim that every configuration is equally simple.
  • △The README reports day-0 support for a named set of models and broader support for many frontier models, so model compatibility should be checked against its model documentation rather than assumed.
  • △Miles is forked from slime and the README says the two projects co-evolve. Teams should track upstream changes and verify compatibility instead of assuming a drop-in relationship.
  • △Diffusion post-training is delivered through Miles-diffusion and uses a separate rollout and training path, so it is not simply another recipe in the main Miles stack.
  • △The repository provides documentation links rather than installation commands or a self-contained quick-start script in the README, which makes the external docs part of the adoption path.

Slime and Underlying Projects

Slime — the project Miles was forked from and co-evolves with; teams already standardized on slime should assess the migration and compatibility implications before switching.Megatron-LM — a lower-level distributed training backend that teams can choose directly when they already own the rollout and orchestration layers.FSDP2 — a PyTorch-native training backend suited to teams willing to assemble more of the surrounding RL workflow themselves.torchtitan — another supported training-backend path that may fit teams already using that training stack.

Who Should Use Miles

Miles fits model labs, infrastructure teams, and research groups running large-scale LLM or VLM reinforcement learning where rollout latency, weight synchronization, precision, and fault recovery affect the job. It also suits teams training agentic systems across many environments. Choose a lighter framework or a direct backend if the experiment is small, the hardware is limited, or nobody owns distributed-cluster operations.

Frequently Asked Questions

Is Miles open source and licensed for commercial use?

Miles is open source under the Apache-2.0 license. The repository metadata identifies that licence, which allows commercial use and modification under the licence’s stated conditions.

Which large language and vision-language models does Miles support?

Miles documents day-0 support for DeepSeek-V4.1, DeepSeek-V4, Kimi-K3, Qwen3.8, GLM-5.3, GLM-5.2, MiMo-V2.6-Flash, Inkling, and Nemotron. It also names Kimi-K2.6 and Qwen3.5 among frontier models it supports.

Which GPUs and hardware platforms are supported by Miles?

Miles lists NVIDIA GB300, GB200, B300, B200, H200, H100, and A100 GPUs, along with AMD MI355X, MI350X, MI325X, and MI300X accelerators. Its installation documentation includes per-GPU status and AMD ROCm images.

Which reinforcement learning algorithms and training recipes does Miles provide?

Miles provides GRPO, GSPO, PPO, and REINFORCE++ for reinforcement learning. Its documented recipe set also includes score centering, supervised fine-tuning, and on-policy distillation.

Does Miles include support for diffusion model post-training?

Miles supports diffusion post-training through the Miles-diffusion project. That path uses an sglang-diffusion rollout engine with an FSDP2 trainer and covers Flow-GRPO, DiffusionNFT, and SFT.

Can Miles run on Ray or Kubernetes?

Miles can run on Ray or Kubernetes. The documented launch script supports Ray directly, while Kubernetes deployment uses a Helm release that lets the platform schedule the run’s workers.

The problem it solves

Large-scale RL post-training needs coordinated rollout engines, trainers, routers, weight-transfer paths, and recovery logic. Miles targets the operational gap between those pieces by combining SGLang, Megatron-LM, and related components around a common launch and training structure. That is valuable for teams that would otherwise assemble the same pipeline across several systems; it is unnecessary overhead for a lightweight local experiment.

Source & attribution

Source: GitHub repository radixark/miles (https://github.com/radixark/miles), checked on 2026-12-02.

GitHub data · last synced Dec 2, 2026Reviewed by Henry
← Back to TopGit

Curious whether miles is right for you?

Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about miles.

GitHub