Training large models with RL typically runs on a fixed homogeneous cluster of the latest accelerators for numerical stability and faster throughput. This throws away inference optimization work done for other vendors and generations, limits the capacity you can utilize, and is .

So we trained a model on agentic coding tasks using fully asynchronous RL and mixed-precision, mixed-accelerator samplers. With off-policy correction, training stayed stable through convergence, on par with homogeneous samplers, at a lower cost.

Oct 13, 2026 · 6:26 PM UTC

32
129
1,665
164,118
Replying to @modal
We use Miles from @radixark as the RL framework, with @sgl_project samplers and a Megatron-LM trainer that updates the policy in BF16 on B200 GPUs. There are two setups:

1. Mixed samplers that span six kinds of accelerators and three precisions (BF16, FP8 and NVFP4).

2. at run only on B200s with BF16 weights and a BF16 KV cache.
1
6
113
15,522
Replying to @modal
Starting from standard GRPO, we apply off-policy correction consisting of masked importance sampling, score centering, and top-p sampling with mask replay. As a result, training on the mixed samplers becomes stable, as evaluated on SWE-bench Pro V2.
3
3
67
6,623
Replying to @modal
Despite a 4.7× larger sampler–trainer KL on average, it matches the performance of homogeneous samplers while being 15% cheaper. Note that this configuration was not heavily optimized for cost efficiency, so further gains are readily available.
2
1
47
5,934
Replying to @modal
Why not true on-policy RL? Full alignment of the sampler with the trainer is expensive. So why not align only certain aspects? Although the magnitude of the mismatch is lowered, it still continues to grow. Off-policy correction fixes this growth, which we argue matters more.
1
1
39
5,356
Replying to @modal
Read the full post: modal.com/blog/toward-rl…
1
9
87
10,413
RepliesRelevant
A new group of legends are enshrined in Cooperstown!

Recap Hall of Fame weekend with @askkaitt in a brand new episode of “This Week in Baseball”, only on X!
33
46
572
2,888,981
Replying to @modal
@modal score centering is all you need
0
0
13
1,713
Replying to @modal
@modal Modal neolab era??
1
0
8
1,423
Replying to @modal
@modal Do you have some real world costs you can discuss for training models in this way?
0
0
1
907
Replying to @modal
@modal wonderful writeup, thank you
0
0
2
1,003
Replying to @modal
@modal 异构才是未来
0
0
1
198
Replying to @modal
@modal 固定集群太贵,异构才是答案
0
0
0
260
Replying to @modal
@modal 15% cheaper and it still matches the homogeneous samplers. thats the part that got me honestly
0
0
0
14
Replying to @modal
@modal mixing b200s with old h100s and still converging is a nice way to stop wasting hardware
0
0
0
261
Still have fans who want CDs? Publish a jewel-case CD beside your digital release without buying inventory first.
0
5
10
6,180
Replying to @modal
@modal Homogeneous clusters were never physics. Just an expensive habit.
0
0
0
688
Replying to @modal
@modal I’m amazed what our training team can stitch together.
1
0
19
1,316
Replying to @modal
@modal heterogeneous rollout workers add capacity, but stragglers can erase gains without strict scheduling
0
0
0
134
Replying to @modal
@modal This is mad impressive. Same quality, lower bill or more experiments, longer runs and higher sample counts for the same budget. Wild
0
0
2
1,022
Replying to @modal
@modal 4.7× higher sampler–trainer KL and still on par with homogeneous samplers is the number that stands out

did most of that gap come from the NVFP4 samplers, or was it spread across accelerators? curious how many NVFP4 tokens masked importance sampling ends up throwing away
0
0
0
12
Replying to @modal
@modal homogeneous rl nodes throw away the inference work already done on older accelerators. that waste is why i would try a mixed fleet before another rack of the newest cards
0
0
0
10
Replying to @modal
@modal the limitations section gives average staleness of about 4. do you also have the tail broken down by sampler group and trajectory length? that would help show how far the uncapped-staleness result extends when slower workers or longer episodes fall behind.
0
0
0
113
Replying to @modal
@modal Throwing away non-homogeneous inference capacity for RL stability is expensive. Matching homogeneous performance at 15% lower cost with off-policy correction is the part I'd copy first.
0
0
0
4
Replying to @modal
@modal How did the founder of Modal had the idea for the company? Anywhere I can read your origin story?
0
0
0
71
Replying to @modal
@modal Asynchronous mixed-accelerator sampling sounds like the practical unlock here. The key question is whether it also makes agentic coding runs reproducible across hardware.
0
0
0
60
Most fake IDs today pass a visual check at the door. Not because your staff is bad at it. The fakes just got that good. What's your plan to stop fake IDs at the door?
0
0
5
364,976
Replying to @modal
@modal The mixed setup is the part I want to try. It shows how much good scheduling can matter before adding more hardware.
0
0
0
59
Replying to @modal
0
0
0
22
Replying to @modal
@modal Sick
0
0
0
169
Replying to @modal
@modal Very cool ! (I’ve done post-training over p2p networks with consumer GPUs in the past)
0
0
0
198
Replying to @modal
@modal Most agent calls are classify, route, or extract, not free-form generation. Constrained decoding at that price fits that slice better than burning a frontier model on every ticket.
0
0
0
4
Replying to @modal
@modal m8, last week tried running vocals thru a mix of old and new GPUs. sounded like a choir of dying fax machines. yeah? saved cash but the artifacts... hah, guess that’s the tax for not splurging on shiny new hardware. ... anyway
0
0
0
100
Replying to @modal
0
0
0
71
Today, @via_ai_ is coming out of stealth to provide enterprises frontier AI coding at half the cost.

We are a team of Olympiad camp qualifiers (with multiple gold medals), researchers, and repeat founders from Stanford and IIT.

Via is backed by @jeffawilke (ex-CEO Amazon anikgupta (ex-Uber CPO), @shaileshrao (ex-Google MD), and other legends from Anthropic, Apple, Snowflake, and Twitter.

@ShrayAlag and I left Stanford CS to build Codegraph, an LLM-optimized compression algorithm. Codegraph put Via at the top of SWE-Bench Verified for several months of 2025, ahead of Anthropic, OpenAI, Cognition, and Cursor (single model, no test-time compute).

Now, we’re bringing this research, alongside our new Umami agent architecture, to market. Via integrates in 10 seconds with any CLI / IDE and runs within your enterprise’s VPC.

On benchmarks, Via and Via US (US-only models) set a new standard of performance:

- On DeepSWE v1.1, Claude Code (Opus 5.5) is 306% the cost of Via US. Via US is equally accurate.
• Devin Fusion is 244% the cost of Via US, Cursor Router is 294%.

- On Terminal Bench 4.0, Claude Code (Opus 5.5) is 150% the cost of Via. Via is more accurate.
• Devin Fusion is 155% the cost of Via, Cursor Router is 134%.

We are in production at a public healthcare company, with trials underway at several of the largest tech companies in Silicon Valley.

We have room for 5 more enterprises before the end of the year. DM me or email pilot@via.dev and we’ll get back to you very soon.

See the comments for how Via would deploy for your team.
63
32
245
73,637