SkillsReviewed · Orchestra-Research

miles RL Training Skill

The miles RL Training Skill gives AI assistants guidance for developers training large language models with reinforcement learning, but its advanced configuration advice needs verification against the miles implementation. It covers mixture-of-experts models, low-precision training, routing replay and speculative generation through an instruction file and two reference guides.

Researched 16 Nov 2026

In short.

The miles RL Training Skill is an assistant instruction pack for developers planning large-model reinforcement-learning training, but several configuration and performance claims lack implementation evidence. Its three files explain low-precision training, MoE routing replay, speculative generation and common failures. The practical value is a focused map of concepts and example settings; the main limitations are conflicting configuration guidance, missing benchmark conditions and no established compatibility with a specific miles release. No commands or training jobs were executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete supplied 06-post-training/miles folder: SKILL.md, references/api-reference.md and references/troubleshooting.md, together with the repository-root LICENSE, at revision 773a52944ba4747a18bd4ae9ade53fff041adcbc. The separate miles implementation, Docker image, sibling slime documentation, linked blogs, dependencies, model checkpoints and datasets are outside this material. Nothing was executed; installation, flag compatibility, model support, numerical alignment, memory use and performance remain unassessed.

The overview

Identity

This resource is the miles skill folder in Orchestra-Research/AI-Research-SKILLs: [https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/main/06-post-training/miles]. Its entry file declares the name miles-rl-training, version 1.0.0 and author Orchestra Research. The folder contains SKILL.md, references/api-reference.md and references/troubleshooting.md.

