Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

fix(mtp): --batch-mtp exits on the first admission with a draft-vocab head

imanu569c09452198
diff --git a/src/core/mtp.cpp b/src/core/mtp.cpp
index a93f4c51f..ea54cf4e2 100644
--- a/src/core/mtp.cpp
+++ b/src/core/mtp.cpp
@@ -609,6 +609,7 @@ bool MtpDrafter::bind(const WeightTable& wt, const NativeHead* head, const float
return false;
}
dhead_ = shared->dhead_;
+ dhead_type_ = shared->dhead_type_; // the subset's type (the main head's, or Q4_0): -1 failed every --batch-mtp step
dvocab_ = shared->dvocab_;
n_dvocab_ = shared->n_dvocab_;
owns_draft_head_ = false;