mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1110] [CLOSED] fix(mtp): --batch-mtp exits on the first admission with a draft-vocab head (slot drafters never copy its type) #3036
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#3036
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/1110
Author: @imanu86
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:contrib/batch-mtp-dhead-type-040📝 Commits (1)
f5a00e2OPUS-MTP-Copia il tipo della testa del draft condivisa nei drafter di --batch-mtp📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
src/core/mtp.cpp(+1 -0)📄 Description
Resubmission of #1063 (closed by the history cleanup), cherry-picked onto the new
main(82f46a8) as asked. @gl46 hit the same exit on a single RTX 3080 (see #1063).On 0.1.40,
--batch 2 --batch-mtpwith an MTP directory that shipsdraft_vocab.binexits on the firstrequest that a batch slot takes:
The engine returns 1 and the server reports "the engine stopped unexpectedly".
--batch 2without--batch-mtprunsfine on the same setup.
Cause. In
MtpDrafter::bind(src/core/mtp.cpp) a slot drafter that shares the main drafter's head copiesdhead_,dvocab_andn_dvocab_, but notdhead_type_. That stays at its default-1, so the firstnative_mmvq(sub ? dhead_type_ : ..., ...)indraft_firsthits thedefault:case and throws. Any draft-vocabsubset triggers this, the
--mtp-q4Q4_0 head included.Fix (one line):
Setup: RTX 2080 Ti 22 GB (sm_75, our Turing fork on top of 0.1.40), Windows, CUDA 12.6,
Qwen3.8-Flash-Next IQ3_XXS, MTP draft with
draft_vocab.bin(48,542 tokens),--spec 4, two concurrentClaude Code agents (each with a ~40K-token prompt).
Verified with the fix: the same setup starts, two concurrent requests both finish (batch windows average 3.44
rows, i.e. both slots with their MTP proposals, no exit). Without the
fix the first admission exits every time.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.