fix(qwen4exp): keep MTP drafting while a thinking budget is open
Summary
The Qwen3.8-Flash-Next batched engine never overrode SeqEngine::max_decode_tokens(), so it reported 0 ("unknown"). The scheduler then treats every slot whose thinking budget is still open as unable to take a burst, and the slot decodes one token per step: the MTP drafts go unused until the thinking closes, which on a reasoning answer is most of the answer.
A step of the MTP slot emits at most its accepted drafts plus the verified token: the slot cache's draft cap plus one (a fixed --verify-width, or QWEN4EXP_MTP_MAX_VERIFY when adaptive). Reporting that lets the scheduler keep bursts while the budget's closing token is still out of reach (ThinkingBudget::needs_ar_tail), the same contract the qwen35 engine already follows with its chain width. Slots without the MTP head still report 1.
Validation
R9700 + Strix Halo box, Qwen3.8-Flash-Next split across both GPUs, four slots (the default batched launch), greedy, 384-token answers, two runs each:
| prompt | before | after |
|---|---|---|
| code | 40-41 tok/s | 51-52 tok/s |
| prose | 44-45 tok/s | 50 tok/s |
| 2K-token document | 34-35 tok/s | 43-45 tok/s |
The answers are byte-identical before and after in every run.
🤖 Generated with Claude Code