mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3148] serve: MTP on stage 0 exhausts the first GPU at 768K context (mtp prefill: unspecified launch failure); per-GPU reserve seems ineffective #1264
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1264
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zhq445078388 on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3148
Summary
On Windows with 2× AMD Radeon AI PRO R9700 and Strata 0.1.45, serving
Qwen3.8-Flash-Next-GSQ with
--max-context 786432and MTP enabled startssuccessfully, but the first chat request fails with:
[strata] the engine reported an error: mtp prefill: unspecified launch failure
[strata] done: 0 tokens in 26 s (0.0 tok/s) (error, cancel=False)
The machine's display goes black at the same time.
The same 786432 context with MTP disabled starts and answers normally.
Measurements suggest the engine subtracts the MTP weights from the total expert
cache, but does not reserve the MTP prefill scratch / per-GPU headroom on
stage 0.
--vram-reserve-mibalso did not change the expert cache allocation inthis configuration (500 vs 2048 produced identical cache/slots and an unchanged
30.96 GiB on GPU 0).
Environment
pip-10.0.3686.0-20261018strata serve, OpenAI/v1/chat/completions--mtp ...\strata-mtp\rt,STRATA_MTP_STAGE0=1--layer-split auto,--mmap-experts,--expert-cache autoExact args (serve config)
--pack ...\strata-pack\IQ3_XXS
--native ...\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf
--ple-gguf ...\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf
--expert-profile ...\strata-pack\IQ3_XXS\expert-profile.bin
--expert-cache auto
--prefill auto
--spec 4
--spec-min-p 0.5
--mtp ...\strata-mtp\rt
--max-context 786432
--rope-scaling yarn
--rope-scale 2
--yarn-orig-ctx 262144
--kv int8
--ple-io mmap
--vram-reserve-mib 500
--vram-reserve-later-mib 500
--layer-split auto
--mmap-experts
Environment:
STRATA_MTP_STAGE0=1
STRATA_HIPBLASLT_TUNING=hip\gfx1201-hipblaslt-100500.txt
STRATA_RESIDENT_PIN=0
Reproduction
strata servewith the args above (--max-context 786432, MTP on).[strata] filling the GPU's expert cache (12971 experts, 18.79 GiB of VRAM) ...
ready: http://127.0.0.1:8080/v1 (context 786432 tokens)
{
"model": "qwen3.8-flash-next-gsq",
"messages": [{"role": "user", "content": "只回复 OK"}],
"max_tokens": 16,
"stream": false
}
mtp prefill: unspecified launch failure, returns0 tokens, and the display goes black.At the time of the failure:
GPU 0: 30.96 GiB used / 31.86 GiB (~0.90 GiB free)
GPU 1: 27.72 GiB used / 31.86 GiB (~4.14 GiB free)
Same context with MTP disabled
With
--max-context 786432and no--mtp, the same request succeeds:GPU 0: 30.64 GiB / 31.86 GiB
GPU 1: 30.30 GiB / 31.86 GiB
expert_slots = 24576 / 24576
expert_cache = 40924 MiB
vram_free = 1221 MiB
Startup cache differs by about the MTP size:
MTP on, 768K: 12971 experts, 18.79 GiB
MTP off, 768K: 13824 experts, 20.01 GiB
So the MTP weights do appear to be subtracted from the total expert cache.
The problem is that the first GPU still ends up with only ~0.9 GiB free, and
mtp prefillapparently needs more temporary space than that.Evidence that per-GPU reserve is not doing what it says
At 524288 context with MTP on, I compared two runs that differed only in the
first-card reserve:
--vram-reserve-mib 500 --vram-reserve-later-mib 500
--vram-reserve-mib 2048 --vram-reserve-later-mib 500
Both runs produced exactly:
expert_cache = 38313 MiB
expert_cache_primary = 16325 MiB
expert_slots = 23163
GPU 0 usage = 30.96 GiB
GPU 1 usage = 27.90 GiB
The first-card reserve change had no effect on the expert cache or GPU 0. This
was with an explicit
--layer-split 22, so it was not just an auto-splitdifference.
I also tried explicit layer splits to move layers away from the MTP stage:
layer-split auto: GPU 0 30.96 / GPU 1 27.72, cache 40735 MiB, slots 24474
layer-split 23: GPU 0 30.96 / GPU 1 28.80, cache 39228 MiB, slots 23660
layer-split 22: GPU 0 30.96 / GPU 1 27.90, cache 38313 MiB, slots 23163
GPU 0 stayed at 30.96 GiB in all three cases.
expert-cache autoseems torefill the space freed by moving layers with more expert cache, so moving layers
does not create MTP headroom on stage 0.
Expected
One of:
expert-cache autoshould reserve the MTP prefill scratch / temporary bufferson stage 0 when
STRATA_MTP_STAGE0=1.--vram-reserve-mibshould actually reduce GPU 0's cache allocation when itis set higher.
message instead of starting, then crashing the GPU on the first
mtp prefilland taking the display down.
Actual
The service starts successfully and reports ready, then the first request causes
mtp prefill: unspecified launch failure; the display goes black.Workaround used
Question
Is this a known limitation of
STRATA_MTP_STAGE0=1+--expert-cache auto, oris the first-card reserve supposed to account for MTP prefill buffers as well?
If there is a recommended flag combination for dual-GPU + MTP (for example
--trim-stage-weightsor a specific--vram-reserve-later-mib), I can test itand report the results.
Thanks.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.