Papers
Topics
Authors
Recent
Search
2000 character limit reached

Miles v0.1: Production-Level Post-Training

Published 8 Sep 2026 in cs.LG and cs.CL | (2609.08368v1)

Abstract: We present Miles v0.1, a full-stack, production-ready system for frontier post-training. Building upon the clean design of slime, Miles designs each stage of the reinforcement-learning (RL) training loop around a single principle: components should be verified, clean, and customizable. With accuracy, efficiency, reliability, and scalability as first-class goals, Miles aims to make frontier-scale RL accessible to researchers and enterprises alike. This report walks through the system end to end: 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. Beyond full-parameter RL, Miles also supports LoRA RL, on-policy distillation, supervised fine-tuning, and true-on-policy rollout-training alignment, and extends the same architecture to diffusion models. We close with an end-to-end case study: 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. Miles is open-sourced at https://github.com/radixark/miles, with the project website at https://miles.radixark.com.

Summary

  • The paper outlines Miles v0.1, a full-stack post-training system that enhances numerical fidelity in rollout, training, and evaluation of front-tier scale RL.
  • This innovation introduces asynchrony between separate GPU pools for rollout and training, achieving a 56% reduction in rollout time and up to a 86.4% reduction in weight-update time..
  • The system also emphasizes preserving exact token IDs across rollout and training to maintain consistency, situating the system at the forefront of large model optimization in RL.

System objective and design

Miles v0.1 presents a full-stack post-training system designed for frontier-scale language-model RL, with emphasis on numerical fidelity, throughput, deployment flexibility, and explicit verification boundaries. Its central architectural decision is to treat rollout, training, and weight synchronization as separable but coordinated subsystems. This permits the same infrastructure to support synchronous and asynchronous RL, full-parameter and LoRA optimization, on-policy distillation, supervised fine-tuning, and diffusion-model post-training. The system is implemented around SGLang rollout engines, Megatron-LM or PyTorch FSDP training backends, and multiple weight-transfer mechanisms (2609.08368).

The paperโ€™s motivating problem is that contemporary agentic RL differs materially from a short-completion generateโ€“update loop. Trajectories can contain many turns, tool calls, long contexts, external environments, and MoE routing decisions. Rollout and training have opposing systems requirements: rollout prioritizes latency and KV-cache reuse, whereas training prioritizes throughput and collective communication. More importantly, a trajectory can be numerically or token-wise different when reconstructed by the trainer from the messages supplied by an agent harness. Miles therefore treats fidelity as a first-class systems invariant rather than as an incidental property of the data pipeline.

The basic loop contains three stages: SGLang generates trajectory groups, the trainer computes an objective and updates the policy, and the updated weights are synchronized back to the rollout fleet.

Figure 1

Figure 1: The Miles RL loop connecting rollout generation, policy training, and weight synchronization.

A trajectory group contains multiple attempts at the same prompt, which is necessary for group-relative objectives such as GRPO (Shao et al., 2024). The system deliberately operates at group granularity when grouping, buffering, filtering, and discarding data. This avoids breaking the statistical unit required by group-relative advantage estimation.

Asynchronous rollout and execution scheduling

Miles supports fully asynchronous RL in which rollout generation and training occupy disjoint GPU pools and progress concurrently. The rollout engines continuously produce trajectories while the trainer consumes completed groups from a bounded buffer. This avoids the synchronization barrier imposed by synchronous batches, where the trainer waits for the slowest trajectory and the rollout fleet subsequently waits for the optimizer.

The bounded buffer is not merely a queue. It is the control point for admission, retry, filtering, and staleness management. A group may be rejected because generation aborted, because a user-defined filter found no usable advantage signal, or because the group was generated under weights older than the configured staleness limit. Staleness is conservatively defined using the oldest weight version represented anywhere in the group. This is especially important for multi-turn episodes, whose individual turns may be generated under different policy versions.

Miles exposes queue occupancy, mean and maximum staleness, and discarded-group counts on every training step. These metrics distinguish rollout starvation from trainer saturation. A permanently empty queue indicates inadequate generation capacity; a full queue accompanied by increasing staleness indicates that training is the bottleneck. This observability is a substantive contribution because asynchronous RL can degrade silently through wasted rollouts and stale data without producing an execution failure.

Generation capacity is replenished either at group granularity or sample granularity. The default sample-granularity policy immediately replaces completed trajectories, maintaining approximately constant concurrency even when trajectory lengths vary by an order of magnitude. The tradeoff is that a trajectory waiting on a tool call continues to occupy a slot, so the configured in-flight limit is not identical to the number of actively decoding requests.

Evaluation is also treated as a scheduling problem. Miles provides shared-engine, dedicated-fleet, and external evaluation modes. Shared-engine evaluation pauses new generation, whereas snapshot-based evaluation can run concurrently with training after snapshot export. Crucially, evaluation results are associated with the policy version actually evaluated, not simply the step at which the result arrives.

Figure 2

Figure 2: Shared-engine and snapshot-based evaluation modes on the asynchronous training timeline.

Token fidelity and MoE routing consistency

The paperโ€™s strongest technical claim is that multi-turn agentic RL requires preserving the exact token IDs sampled by the rollout engine. Reconstructing a trajectory from messages can alter chat-template rendering, tool-call serialization, reasoning fields, or historical context. Such changes produce a training sequence that the policy did not generate, invalidating the correspondence between rollout and trainer log-probabilities.

Miles addresses this with token-in-token-out (TITO) sessions. The session server owns tokenization, stores prompt and completion token IDs, records rollout log-probabilities, and checkpoints the resulting history after every successful turn. Subsequent turns reuse the deepest valid token checkpoint and tokenize only the appended suffix.

Figure 3

Figure 3: Token-in-token-out sessions preserve the exact token IDs emitted by the rollout engine for later training.

The approach supports both linear and branching sessions. Linear sessions permit only tail extension or a limited retry, producing one training sequence. Branching sessions retain an append-only history tree and allow multiple trajectories to emerge from a common prefix. This supports agent harnesses that fork, compact, or otherwise reshape their context.

The paper is explicit about the risks of relaxed replay matching. A permissive matcher that ignores tool calls can merge histories whose visible text is identical but whose actions differ. Because Miles treats the stored token snapshot as authoritative after a match, this can silently train on a tool history that never occurred. Strict comparison of template-consumed fields is therefore the safe default.

TITO is guarded by model-family registrations and append-only tokenization tests. The CPU test is insufficient by itself, since parser behavior during live inference can violate an invariant that holds under isolated template rendering. A GPU test with the real model, stop-token handling, and tool-call parser is also required. Vision-language inputs remain unsupported by the session server, so multimodal models must use a lower-level token interface.

Exact tokens do not fully solve the MoE consistency problem. Rollout and training can still select different experts because of numerical differences, kernel differences, or precision differences. Rollout Routing Replay (R3) records the expert assignments for each token and replays them during training, preventing the trainer from routing a sampled token through a different expert path (Ma et al., 13 Oct 2025). This is particularly relevant because routing discrepancies can assign gradient updates to experts that did not contribute to the sampled action.

R3 carries a nontrivial memory cost. For a 32K-token sequence with 60 layers and top-8 routing, the recorded routing tensor occupies approximately 60 MB per trajectory. The paper consequently treats R3 as a recipe-level choice rather than a universal default. The GLM-5.2 case study does not enable it, and the authors note that asynchronous weight staleness introduces additional mismatch sources that R3 cannot remove.

Training precision, memory, and backend abstraction

Miles frames numerical precision as a contract shared by rollout and training. Quantizing only one side, or applying distinct quantization procedures, can generate substantial trainโ€“rollout mismatch. The system therefore implements common quantization logic across checkpoint conversion, trainer forward passes, rollout inference, and live weight export.

The supported end-to-end recipes include BF16, blockwise FP8, MXFP8, and NVFP4. FP8 blockwise execution is available on NVIDIA Hopper and Blackwell and selected AMD hardware; MXFP8 and NVFP4 require Blackwell. MXFP8 and NVFP4 remain beta technologies and have only been tested on specified model families. The paper does not claim architecture-independent validity.

Miles also provides dequantized backward execution for NVFP4 and the Four Over Six adaptive block-scaling method (Cook et al., 1 Dec 2025). These mechanisms have different scopes: dequantized backward changes only the training backward pass, while Four Over Six changes quantized values and therefore must be identically enabled in both trainer and rollout kernels.

Memory management combines actor offloading with optimizer-state streaming. Actor offloading moves the paused training process out of GPU memory, potentially to host RAM or node-local disk. Optimizer streaming keeps optimizer state on disk and loads only the buckets needed for each update. On Qwen3-30B-A3B, the latter reduces actor offloading from 24 seconds to 5.2 seconds and reloading from 8.9 seconds to 1.3 seconds. The performance benefit is accompanied by operational restrictions: streamed checkpoints require the same parallel layout on resume, cannot resume from checkpoints written without streaming, and may block during checkpoint saves.

Megatron-LM and FSDP expose a common trainer interface but target different operating regimes. Megatron supports tensor, pipeline, context, expert, and expert-tensor parallelism, making it the principal backend for large MoE models. FSDP loads Hugging Face checkpoints directly and is more convenient for new architectures and data-parallel-scale experiments. Current LoRA support is limited to Megatron, and disk-based offloading beyond host memory is unavailable in the FSDP path.

Objectives and mismatch correction

Miles separates advantage estimation from loss implementation. The available estimators include GRPO, GSPO, REINFORCE++, and PPO with a learned value function. A typed loss interface also allows supervised objectives and user-defined losses to reuse the training stack.

Because rollout and training generally disagree on token probabilities, Miles computes an importance ratio from their log-probability difference. Two correction schemes are provided. Truncated importance sampling clamps the ratio and retains the token with a bounded weight. Clip-or-pop discards tokens whose ratio lies outside the permitted interval. The default interval is [0,2][0,2]. The system reports the unclipped ratio, clipped-token fraction, and mean absolute deviation from one, enabling users to diagnose whether correction is compensating for a benign numerical discrepancy or substantial policy mismatch.

True-on-policy alignment targets the stricter case in which rollout and training assign exactly the same probability to every sampled token. It uses common attention and matrix-multiplication kernels, deterministic execution, batch-invariant operations, matching rotary and activation implementations, and a rollout-side prefill rescore. For supported Qwen3 dense configurations, the reported absolute log-probability difference is exactly zero.

This guarantee is deliberately narrow. It covers sampled-token log-probabilities, not equality of the entire output distribution, and it does not address trajectories generated under older weights. It is currently registered only for selected Qwen3 0.6B and 4B configurations. The throughput cost of deterministic and batch-invariant execution is also acknowledged.

Weight synchronization across deployment topologies

Weight transfer can dominate frontier-scale RL. The paper reports that a full NCCL update for Kimi K2 1T-A32B takes nearly a minute, motivating three transports: NCCL broadcast, RDMA-based peer-to-peer transfer, and disk-delta updates.

P2P transfer assigns training ranks to rollout ranks and writes serving-ready shards directly into rollout memory. The approach uses a CPU-resident SGLang replica to reuse serving-side reshaping and sharding logic, avoiding a second implementation of model partitioning. On H100 systems with a 1 GB bucket, P2P reduces update time from 58.30 to 8.48 seconds for GLM-5 744B-A40B and from 53.28 to 7.23 seconds for Kimi K2 1T-A32B.

