Qwen3.8-27B-DMTP
Paper | Hugging Face Papers | Blog V1.5 | Inference references
Updated on December 1, 2026: this repository now contains the iter3634 low-rank linear DMTP draft, fine-tuned from the public Qwen3.8-27B DFlash2 draft.
This replaces the earlier scratch-trained SiLU-residual checkpoint. The new residual has rank 256 and no activation; the weights, configuration, and serving adapter must match.
This repository contains draft weights only, not the 27B target. Supply the matching Qwen3.8-27B target, its native MTP module, and the shared token embedding and language-model head separately.
Method
Native MTP proposes the first candidate, T1.
DFlash2 receives
[A, T1, MASK, MASK, MASK, MASK, MASK, MASK], where A is the last emitted token.A low-rank linear residual conditions only the T1 embedding:
E(T1) <- E(T1) + W_up W_down RMS(h_MTP)DFlash2 proposes T2โT7 in parallel; the target verifies all seven candidates using token-wise rejection sampling.
The residual uses the MTP hidden state that predicted T1. There is no SiLU between W_down and W_up. A, the six MASK embeddings, and the target-context feature path remain unchanged.
Model and Training
- Checkpoint: iter3634, completed on December 1, 2026.
- Initialization: public
z-lab/Qwen3.8-27B-DFlash2draft. - Five draft layers; hidden size 5120; intermediate size 17408.
- Target features from layers 5, 19, 33, 47, and 61.
- DFlash2 convolution modules and rank-256 candidate selector, top-k 16.
- Rank-256 linear MTP residual with zero-initialized output projection.
- BF16; 1,927,025,920 exported parameters, across 83 tensors.
- Dual-anchor layout; block size 8; seven proposed tokens per verification.
- Maximum configured context length: 32,768 tokens.
- T1 is ground truth during training and a native MTP proposal during inference.
This checkpoint differs from both Qwen3.6-27B-DMTP and Qwen3.8-next-120b-dmtp; those repositories are unchanged.
Selected Acceptance-Length Results
Comparison against the public Qwen3.8-27B DFlash2 draft, evaluated on December 1, 2026 with the same target and frozen input bank.
| Dataset category | DFlash2 | DMTP iter3634 | Relative improvement |
|---|---|---|---|
| Long-horizon | 4.1909 | 4.7961 | +14.44% |
| General | 2.9547 | 3.2199 | +8.98% |
| SWE | 4.1113 | 4.3094 | +4.82% |
| MT-Bench | 3.4179 | 3.5187 | +2.95% |
| Code | 3.4506 | 3.5040 | +1.55% |
Metric: per-verification mean acceptance length, including one target correction or bonus token: 1 + total accepted draft tokens / total verification rounds. It is not a per-request average or a task-quality score.
Conditions: TP4, concurrency 32, 64 requests per model per category, maximum 28,000 generated tokens, natural EOS, CUDA Graphs, and token-wise rejection sampling. Sampling used temperature 1, top-p 1, and top-k -1.
The evaluation snapshot extrapolated the draft context from 32,768 to 262,144 tokens for long inputs. The downloadable export retains its configured 32,768-token context. Both models completed all 64 requests in every category.
These are selected categories with positive acceptance-length gains from a nine-category evaluation, not a claim of improvement on every category. The table reports acceptance length only.
Runtime Compatibility
Use a DMTP-aware serving runtime with low-rank linear T1 residual support, native-MTP-first scheduling, the dual-anchor layout, and the matching Qwen3.8-27B target.
The reference adapter is mtp_t1_lowrank_linear_residual.py. Its down.weight and up.weight correspond to the exported conditioner tensors.
Older SiLU-residual adapters and launch instructions for the previous checkpoint are not interchangeable with this release. Do not add SiLU or reuse the old model dimensions or target-layer indices.
The previously bundled mtp_t1_residual.py and serve_dmtp.sh are legacy files for the older checkpoint. Do not use them unchanged with iter3634.
The linked inference repository provides integration references. Confirm support for mtp_t1_residual_type="low_rank_linear" and mtp_prefix_activation="none" before serving this checkpoint.
The exported tensors passed finite-value and exact serialization checks. The residual matched the training reference bitwise for batches 1, 2, and 8; the matched inference snapshot also completed the nine-category GPU evaluation.
Citation
@misc{shen2026dmtp,
title = {DMTP: A Better First Token for Block Drafting via MTP},
author = {Yuhao Shen and Jianuo Huang and Yi Zhang and Yang Xu and Hao Yu
and Xin Wang and Yucheng Li and Huiqiang Jiang and Xi Lin
and Di Liu and Jun Zhang and Tianyu Liu and Bo Zheng
and Dayiheng Liu and Jianwei Zhang and Cong Wang},
year = {2026},
eprint = {2611.37561},
archivePrefix = {arXiv}
}
- Downloads last month
- 1,198
Model tree for Piggy12/Qwen3.8-27B-DMTP
Base model
Qwen/Qwen3.8-27B