mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #474] strata serve: mtp: the draft head does not fit — no guidance when MTP draft head exceeds VRAM on smaller GPUs #218
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#218
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 @saikiran121111 on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/474
What happened
The engine crashes on startup with this error when the MTP draft layer's token-subset head can't fit in VRAM:
strata serve: mtp: the draft head does not fit
RuntimeError: the engine exited before it was ready
This is a silent failure — the user gets no hint about what to change. On a 12 GB RTX 3060 with IQ3_S at 262K context, only ~1,500 MiB is free when MTP tries to bind; the default CJK draft vocab (106K tokens) needs ~348 MiB of contiguous VRAM and fails.
The fix already exists but isn't surfaced
setup.py and setup.sh already accept --draft-vocab with three choices:
┌───────────────┬─────────┬─────────────────┐
│ choice │ tokens │ draft head VRAM │
├───────────────┼─────────┼─────────────────┤
│cjk (default) │ 106,299 │ ~348 MiB │
├───────────────┼─────────┼─────────────────┤
│ cyrillic │ 57,793 │ ~189 MiB │
├───────────────┼─────────┼─────────────────┤
│ en │ 40,525 │ ~133 MiB │
└───────────────┴─────────┴─────────────────┘
Switching to --draft-vocab en resolved it immediately. The issue is that setup picks the default without considering VRAM headroom, and the engine's error message doesn't mention the flag.
Two small improvements that would help
Environment
@Niko1221 commented on GitHub (Oct 2, 2026):
Thanks. In 0.1.36, when the draft head doesn't fit, the engine says what it needs and how much VRAM is free, and names
--draft-vocab cyrillic/enwith their sizes (computed for the model in use) and how to switch (START-HERE.bat --draft-vocab en, or./setup.sh). The server's "exited before it was ready" error includes that hint. On cards under 14 GB, setup mentions--draft-vocab enwhen no vocabulary was chosen. It recommends rather than picks, because setup can't yet estimate the VRAM left after the plan precisely.@Dampfinchen commented on GitHub (Oct 4, 2026):
Even with --draft-vocab en, the MTP heads need too much memory.
Please consider making speculative decoding an Opt-out option (I really wonder why that hasn't been the case in the first place as it is in llama.cpp). MTP so far in my testing has only lead to minor speedups in coding or regressions in creative writing at the cost of much higher VRAM usage that would be better spent on more experts on the GPU or more / higher quality context. It seems it is only a straight win for more recent systems with more video memory.
See #708