Model Broadcast P2P Reduction
Qwen3-30B-A3B 2.67 s 2.16 s 19.1%
GLM-5 744B-A40B 58.30 s 8.48 s 85.5%
Kimi K2 1T-A32B 53.28 s 7.23 s 86.4%

The result is strongly topology-dependent. P2P can be up to approximately 70% slower than broadcast on a single node because it lacks additional aggregate bandwidth and incurs host-side reshaping and pinned-memory staging. The paper therefore retains broadcast as the default and restricts P2Pโ€™s practical recommendation to multi-node deployments with suitable model mappings.

Disk-delta updates avoid direct trainer-to-engine connectivity. Rollout hosts share a base checkpoint, receive compressed byte-level deltas through a shared filesystem, validate checksums, and reload the patched checkpoint. XOR deltas are compact but non-idempotent; overwrite deltas are larger but safe to apply repeatedly. The method is restricted to Megatron and is incompatible with colocation, LoRA, and prefillโ€“decode disaggregation in the current implementation.

Miles also supports initial weight-verification checks that intentionally fill rollout tensors with random values before synchronization. A missing tensor update therefore cannot pass unnoticed. This is an effective validation design, although the check is intended for debugging and continuous integration rather than routine production execution.

Additional post-training recipes

LoRA RL makes the adapter rather than the full model the synchronization and optimization unit. This reduces optimizer-state memory, training arithmetic, and weight-transfer volume. In colocated deployments, adapters can be transferred through interprocess communication; in disaggregated deployments, serving-ready adapter tensors are broadcast over NCCL. Support depends on coordinated implementation in Megatron, Milesโ€™s export path, and SGLang, so model-name similarity alone does not establish compatibility.

On-policy distillation uses student-generated trajectories while a teacher scores the same sampled tokens. The difference between student and teacher log-probabilities becomes a per-token reverse-KL estimate and is incorporated into the advantage.

Figure 4

Figure 4: On-policy distillation uses teacher scores on student-generated tokens, optionally combined with task reward.

In the reported Qwen3.5-35B-A3B experiment, response length fell from 14,070 to 6,132 tokens over five steps, a 56% reduction, while accuracy changed from 84.0% to 85.2%. The paper correctly qualifies the latter result: the 1.2-point change lies within an evaluation standard error of approximately 1.6 points. The defensible conclusion is reduced response length without a reliable accuracy change, not benchmark improvement.

Miles-Diffusion generalizes the architecture to image and video diffusion RL. Trajectories contain denoising states and per-step log-probabilities, while an FSDP2 trainer re-scores selected steps. Streaming raw tensor bytes and overlapping deserialization, reward computation, and generation reduces LTX-2.3 rollout time from 157.4 to 87.6 seconds per step and total step time from 321.9 to 252.1 seconds. The system provides deterministic execution and per-parameter dtype controls because diffusion importance ratios are especially sensitive to small trainโ€“inference discrepancies.

GLM-5.2 case study

The end-to-end reference run trains GLM-5.2 744B-A40B on terminal-use coding tasks using 64 NVIDIA GB300 GPUs. Thirty-two GPUs perform rollout and 32 perform training. The trainer uses TP 2, PP 4, CP 4, and EP 8; rollout uses eight engines with DP attention. Training remains in BF16, whereas rollout uses FP8 weights and KV cache. Optimizer state is streamed to local disk because each rank holds approximately 279 GB after parallel partitioning.

The agent operates for up to 30 turns or one hour, with a maximum 65,536-token session and eight attempts per task. The training batch contains 64 trajectories, while as many as 128 trajectories are in flight. Fully asynchronous scheduling maintains approximately 90โ€“100 concurrent requests, and affinity routing yields a 96% prefix-cache hit rate.

Figure 5

Figure 5: The GLM-5.2 reference run reports step time, rolloutโ€“trainer log-probability divergence, and raw task reward.

The runโ€™s median step time over the first 30 measured steps is 263 seconds, excluding a 1,042-second warm-up step. The mean sampled-token log-probability divergence is 0.0369 over 100 steps and remains near its initial value. The nine-step moving average of raw task reward rises from 0.438 to 0.556. These measurements demonstrate that the specified configuration can execute a 744B-parameter agentic RL workload on a 64-GPU cluster, but they do not establish a general performance or learning advantage. The reward trend comes from one 100-step run on one task distribution, so the paper appropriately reports it as an observation rather than a statistically isolated improvement.

Limitations and open questions

The paperโ€™s evidence is primarily systems evidence rather than a controlled algorithmic comparison. The central case study uses one model, one task distribution, one cluster configuration, and one short 100-step run. Consequently, the reported reward increase cannot be separated from run-to-run variation, and the interaction between asynchronous staleness, truncation, and agentic reward remains unquantified.

Coverage is also uneven. MXFP8 and NVFP4 are beta recipes tested on limited model families. P2P weight transfer requires supported Megatronโ€“SGLang mappings. FSDP lacks several capabilities available in Megatron, including LoRA and disk-based offloading beyond host memory. The session server does not yet support image or video inputs, and relaxed replay matching can silently merge distinct tool histories. R3 introduces substantial trajectory-memory overhead and is not enabled in the principal case study.

Several questions remain open within the paperโ€™s scope. It is not established how much each fidelity mechanismโ€”TITO, R3, true-on-policy alignment, low-precision contracts, and importance-ratio correctionโ€”contributes independently to learning stability. Nor is the throughput cost of exact alignment characterized across larger model families. Finally, the paper does not provide broad ablations comparing synchronous and asynchronous schedules at equal hardware budgets or equal numbers of policy updates.

Conclusion

Miles v0.1 is a systems report centered on the operational and numerical requirements of frontier post-training. Its principal contributions are the integration of asynchronous agentic rollout, token-exact trajectory recording, MoE routing replay, shared precision contracts, memory-aware training, topology-specific weight synchronization, and explicit verification mechanisms. The system demonstrates substantial engineering results, including 85.5โ€“86.4% reductions in multi-node weight-update time with P2P transfer, a 56% response-length reduction in on-policy distillation, and a 263-second median step time for a GLM-5.2 744B agentic RL run on 64 GB300 GPUs. These results establish a coherent production-oriented architecture, while the paperโ€™s stated coverage limits and single-configuration measurements appropriately constrain the claims.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

Explain it Like I'm 14

่ฎบๆ–‡ๆฆ‚่ฟฐ

่ฟ™็ฏ‡่ฎบๆ–‡ไป‹็ปไบ† Miles v0.1๏ผŒ่ฟ™ๆ˜ฏไธ€ไธชๅธฎๅŠฉ็ ”็ฉถไบบๅ‘˜่ฎญ็ปƒๅคงๅž‹ไบบๅทฅๆ™บ่ƒฝๆจกๅž‹็š„็ณป็ปŸใ€‚

็ฎ€ๅ•ๆฅ่ฏด๏ผŒMiles ็š„็›ฎๆ ‡ๆ˜ฏ่ฎฉๅคงๅž‹่ฏญ่จ€ๆจกๅž‹ๅญฆไผšๆ›ดๅฅฝๅœฐๅฎŒๆˆไปปๅŠก๏ผŒๅฐคๅ…ถๆ˜ฏ้‚ฃไบ›้œ€่ฆๅคšๆญฅ่กŒๅŠจ็š„ไปปๅŠกใ€‚ไพ‹ๅฆ‚๏ผŒๆจกๅž‹ๅฏ่ƒฝ้œ€่ฆ๏ผš

  • ้˜…่ฏปไธ€ไธช็ผ–็จ‹้—ฎ้ข˜๏ผ›
  • ๆ‰“ๅผ€็ปˆ็ซฏ๏ผ›
  • ็ผ–ๅ†™ๆˆ–ไฟฎๆ”นไปฃ็ ๏ผ›
  • ่ฟ่กŒๆต‹่ฏ•๏ผ›
  • ๆ นๆฎ็ป“ๆžœ็ปง็ปญไฟฎๆ”นไปฃ็ ๏ผ›
  • ๆœ€ๅŽๅพ—ๅˆฐไธ€ไธชๅˆ†ๆ•ฐใ€‚

่ฟ™็ฑป่ฎญ็ปƒๆฏ”ๆ™ฎ้€š็š„โ€œ่พ“ๅ…ฅ้—ฎ้ข˜โ€”่พ“ๅ‡บ็ญ”ๆกˆโ€ๆ›ดๅคๆ‚๏ผŒๅ› ไธบๆจกๅž‹้œ€่ฆไธๆ–ญ่กŒๅŠจใ€ไฝฟ็”จๅทฅๅ…ท๏ผŒๅนถไปŽ็Žฏๅขƒไธญ่Žทๅพ—ๅ้ฆˆใ€‚

็ ”็ฉถ็›ฎๆ ‡

่ฟ™็ฏ‡่ฎบๆ–‡ไธป่ฆๆƒณๅ›ž็ญ”ไปฅไธ‹้—ฎ้ข˜๏ผš

  1. ๆ€Žๆ ทๆ›ดๅฟซๅœฐ่ฎญ็ปƒๅคงๅž‹่ฏญ่จ€ๆจกๅž‹๏ผŸ
  2. ๆ€Žๆ ท่ฎฉ่ฎญ็ปƒ่ฟ‡็จ‹ๆ›ดๅŠ ๅ‡†็กฎ๏ผŸ
  3. ๆ€Žๆ ท้ฟๅ…ๆจกๅž‹ๅœจ่ฎญ็ปƒๆ—ถไฝฟ็”จไบ†ไธŽๅฎž้™…็”Ÿๆˆ่ฟ‡็จ‹ไธๅŒ็š„ๆ•ฐๆฎ๏ผŸ
  4. ๆ€Žๆ ท่ฎฉ่ฎญ็ปƒ็ณป็ปŸๆ”ฏๆŒๆ›ดๅคง็š„ๆจกๅž‹ๅ’Œๆ›ดๅคš็š„ GPU๏ผŸ
  5. ๆ€Žๆ ท่ฎฉ็ณป็ปŸ้€‚ๅบ”ไธๅŒ็š„ๆจกๅž‹ใ€็กฌไปถๅ’Œ่ฎญ็ปƒๆ–นๆณ•๏ผŸ

ไฝœ่€…็‰นๅˆซๅ…ณๆณจไธ€ไธช้—ฎ้ข˜๏ผšๆจกๅž‹็”Ÿๆˆ็ญ”ๆกˆ็š„็ณป็ปŸๅ’Œ็œŸๆญฃ่ฟ›่กŒ่ฎญ็ปƒ็š„็ณป็ปŸ๏ผŒๅฏ่ƒฝไผš็”จ็•ฅๆœ‰ไธๅŒ็š„ๆ–นๅผ่ฎก็ฎ—็ป“ๆžœใ€‚ๅณไฝฟๅทฎๅˆซๅพˆๅฐ๏ผŒ็ป่ฟ‡ๅพˆๅคš่ฝฎ่ฎญ็ปƒๅŽ๏ผŒไนŸๅฏ่ƒฝๅฏผ่‡ดๆจกๅž‹่กจ็Žฐๅ˜ๅทฎ๏ผŒ็”š่‡ณ่ฎญ็ปƒๅคฑ่ดฅใ€‚

