[PR #1329] [CLOSED] Fix batch MTP shared draft head type #3388

Closed
opened 2026-11-07 14:41:07 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1329
Author: @zetlaw
Created: 10/7/2026
Status: ❌ Closed

Base: main ← Head: fix/batch-mtp-shared-draft-head


📝 Commits (1)

  • a4dd2c5 Fix shared MTP draft head type for batch slots

📊 Changes

2 files changed (+9 additions, -0 deletions)

View changed files

📝 docs/BATCHING.md (+8 -0)
📝 src/core/mtp.cpp (+1 -0)

📄 Description

Problem

On a single GPU, --batch 2 --batch-mtp with a populated rt/draft_vocab.bin starts with two slots but aborts the first batch admission with mtp: unsupported native MMVQ GGML type. The subset head is Q5_K, which the kernel already supports. A slot drafter shares the owner's subset-head weights and vocabulary but leaves dhead_type_ at its default -1.

Fix

Copy the subset-head GGML type when binding a shared MTP drafter. Document the existing model-backed two-slot regression command.

Verification

  • Built the patched engine in Release with CUDA 12.8 / SM89, native experts and K-quant MMQ enabled.
  • On a real IQ3_S GGUF with a 106,299-token draft vocabulary, tools/batch_test.py --batch 2 --n 2 --max-new 64 --extra "--batch-mtp --pcie-frac 0 --adapt-every 1000000" produced 64 tokens identical to solo decoding in each slot.
  • A patched loopback HTTP server negotiated two slots; two simultaneous requests each completed 384 tokens without error. Its engine log captured batch windows containing both slots (1,1,0,0).
  • The existing service was restored to the unmodified serial configuration after the isolated test. This PR does not change a deployed service.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1329 **Author:** [@zetlaw](https://github.com/zetlaw) **Created:** 10/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/batch-mtp-shared-draft-head` --- ### 📝 Commits (1) - [`a4dd2c5`](https://github.com/Niko1221/Strata/commit/a4dd2c5f7c2a1818956ba039b94a7e5683e62044) Fix shared MTP draft head type for batch slots ### 📊 Changes **2 files changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/BATCHING.md` (+8 -0) 📝 `src/core/mtp.cpp` (+1 -0) </details> ### 📄 Description ## Problem On a single GPU, `--batch 2 --batch-mtp` with a populated `rt/draft_vocab.bin` starts with two slots but aborts the first batch admission with `mtp: unsupported native MMVQ GGML type`. The subset head is Q5_K, which the kernel already supports. A slot drafter shares the owner's subset-head weights and vocabulary but leaves `dhead_type_` at its default `-1`. ## Fix Copy the subset-head GGML type when binding a shared MTP drafter. Document the existing model-backed two-slot regression command. ## Verification - Built the patched engine in Release with CUDA 12.8 / SM89, native experts and K-quant MMQ enabled. - On a real IQ3_S GGUF with a 106,299-token draft vocabulary, `tools/batch_test.py --batch 2 --n 2 --max-new 64 --extra "--batch-mtp --pcie-frac 0 --adapt-every 1000000"` produced **64 tokens identical to solo decoding in each slot**. - A patched loopback HTTP server negotiated two slots; two simultaneous requests each completed 384 tokens without error. Its engine log captured batch windows containing both slots (`1,1,0,0`). - The existing service was restored to the unmodified serial configuration after the isolated test. This PR does not change a deployed service. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:41:07 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3388
No description provided.