It supplies instructions and reference material for an AI assistant. The separately installed miles framework is described as a fork of slime and is linked at [https://github.com/radixark/miles]. The skill version does not identify a miles framework release.

Assessment

The skill offers useful orientation for teams already familiar with distributed model training. It connects installation examples, parallelism settings, numerical alignment and troubleshooting in one compact resource.

Its reliability as an executable recipe is uncertain. The API reference says some advanced feature flags are not publicly documented, while the troubleshooting guide supplies concrete flags for those features. Descriptions such as enterprise-ready and production stability are not accompanied by operational evidence or support commitments.

Users

The intended users are developers and ML infrastructure teams working on reinforcement-learning post-training, especially large mixture-of-experts models. The guidance focuses on GPU memory, training stability, response-generation throughput and agreement between generation and training.

Beginners can use it to identify the components involved, but the examples assume knowledge of checkpoints, distributed training, precision formats and reward-driven optimization. It does not supply a complete introductory project with prepared data and an established hardware budget.

Capabilities

The skill covers FP8 training and inference, INT4 quantization-aware training, Rollout Routing Replay, EAGLE speculative decoding and online supervised updates to a draft model. It also describes partial rollouts, CUDA IPC weight synchronization and importance-sampling corrections.

Its examples expose Megatron tensor, pipeline and expert parallelism alongside SGLang-prefixed settings. The API reference includes custom generation and reward-function paths. Model-support tables list DeepSeek, Qwen, Llama, Gemma, GLM and MiniMax families, but compatibility for individual checkpoints is not demonstrated.

Using it

Requirements

The entry metadata lists sglang-router>=0.2.3, ray, torch>=2.0.0 and transformers>=4.40.0. These declarations do not provide a complete compatibility matrix for drivers, CUDA, kernels or the miles framework.

The large-MoE workflow names H100/H200 GPUs with FP8 support. Examples configure eight actor GPUs and eight rollout GPUs, with colocation available elsewhere; these settings do not establish a universal minimum or a fixed total GPU count. Local checkpoints and JSONL prompt data appear in the examples.

Online draft-model training requires a torch distributed checkpoint containing multi-token prediction weights. The documentation says to include --mtp-num-layers 1 during conversion from Hugging Face format, but does not provide the complete conversion procedure.

Mechanism

In the described workflow, SGLang generates model responses used for reinforcement learning, while Megatron performs training updates. Rollout Routing Replay records which MoE experts were chosen during generation in sample.rollout_routed_experts and reuses those choices during training.

For speculative generation, a smaller draft model proposes tokens and the target model verifies them. Online supervised updates are intended to keep the draft aligned as the target policy changes. The text also presents truncated or masked importance sampling as corrections for off-policy training.

Routing agreement is narrower than equality of every numerical computation. Recording expert choices alone does not demonstrate bitwise agreement across the whole generation and training pipeline.

Setup

The files provide no assistant-specific installation or registration command. SKILL.md and its references need to remain available together; how an assistant loads them depends on the host and is unspecified.

For the miles framework, the documented options are the radixark/miles:latest Docker image or a source checkout followed by installing requirements.txt and the repository in editable mode. The container example requests GPU access, host IPC and a 16g shared-memory setting.

The Docker tag is mutable, and the source installation instructions do not pin a miles commit. Installation success and compatibility with these instructions are not assessed.

Example

The basic example invokes python train.py with --advantage-estimator grpo, --model-name qwen3-30b-a3b, a local --hf-checkpoint, --rollout-batch-size 512 and --n-samples-per-prompt 8. These are supplied example values, not measured recommendations.

The speculative example adds EAGLE, three speculative steps, top-k 1, four draft tokens and a draft-model checkpoint path. Neither example includes a completed training result, and the basic command leaves data preparation, reward configuration and hardware placement unresolved.

Assessment & evidence

Limitations

The documentation claims 25–40% faster rollouts, an additional 10–15% throughput from partial rollouts and exactly zero KL divergence between training and inference. It supplies no benchmark configuration, measurement procedure or result records establishing those claims.

The INT4 memory table does not specify whether optimizer states, gradients, activations and runtime buffers are included. It therefore cannot establish total training memory. Its 671B example lists 420 GB for INT4; the phrase single-machine does not establish single-GPU feasibility.

Configuration guidance is inconsistent: the API reference treats advanced feature flags as undocumented, while troubleshooting supplies --use-r3, INT4 controls and alternative speculative-training controls. Their availability and interaction in any particular miles release remain unknown.

Reasoning

The skill's technical rationale connects three concerns: numerical differences under low precision, different MoE expert choices during generation and training, and draft-model drift as a policy learns. It proposes aligned precision paths, routing replay and online draft updates respectively.

This makes the resource useful for understanding why these components might be combined. It does not establish that every component is necessary, compatible or beneficial for a particular workload; those decisions require implementation details and workload-specific measurements absent from the files.

Alternatives

The entry file suggests slime for the original research-oriented framework, verl for backend flexibility and torchforge for PyTorch-native abstractions. Those are the skill author's positioning statements; no comparative implementation assessment or benchmarks are supplied.

The linked upstream slime repository is [https://github.com/THUDM/slime]. The miles API reference also depends on a sibling slime reference outside this folder, so the miles skill is not self-contained for all inherited arguments.

Evidence

The available material consists of the skill entry file, API reference, troubleshooting guide and root MIT notice from one repository snapshot. The original entry file is available at [https://raw.githubusercontent.com/Orchestra-Research/AI-Research-SKILLs/773a52944ba4747a18bd4ae9ade53fff041adcbc/06-post-training/miles/SKILL.md].

The two references expand the instructions but are not independent confirmation of framework behavior. The miles implementation, complete inherited slime reference, benchmark records and execution logs are absent. No installation, training, numerical-alignment or throughput result was established.

Access & freshness

Costs

Total cost is unknown. The material supplies no GPU-hour estimates, rental rates, training budget or enterprise-support prices.

The examples imply substantial GPU infrastructure, but do not establish the resources needed for a particular model, dataset or training duration. Claimed throughput improvements lack enough measurement detail to support a cost-saving estimate.

Rights

The repository-root MIT License permits use, modification, redistribution and sale of the skill documentation, subject to retaining the copyright and permission notice in copies or substantial portions. It includes a warranty disclaimer and names Claude AI Research Skills Contributors as the 2025 copyright holder.

These permissions concern the skill repository. The supplied notice does not establish license terms for the separate miles framework, Docker image contents, dependencies, model weights or training datasets.

Freshness

The supplied snapshot was captured on 16 November 2026 at AI-Research-SKILLs revision 773a52944ba4747a18bd4ae9ade53fff041adcbc. The entry metadata declares skill version 1.0.0.

No miles release, framework commit or container digest is tied to that skill version. Current argument compatibility, dependency compatibility and model support remain unknown; the latest container tag cannot reproduce a fixed historical environment by itself.

Actions

Use the skill as an orientation guide, then compare its settings with argument definitions for a chosen miles revision at [https://github.com/radixark/miles]. Resolve the conflicting R3, precision and speculative-training flags before treating the examples as executable instructions.

For a future trial, check model loading, finite loss values, recorded expert routing and agreement of generation and training log probabilities. Measure throughput and memory with a stated model, hardware configuration and baseline before relying on the advertised improvements. These are proposed validation steps; none was performed.

Evidence for this report

06-post-training/miles/SKILL.mdselected · checked 2026-11-16
LICENSEnotice · checked 2026-11-16