Miles ๆ˜ฏๆ€Žๆ ทๅทฅไฝœ็š„๏ผŸ

Miles ็š„่ฎญ็ปƒ่ฟ‡็จ‹ๅฏไปฅๆƒณ่ฑกๆˆไธ€ไธชไธๆ–ญๅพช็Žฏ็š„ๅญฆไน ๆธธๆˆใ€‚ๅฎƒไธป่ฆๅˆ†ไธบไธ‰ไธช้˜ถๆฎตใ€‚

1. ็”ŸๆˆไปปๅŠกๅฐ่ฏ•

้ฆ–ๅ…ˆ๏ผŒๆจกๅž‹ๅฐ่ฏ•ๅฎŒๆˆ่ฎธๅคšไปปๅŠกใ€‚่ฟ™ไบ›ๅฐ่ฏ•ๅซไฝœ ่ฝจ่ฟนใ€‚

ๅฏนไบŽๆ™ฎ้€š้—ฎ้ข˜๏ผŒไธ€ๆก่ฝจ่ฟนๅฏ่ƒฝๅชๆ˜ฏๆจกๅž‹ๅ†™ๅ‡บไธ€ๆฎต็ญ”ๆกˆใ€‚ๅฏนไบŽ็ผ–็จ‹ไปปๅŠก๏ผŒไธ€ๆก่ฝจ่ฟนๅฏ่ƒฝๅŒ…ๅซ๏ผš

  • ๆจกๅž‹่ฏดไบ†ไป€ไนˆ๏ผ›
  • ๆจกๅž‹่ฐƒ็”จไบ†ๅ“ชไบ›ๅทฅๅ…ท๏ผ›
  • ๅทฅๅ…ท่ฟ”ๅ›žไบ†ไป€ไนˆ๏ผ›
  • ๆจกๅž‹ๆŽฅไธ‹ๆฅ้‡‡ๅ–ไบ†ไป€ไนˆ่กŒๅŠจ๏ผ›
  • ๆœ€ๅŽไปปๅŠกๅพ—ๅˆฐไบ†ๅคšๅฐ‘ๅˆ†ใ€‚

ๆจกๅž‹้€šๅธธไผšๅฏนๅŒไธ€ไธช้—ฎ้ข˜ๅฐ่ฏ•ๅคšๆฌกใ€‚ๆฅ่‡ชๅŒไธ€ไธช้—ฎ้ข˜็š„ๅคšๆกๅฐ่ฏ•่ขซ็งฐไธบไธ€ไธช ่ฝจ่ฟน็ป„ใ€‚ๆŠŠๅฎƒไปฌๆ”พๅœจไธ€่ตทๅพˆ้‡่ฆ๏ผŒๅ› ไธบ็ณป็ปŸๅฏไปฅๆฏ”่พƒ่ฟ™ไบ›ๅฐ่ฏ•๏ผŒๅˆคๆ–ญๅ“ชไบ›ๅšๅพ—ๆ›ดๅฅฝใ€‚

Miles ไฝฟ็”จไธ€ไธชๅซไฝœ SGLang ็š„็ณป็ปŸๆฅๅฟซ้€Ÿ็”Ÿๆˆ่ฟ™ไบ›่ฝจ่ฟนใ€‚ๅฎƒ่ฟ˜ไผšๅฐฝ้‡่ฎฉๅŒไธ€ไธชๅคšๆญฅ้ชคไปปๅŠกไธ€็›ด็”ฑๅŒไธ€ไธช GPU ๆœๅŠกใ€‚่ฟ™ๆ ท๏ผŒไน‹ๅ‰็š„ๅฏน่ฏๅ†…ๅฎนๅฏไปฅไฟๅญ˜ๅœจ้ซ˜้€Ÿ็ผ“ๅญ˜ไธญ๏ผŒไธๅฟ…ๆฏๆฌก้ƒฝ้‡ๆ–ฐๅค„็†ใ€‚

่ฟ™ๅฐฑๅƒไธ€ไธชๅญฆ็”Ÿไธ€็›ดไฝฟ็”จๅŒไธ€ๆœฌๆ‰“ๅผ€็š„็ฌ”่ฎฐ๏ผŒ่€Œไธๆ˜ฏๆฏๆฌกๅš้ข˜้ƒฝ้‡ๆ–ฐๆŠ„ๅ†™ๅ‰้ข็š„ๅ†…ๅฎนใ€‚

2. ๆ นๆฎ็ป“ๆžœ่ฎญ็ปƒๆจกๅž‹

ๆŽฅไธ‹ๆฅ๏ผŒ่ฎญ็ปƒๅ™จไผšๆŸฅ็œ‹ๆจกๅž‹็š„ๅฐ่ฏ•ๅ’Œๅพ—ๅˆฐ็š„ๅˆ†ๆ•ฐ๏ผŒๅนถๆ›ดๆ–ฐๆจกๅž‹็š„ๅ‚ๆ•ฐใ€‚

ๆจกๅž‹ๅ‚ๆ•ฐๅฏไปฅ็†่งฃไธบๆจกๅž‹ๅ†…้ƒจ็š„ๅคง้‡โ€œ่ฎฐๅฟ†ๆ—‹้’ฎโ€ใ€‚่ฎญ็ปƒ็š„่ฟ‡็จ‹ๅฐฑๆ˜ฏๆ นๆฎ็ป“ๆžœ่ฐƒๆ•ด่ฟ™ไบ›ๆ—‹้’ฎ๏ผš

  • ๅšๅพ—ๅฅฝ็š„่กŒไธบๅบ”่ฏฅๆ›ดๅฎนๆ˜“ๅ†ๆฌกๅ‡บ็Žฐ๏ผ›
  • ๅšๅพ—ไธๅฅฝ็š„่กŒไธบๅบ”่ฏฅๅ‡ๅฐ‘ใ€‚

Miles ๆ”ฏๆŒไธค็งไธป่ฆ็š„่ฎญ็ปƒๅทฅๅ…ท๏ผš

  • Megatron-LM
  • PyTorch FSDP

่ฟ™ไบ›ๅทฅๅ…ท่ƒฝๅคŸๆŠŠ้žๅธธๅคง็š„ๆจกๅž‹ๅˆ†ๆ•ฃๅˆฐ่ฎธๅคš GPU ไธŠๅ…ฑๅŒ่ฎญ็ปƒใ€‚

3. ๆŠŠๆ–ฐๆจกๅž‹้€ๅ›ž็”Ÿๆˆ็ณป็ปŸ

่ฎญ็ปƒๅฎŒๆˆๅŽ๏ผŒMiles ไผšๆŠŠๆ›ดๆ–ฐๅŽ็š„ๆจกๅž‹ๅ‚ๆ•ฐไผ ๅ›ž็”Ÿๆˆ็ณป็ปŸใ€‚่ฟ™ๆ ท๏ผŒๆจกๅž‹ไธ‹ไธ€ๆฌกๅฐ่ฏ•ไปปๅŠกๆ—ถ๏ผŒๅฐฑไผšไฝฟ็”จๅˆšๅˆšๅญฆๅˆฐ็š„ๆ–ฐ็Ÿฅ่ฏ†ใ€‚

่ฟ™ไธ‰ไธช้˜ถๆฎตไผšไธๆ–ญ้‡ๅค๏ผš

็”Ÿๆˆๅฐ่ฏ• โ†’ ๆ นๆฎ็ป“ๆžœ่ฎญ็ปƒ โ†’ ๆ›ดๆ–ฐๆจกๅž‹ โ†’ ๅ†็”Ÿๆˆๅฐ่ฏ•

ๅŒๆญฅ่ฎญ็ปƒๅ’Œๅผ‚ๆญฅ่ฎญ็ปƒ

ไผ ็ปŸ่ฎญ็ปƒ้€šๅธธๅƒๆŽ’้˜Ÿไธ€ๆ ท่ฟ›่กŒ๏ผš

  1. ็ญ‰ๆ‰€ๆœ‰ๆจกๅž‹ๅฐ่ฏ•ๅฎŒๆˆ๏ผ›
  2. ่ฎญ็ปƒๆจกๅž‹๏ผ›
  3. ็ญ‰่ฎญ็ปƒ็ป“ๆŸ๏ผ›
  4. ๅ†ๅผ€ๅง‹ไธ‹ไธ€่ฝฎๅฐ่ฏ•ใ€‚

่ฟ™็งๆ–นๆณ•็š„้—ฎ้ข˜ๆ˜ฏ๏ผŒ้€Ÿๅบฆ่พƒๆ…ข็š„ไปปๅŠกไผšๆ‹–ไฝๆ‰€ๆœ‰ไบบใ€‚ๅฐฑๅƒไธ€็พคๅญฆ็”Ÿไธ€่ตทๅฎŒๆˆไฝœไธš๏ผŒๅฟ…้กป็ญ‰ๆœ€ๅŽไธ€ไธชๅญฆ็”ŸไบคไฝœไธšๅŽ๏ผŒ่€ๅธˆๆ‰่ƒฝๆ‰นๆ”นใ€‚

Miles ๆ”ฏๆŒ ๅฎŒๅ…จๅผ‚ๆญฅ่ฎญ็ปƒใ€‚ๅœจ่ฟ™็งๆ–นๅผไธ‹๏ผš

  • ไธ€ไบ› GPU ๆญฃๅœจ็”Ÿๆˆๆ–ฐ็š„ไปปๅŠกๅฐ่ฏ•๏ผ›
  • ๅฆไธ€ไบ› GPU ๅŒๆ—ถ่ฎญ็ปƒๆจกๅž‹๏ผ›
  • ็”Ÿๆˆๅ’Œ่ฎญ็ปƒๅฏไปฅๅŒๆ—ถ่ฟ›่กŒใ€‚

่ฟ™ๆ ทๅฏไปฅๅ‡ๅฐ‘ GPU ็ญ‰ๅพ…็š„ๆ—ถ้—ด๏ผŒๆ้ซ˜ๆ•ดไฝ“้€Ÿๅบฆใ€‚

Miles ่ฟ˜่ฎพ็ฝฎไบ†ไธ€ไธช็ฑปไผผโ€œ็ญ‰ๅพ…ๅŒบโ€็š„ ๆ•ฐๆฎ็ผ“ๅ†ฒๅŒบใ€‚ๅทฒ็ปๅฎŒๆˆ็š„่ฝจ่ฟนไผšๅ…ˆๆ”พๅœจ้‚ฃ้‡Œ๏ผŒ่ฎญ็ปƒๅ™จ้œ€่ฆๆ•ฐๆฎๆ—ถๅ†ๅ–่ตฐใ€‚

็ณป็ปŸไผšๆฃ€ๆŸฅ่ฟ™ไบ›ๆ•ฐๆฎๆ˜ฏๅฆไป็„ถๆœ‰็”จใ€‚ๅฆ‚ๆžœๆŸๆก่ฝจ่ฟน็ญ‰ๅพ…ๅคชไน…ใ€ไฝฟ็”จ็š„ๆ˜ฏ่ฟ‡ๆ—ถ็š„ๆจกๅž‹็‰ˆๆœฌ๏ผŒๅฐฑๅฏ่ƒฝ่ขซไธขๅผƒๆˆ–้‡ๆ–ฐ็”Ÿๆˆใ€‚่ฟ™ไธช้—ฎ้ข˜ๅซไฝœ ้™ˆๆ—งๆ€ง๏ผŒๆ„ๆ€ๆ˜ฏๆ•ฐๆฎๅคชๆ—ง๏ผŒๅทฒ็ปไธ่ƒฝๅพˆๅฅฝๅœฐไปฃ่กจๅฝ“ๅ‰ๆจกๅž‹ใ€‚

