mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1063] [CLOSED] fix(mtp): --batch-mtp exits on the first admission with a draft-vocab head (slot drafters never copy its type) #2999
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#2999
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/1063
Author: @imanu86
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:contrib/batch-mtp-dhead-type📝 Commits (10+)
f4e96d5tests: gdn_rec_head also compares the PP (variant 4) and two-column (variant 5) recurrence kernels, bitwise16bc95aprefill: STRATA_HCD_EXACT=1 - the HC down projection by a WMMA kernel with hipBLASLt solution 1176/1177 k order (StaggerU included), bitwise502fcef#606: the fused SwiGLU q8_1 quantizers keep the block's scale and sum finite too64d0136cache: preserve checkpoints when split allocation failsa0d0056prefill: fused-expert exact wins (table16 via direct selector, float4 moe_combine, LDS alias + occupancy)5f5452bserve: park_current's try covers the checkpoint split too (#752): a host OOM skips parking8b19a38Layer split: --vram-reserve-later-mib, a separate reserve for the later cardsea83d0dResident RAM mode with a layer splitd2d981fsetup: the low-RAM mode's resident variant on several GPUs (#642)cd62e5eserve: a split's stage-0 GPU profile line keeps its text (#848); later stages say which stage📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
src/core/mtp.cpp(+1 -0)📄 Description
On 0.1.40 (
1735d64),--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.