← All entries
Post#1358

Toward RL on mixed-precision, mixed-accelerator samplers

Summary

RL training normally runs samplers on a fixed homogeneous cluster of the latest accelerators to keep sampler–trainer mismatch low, throwing away inference optimizations built for other vendors/generations. Modal asks whether RL can sample from mixed-precision, mixed-accelerator fleets while staying stable and performant. They train Qwen3.6-35B-A3B on agentic coding tasks (2.7K de-leaked Xiaomi/MiMo-V2.6 repo tasks, up to 256K context, binary test-pass reward in a fresh sandbox) with fully asynchronous RL in the open-source Miles framework: SGLang samplers and a Megatron-LM trainer updating the policy in BF16 on B200s, 128 prompts × 8 trajectories per update, no staleness limit. Two sampler setups: mixed (six accelerator kinds — B200/B300 with NVFP4 weights, H100/H200 with FP8 and BF16 weights, A100/RTX PRO 6000 with BF16 weights — each with its own kernels and FP8 KV caches) vs homogeneous (B200 only, BF16 weights, BF16 KV cache). The fix is off-policy correction on top of GRPO: masked importance sampling (per-token ratio kept inside [0.2, 5], zeroed outside), score centering (removes drift toward the sampling policy), and top-p sampling with mask replay (shared support). Uncorrected GRPO collapses on both setups; each correction piece alone only delays collapse; only score-centering + masked importance sampling trains stably to convergence, reaching SWE-bench Pro V2 pass@4 ~65–75% on the HARD-51 subset and ~94% on the full set. With the full correction, mixed samplers match homogeneous pass@4 throughout training despite a 4.7× larger average sampler–trainer KL, at ~15% lower sampler cost per update on a setup built for validation, not minimal cost. The central claim: stability depends on whether the mismatch keeps growing, not its magnitude — accelerator and precision differences need no new kind of fix, since off-policy correction is agnostic to why the sampling policy differs from the training policy.

Venue
Modal blog
Source
blog
Access
free
Language
en
Added
Oct 13, 2026
Verified
Oct 13, 2026
Found via
#modal

Research notes

  • Discovery: @modal 6-post X thread, 2026-10-13 (status 2110074623337677046). Thread figures confirmed against the canonical blog; blog numbers used as authoritative. Relevance: (1) Agentic-RL post-training — a fully asynchronous RL recipe with a concrete off-policy correction (SC + masked IS + top-p mask replay) on agentic coding tasks evaluated on SWE-bench Pro V2; the ablation pattern (each piece alone only delays collapse) is the actionable takeaway for his own RL work. (2) Infrastructure economics — sampling is 80–85% of RL GPUs per the post; using heterogeneous fleets for ~15% cheaper sampling maps directly onto his compute-cost concerns and Launch Helm (the W&B replacement with run control): the collapse signature (reward falling, KL growing ≥3×, episodes ending on repeated format errors with empty final replies) is monitorable in a control plane. (3) Decoupling argument — trainer can move to the best accelerators/its own low precision without samplers following, which the post argues becomes essential as accelerators diversify across vendors and generations. Cluster: RL/agentic-RL post-training, infrastructure/hardware economics, training stability. Caveats: all numbers vendor-reported on Modal's own fleet and pricing; no independent reproduction; no code released; "15% lower cost" measured against their own homogeneous baseline, not heavily optimized. Miles framework (github.com/radixark/miles, arXiv 2609.08368) researched in full 2026-10-13; queue-ready draft at ~/workspace/pending_catalog_inserts_miles_v01_draft.md — append as item #33 on user go-ahead (renumbered 2026-10-14: #26 taken by Spork, #27 by TeleTune, #28–32 by the five 2026-10-14 shares).
  • License: not stated; no code/data/weights released

Similar entries