ๆ€Žๆ ทไฟ่ฏ่ฎญ็ปƒๆ•ฐๆฎๅ‡†็กฎ๏ผŸ

ไฟ็•™ๅฎŒๅ…จ็›ธๅŒ็š„ token

่ฏญ่จ€ๆจกๅž‹ๅฎž้™…ไธŠไธๆ˜ฏ็›ดๆŽฅๅค„็†ๅ•่ฏ๏ผŒ่€Œๆ˜ฏๅค„็†ๆ›ดๅฐ็š„ๆ–‡ๅญ—็‰‡ๆฎต๏ผŒๅซไฝœ tokenใ€‚ไธ€ไธชๅ•่ฏๅฏ่ƒฝๅฏนๅบ”ไธ€ไธชๆˆ–ๅคšไธช tokenใ€‚

ๅคš่ฝฎไปปๅŠกไธญ๏ผŒๆจกๅž‹็š„ๆถˆๆฏๅฏ่ƒฝ็ป่ฟ‡่ฎธๅคšๅค„็†๏ผš

  • ่ฝฌๆขๆˆ่Šๅคฉๆ ผๅผ๏ผ›
  • ๅŠ ๅ…ฅๅทฅๅ…ท่ฐƒ็”จไฟกๆฏ๏ผ›
  • ๅˆ ้™คๆŸไบ›ๅ†…ๅฎน๏ผ›
  • ้‡ๆ–ฐๆŽ’ๅˆ—ๅކๅฒๅฏน่ฏใ€‚

ๅฆ‚ๆžœ่ฎญ็ปƒๅ™จๆœ€ๅŽ็œ‹ๅˆฐ็š„ token ๅ’Œๆจกๅž‹ๅฝ“ๆ—ถ็œŸๆญฃ็”Ÿๆˆ็š„ token ไธไธ€ๆ ท๏ผŒ่ฎญ็ปƒๅฐฑๅฏ่ƒฝๆ˜ฏๅœจๅญฆไน ไธ€ๆฎตโ€œๆจกๅž‹ไปŽๆœช็œŸๆญฃ่ฏด่ฟ‡็š„่ฏโ€ใ€‚

Miles ไฝฟ็”จ Token-In-Token-Out๏ผˆTITO๏ผ‰ ๆœบๅˆถๆฅ่งฃๅ†ณ่ฟ™ไธช้—ฎ้ข˜ใ€‚ๅฎƒไผšไฟๅญ˜ๆจกๅž‹ๅฎž้™…็”Ÿๆˆ็š„ tokenใ€็”Ÿๆˆ่ฟ™ไบ› token ๆ—ถ็š„ๆฆ‚็އ๏ผŒไปฅๅŠๅทฅๅ…ท่ฐƒ็”จไฟกๆฏใ€‚

่ฟ™ๆ ท๏ผŒ่ฎญ็ปƒๅ™จๅฏไปฅๅ‡†็กฎๅœฐ้‡็Žฐๆจกๅž‹ๅฝ“ๆ—ถ็š„่กŒไธบใ€‚

่ฟ™ๅฐฑๅƒๅฝ•ๅƒๆฏ”่ต›๏ผšๅฆ‚ๆžœๆ•™็ปƒ่ฆๅˆ†ๆž่ฟๅŠจๅ‘˜็š„ๅŠจไฝœ๏ผŒๅฐฑๅฟ…้กปไฝฟ็”จๆฏ”่ต›ไธญ็œŸๅฎžๅ‘็”Ÿ็š„ๅฝ•ๅƒ๏ผŒ่€Œไธๆ˜ฏๆ นๆฎ่ฎฐๅฟ†้‡ๆ–ฐๆผ”็คบไธ€้ใ€‚

ๆททๅˆไธ“ๅฎถๆจกๅž‹ไธญ็š„่ทฏ็”ฑ้—ฎ้ข˜

ๆœ‰ไบ›ๅคงๅž‹ๆจกๅž‹ๅซไฝœ ๆททๅˆไธ“ๅฎถๆจกๅž‹๏ผˆMoE๏ผ‰ใ€‚่ฟ™็ฑปๆจกๅž‹ๅ†…้ƒจๆœ‰่ฎธๅคšโ€œไธ“ๅฎถๆจกๅ—โ€๏ผŒๆฏไธช token ๅชไผšไบค็ป™ๅ…ถไธญๅ‡ ไธชไธ“ๅฎถๅค„็†ใ€‚

ๆจกๅž‹ไธญ็š„่ทฏ็”ฑๅ™จไผšๅ†ณๅฎš๏ผš

่ฟ™ไธช token ๅบ”่ฏฅไบค็ป™ๅ“ชๅ‡ ไธชไธ“ๅฎถ๏ผŸ

็”ฑไบŽ็”Ÿๆˆ็ณป็ปŸๅ’Œ่ฎญ็ปƒ็ณป็ปŸไฝฟ็”จ็š„่ฎก็ฎ—ๆ–นๅผๅฏ่ƒฝ็•ฅๆœ‰ไธๅŒ๏ผŒๅฎƒไปฌๆœ‰ๆ—ถไผšๆŠŠๅŒไธ€ไธช token ไบค็ป™ไธๅŒ็š„ไธ“ๅฎถใ€‚่ฟ™ๆ ท๏ผŒ่ฎญ็ปƒ่ฟ‡็จ‹ๅฐฑๅฏ่ƒฝๆ›ดๆ–ฐ้”™่ฏฏ็š„้ƒจๅˆ†ใ€‚

Miles ๆไพ›ไบ† R3๏ผŒไนŸๅฐฑๆ˜ฏ rollout routing replayใ€‚ๅฎƒไผš่ฎฐๅฝ•็”Ÿๆˆๆ—ถ้€‰ๆ‹ฉไบ†ๅ“ชไบ›ไธ“ๅฎถ๏ผŒ่ฎญ็ปƒๆ—ถๅ†ไฝฟ็”จๅฎŒๅ…จ็›ธๅŒ็š„้€‰ๆ‹ฉใ€‚

่ฟ™็ฑปไผผไบŽ่ฎฉๅญฆ็”Ÿๅคไน ๆ—ถไฝฟ็”จๅ’Œ่€ƒ่ฏ•ๆ—ถๅฎŒๅ…จ็›ธๅŒ็š„่งฃ้ข˜ๆญฅ้ชค๏ผŒ่€Œไธๆ˜ฏๆขไธ€็งๅฏ่ƒฝๅฏผ่‡ดไธๅŒ็ป“ๆžœ็š„ๆ–นๆณ•ใ€‚

็ ”็ฉถไธญไฝฟ็”จ็š„ๆŠ€ๆœฏๆ–นๆณ•

่ฟ™็ฏ‡่ฎบๆ–‡ไธป่ฆๆ˜ฏไธ€็ฏ‡็ณป็ปŸ่ฎพ่ฎกๅ’Œๆ€ง่ƒฝๆŠฅๅ‘Š๏ผŒ่€Œไธๆ˜ฏไผ ็ปŸ็š„ๅฎž้ชŒๅฎคๅฎž้ชŒใ€‚ไฝœ่€…ๆž„ๅปบไบ†ไธ€ไธชๅฎŒๆ•ด็š„่ฎญ็ปƒๅนณๅฐ๏ผŒๅนถๆต‹่ฏ•ไบ†ๅฎƒ็š„ๅคšไธช้ƒจๅˆ†ใ€‚

ไธป่ฆๆ–นๆณ•ๅŒ…ๆ‹ฌ๏ผš

  • ไฝฟ็”จ SGLang ็”Ÿๆˆๆจกๅž‹ๅ›ž็ญ”ๅ’Œๅคš่ฝฎ่กŒๅŠจ๏ผ›
  • ไฝฟ็”จ Megatron-LM ๆˆ– PyTorch FSDP ่ฎญ็ปƒๆจกๅž‹๏ผ›
  • ไฝฟ็”จไธๅŒๆ–นๅผๅœจ็”Ÿๆˆ็ณป็ปŸๅ’Œ่ฎญ็ปƒ็ณป็ปŸไน‹้—ดๅŒๆญฅๆจกๅž‹ๅ‚ๆ•ฐ๏ผ›
  • ไฝฟ็”จ็ผ“ๅ†ฒๅŒบ็ฎก็†ๅทฒ็ปๅฎŒๆˆ็š„่ฎญ็ปƒๆ•ฐๆฎ๏ผ›
  • ่ฎฐๅฝ• tokenใ€ๆฆ‚็އๅ’Œไธ“ๅฎถ่ทฏ็”ฑ๏ผŒไฟๆŒ็”ŸๆˆไธŽ่ฎญ็ปƒ็š„ไธ€่‡ด๏ผ›
  • ไฝฟ็”จไฝŽ็ฒพๅบฆ่ฎก็ฎ—ๅ‡ๅฐ‘ GPU ๅ ็”จๅนถๆ้ซ˜้€Ÿๅบฆ๏ผ›
  • ๆ”ฏๆŒ LoRAใ€็›‘็ฃๅพฎ่ฐƒๅ’Œ็Ÿฅ่ฏ†่’ธ้ฆ็ญ‰่ฎญ็ปƒๆ–นๅผ๏ผ›
  • ๅœจไธๅŒ็ฑปๅž‹็š„ GPU ๅ’ŒไธๅŒๆจกๅž‹ไธŠๆต‹่ฏ•็ณป็ปŸใ€‚

ๅ…ถไธญ๏ผŒไฝŽ็ฒพๅบฆ่ฎก็ฎ—ๆ˜ฏๆŒ‡็”จๆ›ดๅฐ‘็š„ๆ•ฐๅญ—ไฝๆ•ฐ่กจ็คบๆ•ฐๅญ—ใ€‚ไพ‹ๅฆ‚๏ผŒๆ™ฎ้€š่ฎก็ฎ—ๅƒไฝฟ็”จๅพˆ็ฒพ็ป†็š„ๅฐบๅญ๏ผŒ่€ŒไฝŽ็ฒพๅบฆ่ฎก็ฎ—ๅƒไฝฟ็”จๅˆปๅบฆ่พƒ็ฒ—็š„ๅฐบๅญใ€‚็ฒ—ๅฐบๅญ่ฎก็ฎ—ๆ›ดๅฟซใ€ๅ ็”จ็ฉบ้—ดๆ›ดๅฐ‘๏ผŒไฝ†ๅฏ่ƒฝไธๅคŸๅ‡†็กฎใ€‚

Miles ่ฎฉ็”Ÿๆˆๅ’Œ่ฎญ็ปƒ้˜ถๆฎตๅฐฝๅฏ่ƒฝไฝฟ็”จ็›ธๅŒ็š„ไฝŽ็ฒพๅบฆๆ–นๆณ•๏ผŒไปฅ้ฟๅ…ไธค่พน็ฎ—ๅ‡บไธๅŒ็š„็ป“ๆžœใ€‚

ไธป่ฆๅ‘็Žฐๅ’Œ็ป“ๆžœ

