Explore the research collection
1 entry · Follow this search
- Post
Toward RL on mixed-precision, mixed-accelerator samplers
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.