Qwen3.8-Flash-Next MTP (H4)
Accelerated Token Prediction Module
2 min readupdated
This is a drop-in multi-token prediction (MTP) head used as a draft model for speculative decoding with Qwen/Qwen3.8-Flash-Next. The module boosts text generation speed without altering the base model's responses, as the base model verifies every token. The file contains approximately 2.6 billion parameters in BF16 format. Development relies on a self-distillation method using public datasets for code, chat, and function calling.
Key features
- Generation speedup: Boosts single-request generation speed by up to 1.2x, particularly for coding and function-calling tasks.
- Self-distillation: The module was trained to predict the base model's own responses using hidden states and token distributions.
- Exact format: Contains 31 tensors in BF16 format (
h4-mtp.safetensorsfile), compatible with the standard architecture. - Open data: Training was conducted on diverse datasets, including UltraChat, OpenThoughts, ToolACE, and code snippets in popular programming languages.
What you can do
- Accelerate inference: Plug the weights in as an MTP head when running the base model in supported engines (such as SGLang) to increase tokens per second.
- Optimize code handling: Improve generation speed when solving programming tasks and editing source code.
- Speed up tool calling: Enhance model performance in external function and tool-calling scenarios.
Example
The module connects at the inference engine configuration level (such as SGLang) to work alongside the Qwen/Qwen3.8-Flash-Next base model or its quantized versions.
Read more
DetailsFile: h4-mtp.safetensors (2,607,150,848 parameters, 31 tensors)
Metrics: reaches speeds up to 415 tokens/sec for a single request in greedy mode
Limitations: not a standalone model, requires the base model and tokenizer
License: Qwen Community License 1.0










Comments