่ฎบๆ–‡ๆŠฅๅ‘Šไบ†ๅ‡ ไธช้‡่ฆ็ป“ๆžœใ€‚

่ฎญ็ปƒๅ’Œ็”ŸๆˆๅฏไปฅๅŒๆ—ถ่ฟ›่กŒ

ๅฎŒๅ…จๅผ‚ๆญฅ่ฎญ็ปƒ่ƒฝๅคŸ่ฎฉ็”Ÿๆˆๅ’Œ่ฎญ็ปƒๅŒๆ—ถ่ฟ่กŒ๏ผŒๅ‡ๅฐ‘ GPU ็ฉบ้—ฒๆ—ถ้—ดใ€‚ๅฏนไบŽ้œ€่ฆ้•ฟๆ—ถ้—ดไฝฟ็”จๅทฅๅ…ท็š„ไปปๅŠก๏ผŒ่ฟ™ไธ€็‚นๅฐคๅ…ถ้‡่ฆ๏ผŒๅ› ไธบๆŸไบ›ไปปๅŠกๅฏ่ƒฝ้œ€่ฆๅพˆไน…ๆ‰่ƒฝๅฎŒๆˆใ€‚

ๅฏไปฅๆ้ซ˜ๅคš่ฝฎไปปๅŠก็š„็”Ÿๆˆๆ•ˆ็އ

้€š่ฟ‡่ฎฉๅŒไธ€ไธชไปปๅŠกไธ€็›ด่ฟžๆŽฅๅˆฐไฟๅญ˜ๅ…ถๅކๅฒไฟกๆฏ็š„ GPU๏ผŒMiles ๅฏไปฅ้‡ๅคๅˆฉ็”จๅทฒๆœ‰็š„็ผ“ๅญ˜ใ€‚

ๅœจ่ฎบๆ–‡ไธญ็š„ๅ‚่€ƒๆต‹่ฏ•ไธญ๏ผŒๅ‰็ผ€็ผ“ๅญ˜็š„ๅ‘ฝไธญ็އ่พพๅˆฐ 96%ใ€‚่ฟ™ๆ„ๅ‘ณ็€ๅคงๅคšๆ•ฐๆ—ถๅ€™๏ผŒ็ณป็ปŸไธ้œ€่ฆ้‡ๆ–ฐๅค„็†ๅทฒ็ป็œ‹่ฟ‡็š„ๅฏน่ฏๅ†…ๅฎนใ€‚

่ƒฝๅคŸๆ”ฏๆŒๅคๆ‚็š„ๆ™บ่ƒฝไฝ“ไปปๅŠก

Miles ๆ”ฏๆŒๆจกๅž‹ไธŽ็Žฏๅขƒไบ’ๅŠจ๏ผŒไพ‹ๅฆ‚๏ผš

  • ไฝฟ็”จ็ปˆ็ซฏ๏ผ›
  • ็ผ–่พ‘ๆ–‡ไปถ๏ผ›
  • ่ฟ่กŒไปฃ็ ๏ผ›
  • ๆŽฅๆ”ถๆต‹่ฏ•็ป“ๆžœ๏ผ›
  • ๆ นๆฎ็ป“ๆžœ็ปง็ปญ่กŒๅŠจใ€‚

่ฟ™่ฏดๆ˜Žๅฎƒไธไป…้€‚ๅˆ็ฎ€ๅ•็š„้—ฎ็ญ”่ฎญ็ปƒ๏ผŒไนŸ้€‚ๅˆ่ฎญ็ปƒ่ƒฝๅคŸๆ‰ง่กŒๅคšๆญฅไปปๅŠก็š„ AI ๆ™บ่ƒฝไฝ“ใ€‚

ไฝŽ็ฒพๅบฆ่ฎก็ฎ—ๅฏไปฅๅ‡ๅฐ‘ๆ—ถ้—ดๅ’Œ่ต„ๆบ

่ฎบๆ–‡ๆต‹่ฏ•ไบ† BF16ใ€FP8ใ€MXFP8 ๅ’Œ NVFP4 ็ญ‰ๆ•ฐๅญ—ๆ ผๅผใ€‚ไฝœ่€…ๆŠฅๅ‘Š่ฏด๏ผŒๅœจๅทฒ็ปๆต‹่ฏ•็š„้…็ฝฎไธญ๏ผŒไฝŽ็ฒพๅบฆๆ–นๆณ•ๅฏไปฅๆ˜Žๆ˜พๅ‡ๅฐ‘็”Ÿๆˆๆ—ถ้—ด๏ผŒๅŒๆ—ถๅพ—ๅˆฐไธŽ BF16 ๅŸบๅ‡†ๆ–นๆณ•็›ธ่ฟ‘็š„ๅฅ–ๅŠฑๆ›ฒ็บฟใ€‚

ไธ่ฟ‡๏ผŒMXFP8 ๅ’Œ NVFP4 ไปๅค„ไบŽๆต‹่ฏ•้˜ถๆฎต๏ผŒๅชๅœจ้ƒจๅˆ†ๆจกๅž‹ไธŠ้ชŒ่ฏ่ฟ‡๏ผŒไธ่ƒฝไฟ่ฏๅฏนๆ‰€ๆœ‰ๆจกๅž‹้ƒฝๅŒๆ ทๆœ‰ๆ•ˆใ€‚

ๅฎŒๆˆไบ†ๅคงๅž‹ๆจกๅž‹็š„็ซฏๅˆฐ็ซฏๆกˆไพ‹

่ฎบๆ–‡ๆœ€ๅŽๅฑ•็คบไบ†ไธ€ไธชๅฎŒๆ•ดๆกˆไพ‹๏ผš

  • ๆจกๅž‹๏ผšGLM-5.2 744B-A40B๏ผ›
  • ไปปๅŠก๏ผšไฝฟ็”จ็ปˆ็ซฏๅฎŒๆˆ็ผ–็จ‹ไปปๅŠก๏ผ›
  • ็กฌไปถ๏ผš64 ไธช NVIDIA GB300 GPU๏ผ›
  • ่ฎญ็ปƒๆ–นๅผ๏ผšๅฎŒๅ…จๅผ‚ๆญฅ็š„ๆ™บ่ƒฝไฝ“ๅผบๅŒ–ๅญฆไน ๏ผ›
  • ๅ‰ 30 ไธชๆต‹้‡ๆญฅ้ชค็š„ไธญไฝๆ—ถ้—ด๏ผš263 ็ง’ใ€‚

่ฟ™่ฏดๆ˜Ž Miles ไธๅชๆ˜ฏไธ€ไธช็†่ฎบ่ฎพ่ฎก๏ผŒ่€Œๆ˜ฏๅฏไปฅ็”จไบŽ้žๅธธๅคงๅž‹็š„ๅฎž้™…่ฎญ็ปƒไปปๅŠกใ€‚

็ ”็ฉถ็ป“ๆžœไธบไป€ไนˆ้‡่ฆ๏ผŸ

ๅคงๅž‹ๆจกๅž‹่ฎญ็ปƒ้€šๅธธ้œ€่ฆๅคง้‡ GPUใ€ๆ—ถ้—ดๅ’Œ็”ตๅŠ›ใ€‚ๅฆ‚ๆžœ็ณป็ปŸ็ปๅธธ็ญ‰ๅพ…ใ€้‡ๅค่ฎก็ฎ—๏ผŒๆˆ–่€…ๅ› ไธบ็”Ÿๆˆๅ’Œ่ฎญ็ปƒไธไธ€่‡ด่€Œๅ‡บ้”™๏ผŒๆˆๆœฌไผš้žๅธธ้ซ˜ใ€‚

Miles ็š„้‡่ฆๆ€งๅœจไบŽ๏ผŒๅฎƒ่ฏ•ๅ›พๅŒๆ—ถ่งฃๅ†ณๅ‡ ไธชๅฎž้™…้—ฎ้ข˜๏ผš

  • ่ฎฉ GPU ๆ›ดๅฐ‘็ญ‰ๅพ…๏ผ›
  • ่ฎฉ่ฎญ็ปƒๆ•ฐๆฎๆ›ดๅŠ ๅ‡†็กฎ๏ผ›
  • ่ฎฉๅคš่ฝฎๅทฅๅ…ทไฝฟ็”จไปปๅŠกๆ›ดๅฎนๆ˜“่ฎญ็ปƒ๏ผ›
  • ่ฎฉ้žๅธธๅคง็š„ๆจกๅž‹่ƒฝๅคŸๅˆ†ๅธƒๅœจ่ฎธๅคš GPU ไธŠ๏ผ›
  • ่ฎฉ็ ”็ฉถไบบๅ‘˜ๅฏไปฅๆ›ดๆขๆจกๅž‹ใ€็Žฏๅขƒๅ’Œ่ฎญ็ปƒๆ–นๆณ•๏ผ›
  • ่ฎฉ่ฎญ็ปƒ่ฟ‡็จ‹ๅ‡บ็Žฐ้—ฎ้ข˜ๆ—ถๆ›ดๅฎนๆ˜“ๆ‰พๅˆฐๅŽŸๅ› ใ€‚

็ ”็ฉถ็š„ๅฑ€้™

ไฝœ่€…ไนŸ่ฏดๆ˜Žไบ† Miles ็›ฎๅ‰ๅนถไธๅฎŒ็พŽ๏ผš

  • ไธ€ไบ›ไฝŽ็ฒพๅบฆๆ ผๅผ่ฟ˜ๅชๅœจๅฐ‘ๆ•ฐๆจกๅž‹ไธŠๆต‹่ฏ•่ฟ‡๏ผ›
  • ๆŸไบ›ๆจกๅž‹ๅฎถๆ—่ฟ˜ไธๆ”ฏๆŒๅฎŒๆ•ด็š„ๆƒ้‡ๅŒๆญฅ๏ผ›
  • ๅ›พๅƒๅ’Œ่ง†้ข‘่พ“ๅ…ฅ็›ฎๅ‰ไธ่ƒฝ้€š่ฟ‡ TITO session server ๅค„็†๏ผ›
  • ไธ€ไบ›ๆ™บ่ƒฝไฝ“็Žฏๅขƒ่ฟžๆŽฅๅ™จไปๅœจๅฎž้ชŒ้˜ถๆฎต๏ผ›
  • ้ƒจๅˆ†ๆ€ง่ƒฝ็ป“ๆžœๅชๆฅ่‡ชไธ€ไธช็‰นๅฎš้…็ฝฎ๏ผŒไธ่ƒฝไปฃ่กจๆ‰€ๆœ‰็กฌไปถๅ’Œๆจกๅž‹๏ผ›
  • ๅผ‚ๆญฅ่ฎญ็ปƒ้œ€่ฆไธบ็”Ÿๆˆๅ’Œ่ฎญ็ปƒๅ‡†ๅค‡ไธๅŒ็š„ GPU ่ต„ๆบ๏ผŒๅ› ๆญคๅฏ่ƒฝ้œ€่ฆๆ›ดๅคš็กฌไปถ๏ผ›
  • ๅฆ‚ๆžœๆ•ฐๆฎๅœจ็ผ“ๅ†ฒๅŒบไธญ็ญ‰ๅพ…ๅคชไน…๏ผŒๅฐฑๅฏ่ƒฝๅ˜ๅพ—่ฟ‡ๆ—ถๅนถ่ขซไธขๅผƒใ€‚

ๅฏ่ƒฝ็š„ๅฝฑๅ“

