Skip to content

[sampler throughput] Keep gpt-oss-20b's sampler pool warm between training steps - #37

Merged
Micah Yong (micahtyong) merged 3 commits into
mainfrom
micah/perf-sampler/S1-warm-pool
Oct 14, 2026
Merged

Micah Yong (micahtyong) merged 3 commits into
mainfrom
micah/perf-sampler/S1-warm-pool

Conversation

@micahtyong

@micahtyong Micah Yong (micahtyong) commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

In synchronous RL the sampler pool sits idle during each training step. gpt-oss-20b's step (~6 min) outlasted the pool's 300 s scale-down window, so the pool scaled to zero between updates and every update's rollouts waited ~4 min for cold replicas.

The gpt-oss-20b 64k preset now sets inference_min_replicas to 8, keeping its sampler pool warm across training steps. inference_min_replicas keeps its existing meaning: a fixed minimum for the pool whenever it is deployed.

LoRA sampler pools for training models are now deployed when a trainer for the config boots, rather than when the training client is created, so a trainer queued for GPUs no longer holds warm sampler replicas. If a trainer for the config is already up, the pool is deployed immediately. Sampling clients still deploy the pool on first use.

E2E results

sec-search-rl (gpt-oss-20b), 4 updates, trainer on 8×H200, sampler pool of 8 × 4×H200.

Before WandB
After WandB

Before After
Per-turn sampling latency, mean 31.5 s 8.1 s (−74%)
Update total 1,037 s 665 s (−36%)
GPU-hours (pool + trainer, 4 updates) 35.7 H200-h 35.5 H200-h

🤖 Generated with Claude Code

@micahtyong
Micah Yong (micahtyong) marked this pull request as ready for review October 9, 2026 04:30
@micahtyong
Micah Yong (micahtyong) force-pushed the micah/perf-sampler/S1-warm-pool branch from 5717ef0 to 31fc4db Compare October 9, 2026 04:33
@micahtyong
Micah Yong (micahtyong) force-pushed the micah/perf-sampler/S1-warm-pool branch 2 times, most recently from 3443843 to 5f6bfe0 Compare October 9, 2026 15:45
@micahtyong
Micah Yong (micahtyong) changed the base branch from devin/1790903668-expert-lora-compat to main October 9, 2026 15:45
@micahtyong Micah Yong (micahtyong) changed the title Keep the LoRA sampler pool warm while a training model is active [sampler throughput] Keep the LoRA sampler pool warm while a training model is active Oct 12, 2026
@micahtyong
Micah Yong (micahtyong) force-pushed the micah/perf-sampler/S1-warm-pool branch from 5f6bfe0 to 972f806 Compare October 12, 2026 23:16
@micahtyong Micah Yong (micahtyong) changed the title [sampler throughput] Keep the LoRA sampler pool warm while a training model is active [sampler throughput] Hold inference_min_replicas only while a trainer is up Oct 12, 2026
Drops the trainer-gated minimum so inference_min_replicas keeps its
existing meaning for LoRA sampler pools, including warm eval pools.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@micahtyong Micah Yong (micahtyong) changed the title [sampler throughput] Hold inference_min_replicas only while a trainer is up [sampler throughput] Keep gpt-oss-20b's sampler pool warm between training steps Oct 13, 2026
A queued trainer no longer holds inference_min_replicas warm replicas
while it waits for GPUs. prepare_model still deploys the pool directly
when a trainer for the config is already up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@micahtyong
Micah Yong (micahtyong) merged commit 3979063 into main Oct 14, 2026
3 checks passed
@micahtyong
Micah Yong (micahtyong) deleted the micah/perf-sampler/S1-warm-pool branch October 14, 2026 00:01
Fred Robinson (frrad) added a commit that referenced this pull request Nov 17, 2026
The fork PRs for seeded LoRA initialization were squash-merged, so the
commits Spindle pinned are not on the spindle-miles* branches. Pin the
merged commits instead:

- miles-v0.1.1-52a7a99 (modal-projects/miles#42; same tree as ce494f0)
- miles-v0.1.2-99e1ebe-glm53 (modal-projects/miles#43; same tree as 612703a)
- miles-v0.2.0-8c5de26 (modal-projects/miles#44, after Beam LoRA support #37)

The DeepSeek-V4.1 seed commit fde5e9e was never merged. Its seed patch is
identical to the one #43 merged onto spindle-miles-v0.1.2, so the plain
v0.1.2 image uses that branch head, 99e1ebe, as miles-v0.1.2-99e1ebe. The
GLM-5.3 changes between f2f8447 and 99e1ebe only take effect in the glm53
build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants