mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1268] [CLOSED] --batch-mtp: the first slot admission ends the engine ("unsupported native MMVQ GGML type") #3347
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#3347
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1268
Author: @crazyaimachine
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:batch-mtp-shared-head📝 Commits (1)
d3102f7mtp: a drafter sharing another's weights takes its draft head type (--batch-mtp crashed)📊 Changes
1 file changed (+6 additions, -1 deletions)
View changed files
📝
src/core/mtp.cpp(+6 -1)📄 Description
Problem. With
--batch-mtp, the engine exits at the first request that goes into a batch slot:The slot drafters share the main drafter's weights and draft head (
MtpDrafter::bind(..., shared)).bind()copies the draft head subset (dhead_,dvocab_,n_dvocab_) but not its ggml type.dhead_type_stays -1, andnative_mmvqrefuses it. This hits every--batch-mtprun that has a draft vocabulary, which is the default.Fix. One commit in
src/core/mtp.cpp:bind()with a shared drafter also copiesdhead_type_.load()with shared weights also takes the--mtp-q4Q4_0 copies (dense4_,q4_off_,q4_,q4_head_). They would be missing in the same way.dense4_is freed only by the drafter that owns the weights.Checked. Setup: 1× TITAN RTX (Turing), UD-Q4_K_XL with the BF16 PLE table,
--batch 4 --batch-mtp --spec 4, MTP runtime with draft vocabulary.BGEN.tools/batch_test.py --batch 4 --n 4 --max-new 96 --mt-min 1 --extra "--batch-mtp --pcie-frac 0 --adapt-every 1000000"reports all 4 slots IDENTICAL to their solo tokens.Side note from the same machine: I also tried
--batch-mtpon a 2-GPU layer split, without--batch-groups. It works and gives tokens identical to solo, but it needs two more changes, and on Turing it was slower than the pipelined batch without MTP. So it is not part of this PR. I can open it separately if it is of interest.Written by my agent, tested on my machine.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.