ๅฆ‚ๆžœ Miles ็ปง็ปญๅ‘ๅฑ•๏ผŒๅฎƒๅฏ่ƒฝ่ฎฉๆ›ดๅคš็ ”็ฉถไบบๅ‘˜ๅ’Œไผไธšๆ›ดๅฎนๆ˜“่ฎญ็ปƒๅคงๅž‹ AI ๆ™บ่ƒฝไฝ“ใ€‚

ๆœชๆฅ๏ผŒ่ฟ™็ฑป็ณป็ปŸๅฏ่ƒฝๅธฎๅŠฉ AI ๆ›ดๅฅฝๅœฐๅฎŒๆˆ๏ผš

  • ็ผ–็จ‹ๅ’Œ่ฝฏไปถๆต‹่ฏ•๏ผ›
  • ไฝฟ็”จ็”ต่„‘ๅ’Œ็ปˆ็ซฏ๏ผ›
  • ๅค„็†ๅคๆ‚็š„ๅทฅไฝœๆต็จ‹๏ผ›
  • ไฝฟ็”จๅค–้ƒจๅทฅๅ…ท๏ผ›
  • ๅœจๆจกๆ‹Ÿ็Žฏๅขƒไธญ่งฃๅ†ณ้—ฎ้ข˜๏ผ›
  • ่ฟ›่กŒๅคšๆญฅ้ชคๅ†ณ็ญ–ใ€‚

ๆ€ปไฝ“ๆฅ่ฏด๏ผŒ่ฟ™็ฏ‡่ฎบๆ–‡ไป‹็ป็š„ไธๆ˜ฏไธ€็งๆ–ฐ็š„ AI ๆจกๅž‹๏ผŒ่€Œๆ˜ฏไธ€ๅฅ—่ฎฉๅคงๅž‹ๆจกๅž‹่ฎญ็ปƒๆ›ดๅŠ ๅฟซ้€Ÿใ€ๅ‡†็กฎใ€ๅฏ้ ๅ’Œๅฏๆ‰ฉๅฑ•็š„ๅŸบ็ก€่ฎพๆ–ฝใ€‚ๅฎƒๅƒๆ˜ฏไธ€ๆกๆ›ดๅฅฝ็š„โ€œ่ฎญ็ปƒ็”Ÿไบง็บฟโ€๏ผšๆจกๅž‹่ดŸ่ดฃๅฐ่ฏ•๏ผŒ็Žฏๅขƒ่ดŸ่ดฃๅ้ฆˆ๏ผŒ่ฎญ็ปƒๅ™จ่ดŸ่ดฃๅญฆไน ๏ผŒ่€Œ Miles ่ดŸ่ดฃ่ฎฉๆ‰€ๆœ‰้ƒจๅˆ†ๅ่ฐƒๅทฅไฝœใ€‚

Knowledge Gaps

Knowledge gaps, limitations, and open questions

  • Incomplete empirical validation at frontier scale: The report provides one principal end-to-end case studyโ€”GLM-5.2 744B-A40B on 64 GB300 GPUsโ€”without establishing whether the reported performance generalizes to other model sizes, MoE configurations, GPU counts, cluster topologies, or workload types.
  • Limited baseline comparisons: The paper does not provide systematic comparisons against synchronous RL, alternative asynchronous schedulers, other post-training systems, or unmodified SGLang/slime pipelines using matched hardware and workloads.
  • Unclear qualityโ€“throughput trade-offs: The effect of asynchronous execution, trajectory staleness, group dropping, retries, and buffer size on reward quality, policy divergence, sample efficiency, and final benchmark performance is not quantified.
  • No convergence analysis for stale data: The paper defines staleness operationally but does not establish theoretical or empirical bounds on how stale trajectories affect the RL objective, importance ratios, gradient bias, or training stability.
  • Unresolved optimal staleness policies: It remains unclear how users should select staleness limits, buffer capacity, retry behavior, and replacement granularity for different environment latency distributions and policy-update rates.
  • Insufficient analysis of trajectory-selection bias: Groups rejected because of uniform rewards, timeouts, or excessive staleness may produce a nonrepresentative training distribution, but the resulting bias in the learned policy is not measured.
  • Straggler mitigation is not evaluated across workloads: The claimed benefits of sample-granularity replacement and least-loaded affinity routing are demonstrated primarily through a reference run; their effectiveness under highly heterogeneous task lengths, failures, or bursty environments remains unknown.
  • Evaluation validity under asynchronous training is underexplored: The paper does not determine how delayed evaluation scores, skipped evaluations, checkpoint reuse, or mixed evaluation timing affect model-selection decisions and reported learning curves.
  • No systematic study of routing affinity trade-offs: Session affinity improves KV-cache reuse but can create load imbalance; the paper does not quantify the trade-off across varying session lengths, fleet sizes, routing policies, or failure-recovery scenarios.
  • Fault tolerance is insufficiently characterized: The behavior of in-flight sessions, cached prefixes, environments, buffers, weight versions, and optimizer state after worker, GPU, network, or sandbox failures is not described or experimentally evaluated.
  • Reproducibility under nondeterminism is unresolved: The report does not establish whether runs can be reproduced across seeds, hardware types, kernel implementations, asynchronous schedules, or different rollout/training interleavings.
  • Token-fidelity guarantees are conditional: TITO depends on registered model families, chat templates, reasoning parsers, and tool-call parsers; the paper does not quantify residual mismatch rates for supported models or explain how correctness is maintained when templates evolve.
  • Unsupported multimodal workflows remain unresolved: The session server does not support image or video inputs, leaving token-exact multi-turn RL for vision-language and multimodal agent models unexplored.
  • Harness-compatibility limitations are not systematically mapped: The consequences of branching histories, context compaction, retries, message rewriting, and non-verbatim replay are described qualitatively, but no benchmark measures failure rates or training-quality degradation across common agent frameworks.
  • Unsafe loose matching lacks safeguards: Looser replay-comparison policies can merge histories with different tool calls or arguments, yet the paper does not provide automatic detection, provenance checks, or recovery mechanisms for such silent mismatches.
  • R3 overhead and benefit are not comprehensively quantified: Although the paper estimates routing-tensor memory costs, it does not measure R3โ€™s communication, storage, latency, and throughput overheads across sequence lengths, expert counts, batch sizes, and cluster scales.
  • The necessity of R3 in asynchronous training remains unclear: The report notes that R3 may have limited effects in asynchronous settings but does not isolate routing mismatch from other sources of trainโ€“rollout divergence or identify when R3 materially improves stability and final performance.
  • No comparison of routing-replay alternatives: The paper does not compare exact routing replay with higher-precision routing, deterministic kernels, router-logit caching, selective replay, or tolerance-based approaches that might reduce memory and communication costs.
  • Low-precision evidence is narrow: MXFP8 and NVFP4 are tested on only a small set of model families, and the report does not establish their robustness across longer contexts, larger MoE models, different objectives, or more diverse agentic tasks.
  • Quantization effects beyond reward curves are unmeasured: The paper does not report detailed effects on calibration, log-probability error, gradient statistics, policy entropy, expert utilization, downstream task accuracy, or long-horizon training stability.
  • Precision-contract coverage is incomplete: The behavior of unsupported formats, new architectures, alternative kernels, and model components held in BF16 is not systematically characterized, leaving open whether partial quantization introduces hidden trainโ€“rollout discrepancies.
  • Hardware portability is not demonstrated in the provided evidence: Although support is claimed across NVIDIA and AMD hardware, the report does not present matched performance, numerical-consistency, or stability results across vendors and GPU generations.
  • Memory and offloading trade-offs are underreported: The excerpt introduces actor eviction and optimizer streaming but does not quantify their impact on step time, communication volume, disk or host-memory bandwidth, failure risk, or scalability.
  • Scalability limits are unspecified: The paper does not identify bottlenecks or performance ceilings as the number of rollout engines, training ranks, environments, trajectories, or model parameters increases.
  • Agent-environment cost is not separated from system cost: The case study does not decompose wall-clock time, energy use, and resource consumption among model inference, training, sandbox creation, tool execution, data movement, synchronization, and evaluation.
  • Reward and environment reliability are not evaluated: The report assumes externally supplied rewards and sandbox behavior but does not study reward noise, flaky tests, environment nondeterminism, adversarial tool outputs, or reward hacking.
  • Security and isolation risks are left open: Running model-generated commands in external sandboxes and allowing tool interactions introduces risks involving data exfiltration, privilege escalation, network access, and cross-episode contamination, none of which are analyzed.
  • The generality of the plug-in architecture is unverified: The three connector layers are conceptually flexible, but the paper does not provide systematic integration studies showing that custom environments can preserve token fidelity, reward correctness, batching semantics, and failure handling simultaneously.
  • Support for non-language diffusion post-training is unexplored: The report states that the architecture extends to diffusion models, but the provided material does not explain the adapted objectives, rollout semantics, synchronization requirements, or empirical validation.
  • Production readiness is not independently established: The โ€œproduction-readyโ€ characterization is not supported by long-duration tests, upgrade and rollback procedures, operational availability metrics, observability audits, or deployments beyond the reported configuration.
  • The scope of the evidence is unclear because the paper text is incomplete: The supplied manuscript ends during the memory/offloading section, so conclusions about weight synchronization, additional training recipes, hardware coverage, code quality, and the full case-study methodology cannot be fully assessed.

Practical Applications

Immediate Applications

