Skip to content

[sampler cold start] Load DeepSeek-V4.1-Flash sampler weights in parallel - #148

Merged
micahtyong merged 2 commits into
mainfrom
micah/sampler-perf/S3-multithread-load-rev2
Oct 28, 2026
Merged

micahtyong merged 2 commits into
mainfrom
micah/sampler-perf/S3-multithread-load-rev2

Conversation

@micahtyong

@micahtyong micahtyong commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

DeepSeek-V4.1-Flash samplers now read their checkpoint with eight threads instead of one.

The recipe used one thread because the earlier BF16 export (#75) only fit in host memory that way. The FP8/FP4 release the recipe loads today is read through the page cache, which the eight GPU ranks of a sampler share. Eight threads, SGLang's default, finish the read in about half the time without using more host memory.

E2E results

Setup: deepseek_v41_flash_1017_lora_8k with one 8×H200 sampler replica, time to read the 48 checkpoint shards (476 GiB) during sampler start, from the same GRPO runs as #146. The other PRs in the stack don't change how shards are read. Before / After

Sampler start Before After
Reading checkpoint shards 138 s 78 s

🤖 Generated with Claude Code

@micahtyong micahtyong changed the title [sampler cold start] Load DeepSeek-V4.1-Flash sampler weights with several threads [sampler cold start] Load DeepSeek-V4.1-Flash sampler weights in parallel Oct 28, 2026
Base automatically changed from micah/sampler-perf/S2-running-requests-rev2 to micah/sampler-perf/S1-kernel-cache October 28, 2026 17:32
@micahtyong
micahtyong added this pull request to stack #166 October 28, 2026 23:31
Base automatically changed from micah/sampler-perf/S1-kernel-cache to main October 28, 2026 23:45
micahtyong and others added 2 commits October 28, 2026 16:45
…volume (#146)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The FP8/FP4 release is 476 GiB in 48 shards and still loads through mmap, so
eight loader threads halve the shard loop without raising host memory.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@micahtyong
micahtyong force-pushed the micah/sampler-perf/S3-multithread-load-rev2 branch from 47cba94 to bec9001 Compare October 28, 2026 23:45
@micahtyong
micahtyong merged commit f02a87e into main Oct 28, 2026
4 checks passed
@micahtyong
micahtyong deleted the micah/sampler-perf/S3-multithread-load-rev2 branch October 28, 2026 23:52
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.

1 participant