---
title: "Toward RL on mixed-precision, mixed-accelerator samplers"
description: "RL training of Qwen3.6-35B-A3B on agentic coding stays stable when samplers run on six accelerator types (A100 through B300, RTX PRO 6000) in NVFP4, FP8 and BF16 with their own kernels, feeding a BF16 trainer on B200."
url: "https://swe.quest/articles/toward-rl-on-mixed-precision-mixed-accelerator-samplers-1c0dc5519077aec1"
canonical: "https://modal.com/blog/toward-rl-on-mixed-precision-mixed-accelerator-samplers"
source: "Modal"
published: "2026-10-13"
difficulty: "hard"
kind: "Research"
reading_minutes: 17
tags: ["model-training","inference","llms","hardware","cost-optimization"]
---

# Toward RL on mixed-precision, mixed-accelerator samplers

A post on [Modal](https://swe.quest/sources/modal.md), published 2026-10-13, 17 min read, Research. Original: [https://modal.com/blog/toward-rl-on-mixed-precision-mixed-accelerator-samplers](https://modal.com/blog/toward-rl-on-mixed-precision-mixed-accelerator-samplers)

## Summary

RL training of Qwen3.6-35B-A3B on agentic coding stays stable when samplers run on six accelerator types (A100 through B300, RTX PRO 6000) in NVFP4, FP8 and BF16 with their own kernels, feeding a BF16 trainer on B200. Uncorrected GRPO collapses on both mixed and homogeneous samplers. Only score centering plus masked importance sampling (optionally with top-p mask replay) trains to the end, matching homogeneous-sampler SWE-bench Pro V2 pass@4 despite 4.7× larger sampler–trainer KL, at about 15% lower sampling cost per update. The central claim is that stability depends on whether mismatch keeps growing, not on its size, so off-policy correction can stand in for bitwise-identical on-policy matching. Collapse shows up as falling reward, KL growing 3× or more, and episodes ending when the model stops calling its tool.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)

## Prerequisites

- policy gradient RL (GRPO)
- importance sampling
- low-precision number formats
- LLM inference serving ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))

## Keywords

GRPO, Qwen3.6-35B-A3B, SGLang, Megatron-LM, Miles, SWE-bench Pro, NVFP4, Modal

## Related posts

- [Putting RL back in RLHF](https://swe.quest/articles/putting-rl-back-in-rlhf-dbdbc5d62840e65d.md): Hugging Face · 2024-06-12 · Hard · 11 min read · Model training, LLMs, Python
  RLOO (REINFORCE Leave-One-Out) is now available as a trainer in Hugging Face TRL.
- [TRL v1.0: Post-Training Library Built to Move with the Field](https://swe.quest/articles/trl-v1-0-post-training-library-built-to-move-with-the-field-09da5ced251e79bc.md): Hugging Face · 2026-03-31 · Medium · 15 min read · Model training, Open source, API design, Python, LLMs
  TRL v1.0 turns Hugging Face's post-training codebase, now covering 75+ methods and downloaded 3M times a month, into a library with an explicit stability contract.
- [Keep the Tokens Flowing: Lessons from 16 Open-Source RL Libraries](https://swe.quest/articles/keep-the-tokens-flowing-lessons-from-16-open-source-rl-libraries-14bbb97951dedd55.md): Hugging Face · 2026-03-10 · Hard · 45 min read · Model training, Distributed systems, Inference & serving, LLMs
  Async RL post-training libraries have converged on one architecture: disaggregate inference and training onto separate GPU pools, connect them with a rollout buffer, and push weights asynchronously so generation never stops and training never waits.
- [The N Implementation Details of RLHF with PPO](https://swe.quest/articles/the-n-implementation-details-of-rlhf-with-ppo-ed05a4d20cc991ad.md): Hugging Face · 2023-10-24 · Hard · 24 min read · Model training, LLMs, Python, Machine learning
  A from-scratch PyTorch reproduction of OpenAI's 2019 lm-human-preferences RLHF codebase closely matches the original learning curves on stylistic tasks like sentiment and descriptiveness.
- [vLLM V0 to V1: Correctness Before Corrections in RL](https://swe.quest/articles/vllm-v0-to-v1-correctness-before-corrections-in-rl-4dc68bef7cff8909.md): Hugging Face · 2026-05-06 · Hard · 7 min read · Model training, Inference & serving, LLMs, Debugging
  Migrating PipelineRL's rollout generation from vLLM V0 (0.8.5) to V1 (0.18.1) caused training metrics (clip rate, KL, entropy, reward) to diverge.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