The paper presents Miles v0.1 as a production-oriented infrastructure system rather than an end-user model. Its most immediate applications are therefore in model development, evaluation, and deployment workflows where organizations already possess GPU clusters, training data, and executable environments.

  • Frontier-scale reinforcement learning for LLMs โ€” Industry and academia; software/AI
    • Organizations can use Miles to post-train LLMs with RL objectives such as GRPO, using multi-turn trajectories rather than only single completions.
    • A practical workflow is: define prompts and reward functions, connect an agent environment or sandbox, generate trajectories with SGLang, train with Megatron-LM or FSDP, and synchronize updated weights back to rollout engines.
    • This supports models optimized for coding, tool use, planning, customer-service interaction, and other tasks where success is measurable through an external reward.
    • Dependencies: substantial GPU capacity, a reliable reward signal, compatible model architecture, and engineering expertise for distributed training.
  • Training coding agents in isolated software environments โ€” Software engineering and developer tools
    • Miles can train agents that edit files, execute shell commands, run tests, and receive a score from a repository-level or terminal-based task.
    • Potential products include coding assistants that improve through test-based rewards, automated debugging systems, repository maintenance agents, and internal software-engineering copilots.
    • The paperโ€™s use of per-episode sandboxes through AgentENV, Daytona, E2B, Modal, or similar providers enables reproducible task execution and prevents one trajectory from contaminating another.
    • Dependencies: secure sandboxing, deterministic or sufficiently stable test suites, well-designed task distributions, and protection against agents performing unsafe or costly operations.
  • Agentic evaluation and benchmarking โ€” Industry, academia, and model governance
    • The system can run multi-turn evaluations in which models use tools and interact with environments, rather than being judged only on static question-answering benchmarks.
    • Evaluation fleets or external checkpoint backends can measure a specific model version asynchronously while training continues.
    • This enables versioned comparisons of coding success, tool-use reliability, task completion, reward distributions, and failure rates.
    • Dependencies: evaluation tasks must be sufficiently representative; asynchronous scores must be associated with the correct checkpoint; benchmark leakage and reward hacking must be controlled.
  • Asynchronous RL infrastructure for better GPU utilization โ€” AI infrastructure and cloud computing
    • Fully asynchronous scheduling allows rollout generation and training to run concurrently on separate GPU pools.
    • This is especially useful for long-context or tool-using workloads where trajectory lengths vary substantially and synchronous training would wait for stragglers.
    • The buffer metricsโ€”queue size, average and maximum staleness, and discarded groupsโ€”can be integrated into dashboards or autoscaling controllers to determine whether additional rollout or training capacity is needed.
    • Dependencies: disaggregated GPU placement is required for the documented fully asynchronous mode; sufficient memory and interconnect bandwidth are also necessary.
  • Cache-aware serving for multi-turn inference โ€” Model serving and inference systems
    • Milesโ€™s session-aware and data-parallel-rank-aware routing can be applied to agent-serving systems in which successive turns reuse a long context.
    • A production tool could bind a conversation to the engine holding its KV cache, reducing repeated prompt prefilling and lowering latency and inference cost.
    • The reported 96% prefix-cache hit rate in the reference configuration suggests a practical optimization for coding agents, customer-service agents, and workflow automation systems.
    • Dependencies: sessions must carry stable routing keys; affinity can create load imbalance unless combined with least-loaded initial placement and monitoring.
  • Reliable token accounting for multi-turn agents โ€” Training and observability tools
    • The token-in-token-out session server can be used to ensure that the tokens sampled during rollout are exactly the tokens consumed during training.
    • This is actionable for debugging training instability, auditing tool calls, reproducing model behavior, and validating log-probability calculations.
    • A reusable workflow could store token IDs, log-probabilities, tool-call outputs, weight versions, and environment rewards as a complete trajectory record.
    • Dependencies: the modelโ€™s chat template and tool-call parser must be registered and verified; unsupported or vision-based inputs may require lower-level integration.
  • Mixture-of-experts training consistency through routing replay โ€” Large-model training
    • For MoE models, R3 can record the experts selected during rollout and replay those assignments during training.
    • This can reduce discrepancies caused by different kernels, numerical precision, or routing decisions between serving and training.
    • The technique is particularly relevant to organizations training large MoE models where small routing differences can accumulate into substantial policy drift.
    • Dependencies: routing tensors increase memory and communication costs; the approach is relevant to MoE models, not dense models, and may have limited benefit when other asynchronous sources of mismatch dominate.
  • Lower-cost RL with shared low-precision contracts โ€” AI infrastructure and cloud cost reduction
    • The FP8, MXFP8, and NVFP4 workflows can reduce computation and memory requirements while maintaining a common quantization procedure across rollout, training, checkpoint conversion, and weight synchronization.
    • Potential tools include low-precision RL recipes for model fine-tuning services and cluster schedulers that select precision based on supported GPUs.
    • This can make post-training of large models more accessible on Hopper, Blackwell, or supported AMD hardware.
    • Dependencies: support is model- and hardware-specific. MXFP8 and NVFP4 are described as beta-level recipes, and numerical behavior must be validated against BF16 baselines for each new model.
  • Parameter-efficient RL with LoRA โ€” Industry and academic experimentation
    • The paper states that Miles supports LoRA RL, allowing teams to adapt a base model using smaller trainable parameter sets.
    • This can support domain-specific agents, customer-specific assistants, or rapid experiments without updating all model parameters.
    • Potential products include a hosted service that trains and swaps task-specific adapters while preserving a shared base model.
    • Dependencies: the paper excerpt provides limited empirical detail on LoRA performance; adapter quality, serving compatibility, and the effect of asynchronous data on adapter training require validation.
  • On-policy distillation and supervised fine-tuning pipelines โ€” Model development
    • Milesโ€™s token-faithful trajectory handling can support supervised fine-tuning, on-policy distillation, and related post-training recipes in addition to conventional RL.
    • An organization could generate responses from a teacher or current policy, preserve exact token-level information, and train a smaller or specialized student model.
    • This is applicable to model compression, domain adaptation, and transferring tool-use behavior to smaller models.
    • Dependencies: teacher quality, data filtering, distillation objectives, and alignment between teacher-generated tokens and the studentโ€™s tokenizer or chat format.
  • Pluggable research environments and reproducible RL experiments โ€” Academia
    • The three nested connector layers allow researchers to replace the agent function, token-recording layer, or complete rollout orchestration without rewriting the trainer and weight-update system.
    • This can shorten the time required to compare environments, reward schemes, trajectory filters, and scheduling policies.
    • A laboratory could use the same training stack across coding, browser-use, simulation, and tool-calling experiments.
    • Dependencies: connectors are reported as experimental and evolving; researchers must verify reward correctness, episode isolation, and compatibility with the selected tokenization policy.
  • Operational monitoring for distributed post-training โ€” MLOps and platform engineering
    • Milesโ€™s queue and staleness metrics can form the basis of alerts and control policies.
    • Examples include alerting when the rollout queue is empty, increasing rollout capacity when the trainer stalls, reducing rollout concurrency when the buffer is full, or retrying groups that become too stale.
    • Weight-version verification can also be incorporated into deployment gates for evaluation and checkpoint promotion.
    • Dependencies: metrics must be connected to reliable telemetry and interpreted in the context of workload variability; increasing concurrency without enough memory or sandbox capacity may worsen failures.

Long-Term Applications

The following applications are plausible extensions of the system, but they require broader validation, additional engineering, or stronger operational safeguards than are demonstrated in the paper.

  • Autonomous software-engineering agents deployed in production โ€” Software and enterprise automation
    • Miles could eventually support agents that autonomously implement features, fix defects, migrate code, update dependencies, and validate changes in CI environments.
    • A mature workflow would combine task selection, isolated repositories, tool permissions, test-based rewards, human approval thresholds, and rollback mechanisms.
    • Dependencies: training rewards must correlate with maintainable code rather than merely passing tests; environments need security controls, secret isolation, cost limits, and defenses against data exfiltration.
  • General-purpose tool-using assistants โ€” Healthcare, finance, customer operations, and public services
    • The combination of multi-turn token fidelity, external environments, asynchronous RL, and evaluation could train assistants that operate enterprise software, query databases, schedule actions, or execute business workflows.
    • In healthcare, for example, an agent might be trained in a simulated clinical workflow; in finance, it might practice document review or compliance procedures.
    • Dependencies: high-stakes deployment requires domain-specific validation, privacy protection, auditability, human oversight, and safeguards against irreversible actions. Reward functions alone are not sufficient evidence of safety.
  • Robotic and embodied-agent post-training โ€” Robotics and autonomous systems
    • The environment plug-in architecture could be extended to simulators or physical robots, with rewards based on task completion, safety, energy use, or motion quality.
    • The systemโ€™s multi-turn interaction model is relevant to robots that repeatedly observe, plan, call tools, and act in an environment.
    • Dependencies: the paper does not demonstrate robotics or multimodal observation support. Real-world deployment would require image/video handling, low-latency control, sim-to-real transfer, safety certification, and robust handling of delayed or noisy rewards.
  • Vision-language and computer-use RL โ€” Multimodal AI
    • Once the session server supports image and video inputs, the same token-exact training principles could be applied to browser agents, desktop automation, visual inspection, and multimodal robotics.
    • Potential products include agents that navigate graphical interfaces, inspect engineering diagrams, or operate visual workflow tools.
    • Dependencies: the current session server does not support image or video inputs. Multimodal tokenization, visual state storage, screenshot replay, privacy controls, and temporal alignment would need to be developed.
  • Adaptive cloud scheduling for post-training clusters โ€” Cloud infrastructure
    • Buffer state, trajectory lengths, weight staleness, and evaluation backlog could feed an automated controller that dynamically reallocates GPUs between rollout, training, and evaluation.
    • A scheduler might increase rollout capacity when the buffer is empty, increase training capacity when the buffer saturates, and reserve isolated evaluation resources when production measurements are required.
    • Dependencies: reliable cost models, rapid workload migration, predictable interconnect performance, and policies preventing unstable oscillation between resource allocations.
  • Large-scale distributed post-training across heterogeneous hardware โ€” AI platform engineering
    • The support for NVIDIA and AMD hardware, together with multiple training backends and weight-transfer mechanisms, could lead to portable post-training platforms spanning different accelerator fleets.
    • This may reduce dependence on a single vendor and permit organizations to use geographically distributed or opportunistically available hardware.
    • Dependencies: the paper documents only selected hardware and model combinations. Kernel parity, quantization consistency, networking, fault tolerance, and cross-vendor performance require further benchmarking.
  • Automated reward and trajectory-quality management โ€” Research tooling and AI safety
    • The bounded buffer and user-replaceable selector could evolve into a quality-control layer that detects low-information groups, reward hacking, anomalous tool use, unsafe actions, or distribution shifts.
    • Future systems could combine reward variance, trajectory diversity, environment outcomes, and staleness to prioritize which experiences should be trained on.
    • Dependencies: filtering can inadvertently remove difficult but valuable examples; selection policies require careful statistical evaluation to avoid biasing the learned behavior.
  • Near-zero-mismatch on-policy training for frontier MoE models โ€” Advanced model research
    • Combining TITO, R3, shared quantization contracts, true-on-policy alignment, and carefully controlled weight synchronization could enable more faithful on-policy optimization at very large scale.
    • This could improve the stability of RL for long-horizon agents and reduce failures caused by discrepancies between generation and training.
    • Dependencies: exact replay has substantial memory and communication costs, especially for long trajectories and large routing tensors. The practical benefit must be established across diverse model families and asynchronous schedules.
  • Unified post-training for language and diffusion models โ€” Generative media
    • Because the paper states that the architecture extends to diffusion models, a longer-term application is RL or preference-based optimization of image, video, or other diffusion outputs.
    • Potential objectives include adherence to prompts, visual quality, controllability, safety, latency, and domain-specific production requirements.
    • Dependencies: diffusion trajectories, reward definitions, sampling steps, and weight synchronization differ from autoregressive language modeling. The paper does not provide enough evidence to establish production readiness for these workloads.
  • Reproducible policy evaluation and model governance โ€” Public policy and regulated sectors
    • Version-tagged asynchronous evaluation could support audit trails showing which policy checkpoint produced a given result and whether all evaluation requests used the intended weights.
    • This may be useful for regulated deployments requiring reproducible testing, model-change documentation, and evidence that safety evaluations were not inadvertently run on mixed or outdated weights.
    • Dependencies: technical weight verification does not by itself establish legal or ethical compliance. Governance frameworks would also need data lineage, access controls, human review, incident reporting, and independent audits.
  • Personalized or organization-specific model adapters โ€” Education, enterprise, and daily productivity
    • LoRA RL and supervised fine-tuning could eventually produce lightweight adapters for individual users, classrooms, departments, or companies.
    • Examples include tutoring behaviors adapted to a curriculum, writing assistants aligned with organizational style, or workflow agents specialized for a teamโ€™s software tools.
    • Dependencies: user data must be collected lawfully and securely; personalization can amplify incorrect preferences or sensitive biases; adapter isolation and evaluation are necessary before deployment.
  • Consumer-facing adaptive assistants โ€” Daily life
    • In the long term, the methods could support assistants that learn from task outcomes such as successful calendar edits, completed household workflows, or user-approved tool actions.
    • Multi-turn state tracking and cache-preserving routing could reduce latency for persistent personal sessions.
    • Dependencies: continuous online RL is risky without strict consent, reversible actions, privacy protection, bounded exploration, and human confirmation. The paperโ€™s infrastructure is primarily a training system and does not itself provide these consumer safety mechanisms.

