Latest / Daily Paper Cast / Miles v0.1: Production-Level Post-Training
Transcript
- 0:03Evan: Welcome to Daily Paper Cast.
- 0:05Ashley: Today's paper is from the Hugging Face daily paper list of September 9, 2026, with 29 upvotes.
- 0:12Evan: The paper is titled 'Miles v0.1: Production-Level Post-Training'.
- 0:18Ashley: The first two authors are Tom Chen and Mao Cheng.
- 0:22The corresponding author is Shi Dong from RadixArk.
- 0:25Evan: Let's dive into the Introduction section.
- 0:28Ashley: Post-training turns a pretrained language model into a useful one.
- 0:32At frontier scale, post-training poses substantial challenges for training systems.
- 0:37Evan: What makes post-training at frontier scale particularly challenging?
- 0:42Ashley: For example, reinforcement learning, or RL, for large language models no longer follows a simple generate-then-update loop over short completions.
- 0:51Rollouts span multiple turns, use tools, and let the model act in an external environment.
- 0:57The models producing the rollouts are often trillion-parameter mixtures of experts.
- 1:02Evan: That sounds complex.
- 1:04What are some specific challenges these systems face?
- 1:07Ashley: Sustaining high end-to-end hardware utilization is difficult.
- 1:11The system must juggle latency-sensitive rollouts with throughput-oriented training, introducing bubbles and idle time.
- 1:18Additionally, the numerical gap between the rollout engines and the trainer can become large enough to invalidate the objective outright.
- 1:26Evan: Interesting.
- 1:27So, how does Miles aim to tackle these problems?
- 1:31Ashley: Miles v0.1 is a full-stack, production-ready system for frontier post-training.
- 1:37It builds on the clean design of slime and centers on one principle: components should be verified, clean, and customizable.
- 1:44Evan: Could you elaborate on the core design principles of Miles?
- 1:49Ashley: Of course.
- 1:50The core principles of Miles are accuracy, efficiency, reliability, and scalability.
- 1:56The system aims to make frontier-scale RL accessible to researchers and enterprises alike.
- 2:01Evan: And what are the key components of Miles v0.1?
- 2:06Ashley: Miles encompasses several key components: rollout engines built on SGLang, a trainer with a choice of two backends—NVIDIA Megatron-LM and PyTorch FSDP—and three weight-synchronization transports for different deployment topologies.
- 2:22Evan: That sounds comprehensive.
- 2:24Does Miles support other types of training beyond full-parameter RL?
- 2:29Ashley: Yes, it does.
- 2:31Beyond full-parameter RL, Miles also supports Low-Rank Adaptation or LoRA RL, on-policy distillation, supervised fine-tuning, and true-on-policy rollout-training alignment.
- 2:43It even extends the same architecture to diffusion models.
- 2:47Evan: Can you provide a specific example demonstrating Miles' capabilities?
- 2:53Ashley: Certainly.
- 2:54The paper closes with an end-to-end case study: a fully asynchronous agentic RL on a GLM-5.2 744B-A40B model over terminal-use coding tasks, running on 64 NVIDIA GB300 GPUs with a median step time of 263 seconds over the first 30 measured steps.
- 3:15Evan: That's impressive.
- 3:17It sounds like Miles v0.1 is a robust system designed to handle the complexities of frontier-scale RL.
- 3:26Ashley: Indeed.
- 3:27And that wraps up the Introduction section of today's paper.
- 3:32Evan: Let's move on to the method section and delve into how Miles v0.1 operates in detail.
- 3:38Ashley: We'll start with the core RL loop that Miles employs.
- 3:42A reinforcement learning training job in Miles cycles through three key stages: rollout, training, and weight update.
- 3:49Evan: Can you break down each of these stages for us?
- 3:53Ashley: Sure.
- 3:54First, we have the Rollout stage.
- 3:56SGLang engines generate trajectories.
- 3:59In agentic RL, where the model acts across multiple turns, each rollout session interacts with its own isolated environment, which executes actions and provides rewards.
- 4:10Evan: So, SGLang is crucial for generating these multi-turn rollouts.
- 4:15What happens after that?
- 4:16Ashley: Next, we move to the Training stage.
- 4:19Here, the trainer consumes completed trajectory groups, computes the RL loss, and updates the policy.
- 4:25Miles supports two backends for this task: NVIDIA Megatron-LM and PyTorch FSDP.
- 4:32Evan: And finally, we have the weight update stage.
- 4:35How does that work?
- 4:36Ashley: After each training step, Miles updates the RL policy by synchronizing the new weights with the rollout engines.
- 4:44The goal is to minimize interruptions to in-flight rollouts, ensuring seamless progress.
- 4:49Evan: I've heard that synchronization can be a major bottleneck.
- 4:53How does Miles handle this?
- 4:55Ashley: Good question.
- 4:56To mitigate this, Miles offers different weight-synchronization transports based on the deployment topology: NCCL broadcast, peer-to-peer RDMA, or CUDA IPC when colocated.
- 5:09Evan: That's quite a variety.
- 5:11But I've also heard about fully asynchronous RL in Miles.
- 5:15How does that work?
- 5:16Ashley: Fully asynchronous RL allows rollout generation and training to progress concurrently.
- 5:22The rollout engines generate trajectories continuously while the trainer consumes whichever trajectories are ready to keep both stages busy simultaneously.
- 5:31Evan: So, they don’t wait for each other.
- 5:33That sounds efficient.
- 5:35What about throughput and fidelity during rollout generation?
- 5:38Ashley: Indeed, throughput and fidelity are crucial.
- 5:41Miles uses SGLang for request routing to preserve cache locality and decouple generation from training.
- 5:48This ensures that the trainer's view of trajectories remains consistent with what the policy actually sampled.
- 5:54Evan: Consistency must be tricky, right?
- 5:57How does Miles ensure token fidelity in multi-turn scenarios?
- 6:01Ashley: Miles employs a Token-In-Token-Out, or TITO, session server to maintain the exact tokens sampled by the policy.
- 6:09The server controls tokenization, preserving rollout log-probabilities, and ensures that training sequences match the generated tokens exactly.
- 6:17Evan: Can you explain how Miles maintains the balance between different components during training?
- 6:23Ashley: Miles keeps the rollout engines busy by replenishing rollout generation capacity as trajectories finish.
- 6:30A background worker maintains a consistent number of trajectories in generation to minimize trainer wait time.
- 6:36The data buffer also decouples generation and training, allowing each to operate at its own pace.
- 6:42Evan: That sounds well-coordinated.
- 6:44What about handling longer rollout contexts?
- 6:48Ashley: To accommodate longer contexts, Miles uses session-aware routing to maintain affinity for multi-turn episodes, ensuring that data-parallel ranks leverage cached prefix tokens efficiently.
- 6:59Additionally, there’s a fallback in the form of session server to track session identity and supply routing keys.
- 7:05Evan: With all these components, how does Miles manage asynchronous evaluation?
- 7:11Ashley: Asynchronous evaluation runs alongside training.
- 7:14Miles offers three evaluation modes: shared engines, a dedicated GPU fleet, or an external service.
- 7:21In shared mode, rollout engines pause new generation while evaluating, while the other modes keep evaluation off the critical training path, using snapshots to run evaluations without hindering training.
- 7:33Evan: How does it ensure that the evaluations are accurate and reflective of the policy versions?
- 7:40Ashley: Each evaluation score is tied to the specific policy version that produced it.
- 7:45During evaluation, weights are verified, ensuring consistency across the fleet.
- 7:49Even when an evaluation fails, training continues, with reasons logged appropriately.
- 7:55Evan: What types of environments can Miles handle for agentic RL?
- 7:59Ashley: Miles is versatile in accommodating various environments by organizing integration as three nested plug-in layers.
- 8:06It supports environments that provide different scopes of control, ranging from simple episode loops to complex batching and rewards management.
- 8:14Evan: That’s comprehensive.
- 8:16What else does the method section cover?
- 8:19Ashley: It touches on RL router handling for mixture-of-experts models, ensuring expert routing fidelity with R3, termed as Efficient Rollout Routing Replay.
- 8:29For mixture-of-experts models, the router holds routing tensors to replay expert assignments, which is vital for maintaining training stability.
- 8:37Evan: You mentioned memory efficiency earlier.
- 8:40Can you elaborate on that?
- 8:42Ashley: Certainly.
- 8:43Miles employs memory-efficient techniques like evicting paused actors and streaming optimizer state to reduce GPU memory consumption.
- 8:51Offloading optimizer states to CPU or NVMe further ensures that the training actor fits within the memory limits during active computation stages.
- 9:01Evan: What about low-precision training?
- 9:03Does Miles support that?
- 9:05Ashley: Yes, lower-precision formats like FP8 and NVFP4 are supported, improving computational efficiency.
- 9:13Miles ensures that both rollout and training stages use the same quantization logic to avoid discrepancies.
- 9:20Evan: Fascinating.
- 9:21This method section is indeed thorough in covering the operational aspects of Miles v0.1.
- 9:28Ashley: Indeed.
- 9:29And that brings us to the end of the Method section.
- 9:34Evan: Moving on, let's discuss the experiments and results presented in the Miles v0.1 paper.
- 9:40Ashley: Sure.
- 9:41The paper presents a case study where Miles v0.1 was used for fully asynchronous agentic RL on the GLM-5.2 744B-A40B model over terminal-use coding tasks.
- 9:54This was run on 64 NVIDIA GB300 GPUs.
- 9:58Evan: 64 GPUs?
- 10:00That's impressive.
- 10:02What did the experimental setup look like?
- 10:04Ashley: The setup divided 64 GPUs evenly between generation and training, with 32 GPUs for each.
- 10:11Rollout engines generated trajectories using SGLang, while the trainer updated the RL policy using the NVIDIA Megatron-LM framework.
- 10:20Evan: How long was each trajectory in this setup?
- 10:24Ashley: Each trajectory was a multi-turn interaction comprising up to 30 turns or one hour of wall-clock time.
- 10:31The maximum sequence length per session was 65,536 tokens, budgeting for the agent’s entire multi-turn session.
- 10:40Evan: And the evaluation?
- 10:41How did that integrate into the experiment?
- 10:44Ashley: The run paused generation to evaluate on a disjoint held-out set of tasks every ten steps.
- 10:50Evaluation used the same set of GPUs, pausing new generations while assessing current performance.
- 10:57Evan: Got it.
- 10:58So what were the key results from this experiment?
- 11:02Ashley: Several key metrics were tracked.
- 11:04First, the median step time for training was recorded at 263 seconds over the first 30 measured steps, excluding a warm-up period.
- 11:13Evan: 263 seconds per step is quite efficient given the scale.
- 11:19What about the divergence between rollout and trainer log-probabilities?
- 11:23Ashley: The average divergence between the rollout engine's and trainer’s log-probabilities for sampled tokens was measured to be 0.0369 over the 30 steps.
- 11:33This indicates close alignment, thanks to the measures implemented for token fidelity and routing replay.
- 11:40Evan: How did the model performance evolve over the training steps?
- 11:43Ashley: Model performance, indicated by the raw task reward, improved throughout the 100-step experiment.
- 11:50The nine-step moving average of raw task reward increased from 0.438 to 0.556.
- 11:57Evan: We usually see improvements in rewards, but how significant are these results?
- 12:03Ashley: While the rise in the average raw task reward suggests improved performance, it's important to note that a single run on a specific task distribution cannot conclusively determine overall effectiveness.
- 12:15Variability between runs can influence these numbers.
- 12:19Evan: Understood.
- 12:20Were there any other significant observations or metrics reported?
- 12:24Ashley: Yes, another crucial metric was the overlap between generation and training.
- 12:29Throughout the experiment, the number of active requests generating trajectories remained close to the limit of 128, thanks to efficiently managing the rollout capacity and cache locality.
- 12:41Evan: It seems like the architecture was quite effective in maintaining high hardware utilization.
- 12:46Did they mention any limitations or areas for future improvement?
- 12:51Ashley: While the paper doesn't delve deeply into limitations in this section, it acknowledges that ongoing work involves tuning the setup for even better performance and consistency.
- 13:00Real-world applications may reveal further areas for enhancement.
- 13:05Evan: That's often the case with large-scale ML systems.
- 13:08It sounds like Miles v0.1 made significant strides in efficient and scalable post-training.
- 13:14Ashley: Indeed.
- 13:15And that brings us to the end of the Experiment section.
- 13:20Evan: Next, let's delve into the Related Work section of the Miles v0.1 paper.
- 13:26Ashley: The Related Work section places Miles v0.1 in the context of existing research and systems that address similar challenges in reinforcement learning and post-training for large language models.
- 13:38Evan: Which systems or frameworks does the paper specifically compare Miles to?
- 13:44Ashley: The paper builds on the clean design principles of an earlier system called Slime, which was a framework aimed at scaling RL for large language models.
- 13:53Slime focused on the modularity and verification of components, a philosophy that Miles adheres to and extends.
- 14:01Evan: So, Slime provided a foundation.
- 14:03What about other prominent systems in this space?
- 14:06Ashley: Exactly.
- 14:07Another comparison is with SGLang, which efficiently executes structured language model programs.
- 14:14SGLang is central to Miles' rollout engines, ensuring high throughput and fidelity for multi-turn rollouts.
- 14:21Evan: SGLang seems quite integral.
- 14:23What about training frameworks?
- 14:24Any comparisons there?
- 14:26Ashley: Yes, definitely.
- 14:28Miles employs NVIDIA Megatron-LM and PyTorch FSDP as its training backends.
- 14:34Megatron-LM is notable for its extensive parallelism options, which are key for scaling models across many GPUs.
- 14:41PyTorch FSDP, on the other hand, offers simplicity and direct Hugging Face model loading.
- 14:47Evan: Both Megatron-LM and PyTorch FSDP are well-regarded in the community.
- 14:54How does Miles differentiate itself further in the context of RL?
- 14:58Ashley: Miles extends beyond typical RL loops by incorporating elements like Low-Rank Adaptation (LoRA), on-policy distillation, and true-on-policy alignment.
- 15:08These elements are compared to similar adaptations in other frameworks, which often don't provide the same level of integration and flexibility.
- 15:16Evan: Interesting.
- 15:17Does the paper mention any particular advantages over existing systems?
- 15:22Ashley: Yes, it does.
- 15:23One standout aspect is the ability to handle fully asynchronous training and evaluation, which isn't as robustly supported by other frameworks.
- 15:32This capability allows for efficient, scalable RL training that minimizes idle times and better utilizes hardware resources.
- 15:40Evan: So, asynchronous training is a big deal here.
- 15:44How does Miles ensure compatibility and maintain support for new models and hardware?
- 15:49Ashley: Miles emphasizes verified coverage and the principle of easy extensibility.
- 15:54It incorporates small, typed interfaces at key points, ensuring that user-specific logic and new models can be integrated without overhauling the core system.
- 16:03This modularity is a significant advantage.
- 16:06Evan: That extensibility sounds practical.
- 16:09How does Miles handle the intricacies of multi-vendor GPU support?
- 16:13Ashley: Good point.
- 16:14Miles runs natively on both NVIDIA and AMD hardware, sidestepping the need for translation layers, and ensures that precision formats and model scalability are compatible across these platforms.
- 16:26Evan: It seems comprehensive.
- 16:28What about the numerical fidelity and efficient weight updates you mentioned earlier?
- 16:33Ashley: Miles' approach to numerical fidelity includes robust tokenization and tight integration between rollout and training stages to prevent discrepancies.
- 16:42As for weight updates, it offers flexible transport mechanisms such as NCCL broadcast, RDMA, and delta updates to cater to various deployment scenarios.
- 16:52Evan: So, it really covers a lot of ground in terms of ensuring accuracy and efficiency.
- 16:58Are there any key references or predecessors mentioned in the paper that influenced its design?
- 17:03Ashley: Definitely.
- 17:04The paper cites several foundational works, including the original Megatron-LM paper for model parallelism, NVIDIA's PyTorch FSDP for sharded data parallelism, and the introduction of Low-Rank Adaptations for fine-tuning large models efficiently.
- 17:20Each of these has inspired and informed the design of Miles in meaningful ways.
- 17:25Evan: It's clear how these references contributed to shaping Miles.
- 17:29Anything else noteworthy about the related work?
- 17:31Ashley: The Related Work section also emphasizes the novelty of combining multiple advanced techniques into a single, cohesive system, which is something that stands out in Miles.
- 17:41It brings together the best practices and methodologies into a unified framework that addresses the challenges of frontier-scale post-training comprehensively.
- 17:49Evan: That's a significant achievement.
- 17:52It seems like Miles has synthesized a wide array of best practices into its design.
- 17:57Ashley: Indeed.
- 17:58And that brings us to the end of the Related Work section.
- 18:03Evan: Now, let's summarize the key contributions and takeaways from the Miles v0.1 paper.
- 18:10Ashley: First, Miles v0.1 introduces a full-stack, production-ready system for frontier post-training of large language models.
- 18:18It capitalizes on the foundation established by prior frameworks like Slime, emphasizing components that are verified, clean, and customizable.
- 18:27Evan: Miles supports various RL stages with different deployment topologies by utilizing rollout engines built on SGLang and offering a choice between NVIDIA Megatron-LM and PyTorch FSDP as training backends.
- 18:42Ashley: Moreover, Miles addresses key challenges in maintaining high hardware utilization and reducing numerical discrepancies between rollout and training stages through token fidelity and specialized routing mechanisms like the Token-In-Token-Out session server and Efficient Rollout Routing Replay.
- 18:59Evan: The system also extends beyond core RL to support Low-Rank Adaptation, on-policy distillation, supervised fine-tuning, and true-on-policy alignment, as well as diffusion models.
- 19:12This flexibility makes Miles capable of handling a variety of post-training goals effectively.
- 19:18Ashley: Experimentally, Miles demonstrated its capabilities in a large-scale case study involving asynchronous agentic RL on a GLM-5.2 model with significant computational resources.
- 19:31This setup showcased its efficiency and robustness.
- 19:34Evan: Through cross-references with related works, Miles is positioned as a comprehensive solution that integrates multiple advanced techniques, offering substantial improvements in scalability, efficiency, and flexibility for reinforcement learning at frontier scales.
- 19:50Ashley: Indeed, Miles represents a significant step forward in post-training methodologies for large language models, promising to make frontier-scale RL more accessible and effective for both researchers and enterprises.
- 20:04Evan: That's it for today's episode of Daily Paper Cast.
- 20:07We hope you found our discussion as insightful as we did.
- 20:10Ashley: Be sure to join us again for future episodes, where we'll continue to bring you the latest and most exciting developments in AI, NLP, and computer vision research.
- 20:20Evan: Thanks for listening and see you next time!