Glossary

  • Affinity: A routing policy that keeps related requests on the same serving engine to preserve cached context. โ€œWe refer to this cache-preserving binding as affinity.โ€
  • Agentic RL: Reinforcement learning in which a model performs actions across multiple turns while interacting with an external environment. โ€œIn agentic RL, where the model acts across multiple turns, each rollout session interacts with its own isolated environment, which executes actions and produces the reward.โ€
  • Attention: A neural-network mechanism that determines how strongly tokens should influence one another when producing representations. โ€œDP-rank-aware routing further narrows that binding to an individual data-parallel rank when DP attention is enabled.โ€
  • Backward GEMM: A generalized matrix-multiplication operation used to compute gradients during backpropagation. โ€œThe first, dequantized backward, touches only the training side: it runs the backward GEMMs in BF16 on operands dequantized from the NVFP4 values the forward pass used.โ€
  • BF16: The 16-bit brain floating-point format commonly used for efficient deep-learning computation. โ€œBF16 train, FP8 serveโ€
  • Bit-exact: Producing identical numerical values at the bit representation level rather than merely approximately equal values. โ€œBoth recipes share a bit-exact quantizer, so the training and rollout kernels see identical quantized valuesโ€
  • Cache locality: The tendency for computation to reuse data already stored close to the processor, thereby reducing memory-access cost. โ€œSections~\ref{sec:rollout} covers the rollout stage, including fully asynchronous scheduling, agentic environments, token-in-token-out (TITO) sessions, and rollout routing replay.โ€
  • Checkpoint: A saved model state or an internally stored token-history state that can be reused later. โ€œAfter each successful completion, the server checkpoints those prompt IDs together with the output token IDs, log-probabilities, and routed experts returned by SGLang.โ€
  • Colocated placement: A deployment arrangement in which training and rollout processes share the same GPUs. โ€œMiles refuses to start a fully asynchronous run when the trainer and rollout engines share GPUs (a colocated placement).โ€
  • Collective operation: A synchronized operation involving multiple distributed training processes or devices. โ€œExporting a fresh snapshot imposes a pause because it is a collective operation across the training actorsโ€
  • Contraction axis: The dimension over which multiplication and accumulation are performed in a tensor contraction. โ€œThe contraction axis of some tensors, such as the final transformer layers, the shared experts, and the projections in multi-head latent attention, does not line up with a one-dimensional scaling block.โ€
  • Data-parallel rank: One participating replica in a distributed computation that processes a portion of the data. โ€œDP-rank-aware routing further narrows that binding to an individual data-parallel rank when DP attention is enabled.โ€
  • Dequantization: The process of converting quantized numerical values back into a higher-precision representation. โ€œIt runs the backward GEMMs in BF16 on operands dequantized from the NVFP4 values the forward pass usedโ€
  • Disaggregated placement: A deployment arrangement in which different pipeline stages use separate pools of hardware. โ€œConcurrent execution requires GPU capacity for both stages at once, so the stages use separate GPU pools, a disaggregated placement.โ€
  • Distillation: Training a model to reproduce the behavior or probability distribution of another model. โ€œBeyond full-parameter RL, Miles also supports LoRA RL, on-policy distillation, supervised fine-tuning, and true-on-policy rollout-training alignmentโ€
  • E4M3: An 8-bit floating-point representation with four exponent bits and three mantissa bits. โ€œNVFP4 nests an E4M3 scale per block inside one FP32 scale per tensor.โ€
  • Expert routing: The process by which a mixture-of-experts model selects a subset of specialized subnetworks for each token. โ€œIn a mixture-of-experts (MoE) model, rollout and training can send the same token to different expertsโ€
  • Fidelity: The degree to which generated training data accurately represents the model behavior and tokens that produced it. โ€œRollout generation poses two distinct problems in agentic RL: throughput and fidelity.โ€
  • FlashInfer: A software library providing optimized GPU kernels for inference operations involving transformer models. โ€œThe recipe enables it in the Transformer Engine kernels the trainer uses and in the FlashInfer kernels SGLang uses alikeโ€
  • Forward pass: The computation that transforms model inputs into outputs before gradients are calculated. โ€œRollout and training run the same quantization logic on the forward pass.โ€
  • Fully asynchronous RL: Reinforcement learning in which rollout generation and model training proceed concurrently rather than in alternating phases. โ€œFully asynchronous RL allows rollout generation and training to progress concurrently in Milesโ€
  • Generalized matrix multiplication (GEMM): A highly optimized operation that multiplies matrices or matrix-like tensors, central to neural-network computation. โ€œBoth recipes share a bit-exact quantizer, so the training and rollout kernels see identical quantized values, apart from the per-tensor exceptions that stay in BF16.โ€
  • Gradient stability: The property that computed gradients remain numerically well behaved and useful for optimization. โ€œTrading throughput for gradient stability while leaving the quantized values themselves unchanged.โ€
  • Group-relative centering: An operation that centers a trajectoryโ€™s score relative to scores from other trajectories generated for the same prompt. โ€œGroup rewards are scores that need the whole group at once, such as ranking the trajectories against one another, as distinct from GRPO's group-relative centeringโ€
  • HBM (high-bandwidth memory): Fast memory attached to a GPU and used to store model and training state. โ€œMemory capacity limits a training run when a model's weights, gradients, and optimizer state exceed the GPU's available high-bandwidth memory (HBM).โ€
  • Importance ratio: The ratio between probabilities assigned by a current policy and the policy that generated the training data. โ€œConsequently, the importance ratio drifts away from oneโ€
  • Incremental tokenization: Tokenizing only newly added text while reusing tokenized prefixes from earlier context. โ€œIts incremental tokenization may diverge from the template's canonical output.โ€
  • Inference: The process of using a trained model to generate predictions or tokens. โ€œLower-precision number formats make matrix multiplication faster.โ€
  • KV cache: Memory storing previously computed key and value representations so that autoregressive generation can reuse earlier context efficiently. โ€œThe engine that served the previous turn already holds that prefix in its KV cache.โ€
  • LoRA (Low-Rank Adaptation): A parameter-efficient fine-tuning method that trains low-rank update matrices instead of all model parameters. โ€œBeyond full-parameter RL, Miles also supports LoRA RLโ€
  • Log-probability: The logarithm of a modelโ€™s probability assigned to a token or sequence. โ€œThe server checkpoints those prompt IDs together with the output token IDs, log-probabilities, and routed experts returned by SGLang.โ€
  • Loss masking: Excluding selected tokens from contributing to the training loss. โ€œThe sequence preserves the rollout log-probabilities while loss-masking the tokens the model did not generate.โ€
  • Mixture of experts (MoE): A model architecture that routes each input token through only a selected subset of specialized expert networks. โ€œIn a mixture-of-experts (MoE) model, rollout and training can send the same token to different expertsโ€
  • Minibatch: A subset of training data processed in one optimization step. โ€œThe trainer then forms each minibatch by pulling whichever trajectory groups have already finished from the buffer.โ€
  • NVFP4: A 4-bit floating-point format used for low-precision neural-network computation. โ€œNVFP4 scales activations per token, which keeps quantization artifacts from depending on how a batch is composed.โ€
  • On-policy distillation: Distillation in which training data is generated by the current policy being optimized. โ€œSection~\ref{sec:recipes} covers post-training paradigms beyond core RL, namely LoRA RL, on-policy distillation, and true-on-policy alignmentโ€
  • Optimizer state: The auxiliary parameters maintained by an optimization algorithm, such as momentum and adaptive-scaling statistics. โ€œThe second mechanism, streaming the optimizer state, keeps optimizer state off the GPU during the training stepโ€
  • Prefix cache: A cache containing the previously processed beginning portion of a sequence. โ€œAffinity and least-loaded placement together hold the prefix-cache hit rate at 96\%โ€
  • Quantization: The conversion of numerical values to a lower-precision representation to reduce computation or memory use. โ€œProper quantization in RL is, however, not straightforward.โ€
  • Quantization-aware training: Training that accounts for the effects of quantization while learning model parameters. โ€œTwo further options sit alongside them: quantization-aware training in INT4โ€
  • Rollout: The generation of a model trajectory, often through interaction with an environment, for use in training or evaluation. โ€œSGLang engines generate trajectories.โ€
  • Rollout routing replay (R3): A technique that records and reuses the expert selections made during rollout instead of recomputing them during training. โ€œR3 is a technique that mitigates this issue by treating each token's expert assignments as part of the rollout dataโ€
  • Sandbox: An isolated execution environment in which an agent can safely perform actions such as running commands or editing files. โ€œA coding-agent environment, for example, provides a sandbox per task where the model runs commands, edits files, and receives a final grade from a test suite.โ€
  • Session server: A serving component that manages multi-turn history, tokenization, routing identity, and exact token recording. โ€œSession server is the Miles component between the agent and the engines that takes ownership of a multi-turn trajectory.โ€
  • Staleness: The age of training data measured by how many weight updates separate its generating policy from the current policy. โ€œMiles defines a group's staleness as the current trainer weight version minus the oldest weight version appearing anywhere in the group.โ€
  • Tensor core: Specialized GPU hardware designed to accelerate matrix operations used in deep learning. โ€œA GPU's tensor cores roughly double their peak rate each time the precision halvesโ€
  • Token-in-token-out (TITO): An interface in which exact token IDs generated by the serving system are preserved and passed directly into training. โ€œThe TITO session server closes that gap by letting the server, rather than the harness, control tokenization.โ€
  • Tokenization: The conversion of text or structured messages into the discrete token IDs consumed by a LLM. โ€œOn the first turn, the server renders the selected template into token IDs.โ€
  • Trajectory: A complete sequence of model actions, observations, and responses produced while attempting a task. โ€œA trajectory is one attempt at that task by the current policy.โ€
  • Train-rollout mismatch: A discrepancy between the probabilities or routing decisions used during rollout and those reproduced during training. โ€œThis discrepancy appears as train-rollout mismatchโ€
  • Transformer Engine: A software and kernel stack optimized for transformer computation, including low-precision arithmetic. โ€œThe recipe enables it in the Transformer Engine kernels the trainer usesโ€
  • Throughput: The amount of work completed per unit of time. โ€œThroughput matters because rollout generation dominates wall-clock timeโ€
  • Weight synchronization: The transfer of updated model parameters from the trainer to rollout engines. โ€œAfter each training step, Miles updates the RL policy by synchronizing the new weights with the rollout enginesโ€
  • Zero-KL alignment: An alignment approach designed to maintain exact or near-zero Kullbackโ€“Leibler divergence between specified policy distributions. โ€œToken fidelity is therefore a precondition for three mechanisms described later: rollout routing replay (Section~\ref{sec:r3}), on-policy distillation (Section~\ref{sec:opd}), and true-on-policy alignment (Section~\ref{sec:zero-kl}).โ€

Open Problems

We found no open problems mentioned in this paper.

Tweets

Sign up for free to view the 1 tweet with 122 likes about this paper.