GLM-5.3-Flash DFly2 drafter (GGUF)
| Model version | DFly2 drafter, block size 6, published by AngelSlim (Tencent), last updated 2026-11-26 |
| Source checkpoint | AngelSlim/GLM-5.3-Flash-DFly2-B6, commit d714f8ed |
| Target model | zai-org/GLM-5.3-Flash |
No runtime loads this file yet. Neither mx-llama.cpp nor llmx runs the GLM-5.3-Flash target today. DFly2 drafting support is being built for DeepSeek-V4.1-Flash first; this file is published so the conversion is available once a runtime supports the target.
AngelSlim/GLM-5.3-Flash-DFly2-B6 converted to GGUF as a speculative-decoding draft model for GLM-5.3-Flash. It is not a standalone model: it drafts tokens for the target and is verified by it. AngelSlim's original model card follows below.
Files
| file | size | notes |
|---|---|---|
GLM-5.3-Flash-DFly2-Q8_0.gguf |
11.00 GB (10.25 GiB) | experts and dense linears Q8_0; DFly2 drafter, block size 6, not a standalone model |
GLM-5.3-Flash-DFly2-BF16.gguf |
20.69 GB (19.27 GiB) | experts and dense linears BF16 as in the checkpoint (lossless) |
sha256:
a7420a7aef3016023c25126e76252b44920be0f9f9856ea8f56a5a0a76e7dd41 GLM-5.3-Flash-DFly2-Q8_0.gguf
2535ec0cfcceef978916896d795d20fbb8fb2c0992220d3add45c88f79e46775 GLM-5.3-Flash-DFly2-BF16.gguf
The drafter has 3 MoE layers (128 routed experts each, 3 active) paired with target layers 35, 39 and 43. It keeps no KV cache of its own and reads the target's KV at the positions the target's indexer picked, and a 5-step correction head fills the block slots. It is used with the target's own GGUF, zai-org/GLM-5.3-Flash (none is published alongside this repository), and shares its embedding and output head (they are not stored in the drafter file).
Running it
No released runtime loads this file yet, so there is no working command line. The block below is a placeholder for the expected flag style, which follows the other draft files and is not final.
llama-server -m <target main GGUF> -md GLM-5.3-Flash-DFly2-Q8_0.gguf --spec-type <dfly2, not final> ...
Quantization
In the -Q8_0 file the routed experts and every dense linear (attention, shared expert, fusion and correction projections) are stored Q8_0, a lossy step for the drafter's numerics only: the target verifies every token, so the output does not change. In the -BF16 file they keep the checkpoint's BF16 bit for bit. The router weight stays F32 or BF16 as in the checkpoint, and corr.block_gate stays BF16. Norms, attention and block sinks, block bias tables and every other vector are F32. The fused gate_up_proj experts are split into gate and up halves (gate first). The embedding and output head are the target's and are absent. The checkpoint has no tokenizer, so the target's (zai-org/GLM-5.3-Flash) is stored as the GGUF vocabulary.
Checked: the 90 GGUF tensors account for all 1233 source tensors (per-expert tensors merged) with the planned type per role, and the sampled BF16 payloads of the -BF16 file are byte-identical to the checkpoint. Converted with the feat/dfly2-convert branch of the mx-llama.cpp converter. No runtime reads these tensor names yet, so they may change with runtime support.
No weights were retrained, fine-tuned or otherwise altered.
License
Apache-2.0, inherited from the AngelSlim checkpoint. A copy is included in this repository as LICENSE, and attribution to AngelSlim (Tencent) is kept. The target model is subject to its own license.
Original model card
Reproduced from AngelSlim/GLM-5.3-Flash-DFly2-B6, unchanged except that its relative links now point to that repository and its text is written in ASCII.
A unified training framework for MTP and block-parallel speculative decoding.
Technical Report | DFly2 Paper | Documentation | Hugging Face | GitHub
GLM-5.3-Flash DFly2 Drafter (Block Size 6)
Model Summary
This repository contains a DFly2 speculative-decoding drafter for GLM-5.3-Flash, trained with AngelSpec. DFly2 is a block-parallel drafter for natively sparse targets: each of its three draft layers is paired with one of the target's DeepSeek Sparse Attention (DSA) layers and reads the KV that layer has already cached (KV sharing), at the positions that layer's indexer has already selected (index sharing). The drafter keeps no KV cache of its own, runs no indexer, and reads a fixed number of positions from anywhere in the context.
It should be deployed together with the GLM-5.3-Flash target model.
- Target model: GLM-5.3-Flash
- Drafter type: DFly2
- Block size: 6 (one anchor token + 5 draft tokens)
- Training framework: AngelSpec
- Serving backend: vLLM speculative decoding (support in progress)
Highlights
- No KV cache of its own. A three-layer drafter that kept a full cache of its own would add 3.0 KiB per token on top of the target's 11.7 KiB, raising the per-token KV to 1.26x. DFly2 adds none, so the same KV pool holds 1.19x as many requests at 32K tokens. It needs no place on the prefill instances under prefill-decode disaggregation, and every prefix-cache hit of the target is also a drafter hit.
- Fixed-size, query-aware reads. Each draft step reads the positions the target's own sparse indexer selected for the token before the block. They can lie anywhere in the context, their number does not grow with it, and the drafter runs no indexer of its own.
- Higher acceptance on every benchmark. Against DFlash and DSpark trained on the same recipe and data, DFly2 accepts more tokens per step on every benchmark below, at both temperatures.
- Generalizes past its 32K training length. On the agentic sets, whose prompts mostly run longer, its average accepted length stays close to its general-purpose average (4.03 / 3.68 vs. 3.96 / 3.69 at T = 0 / 1), while DSpark's drops from 3.68 / 3.35 to 3.10 / 2.99.
Model Details
GLM-5.3-Flash interleaves 11 DSA layers with 34 linear-attention layers. DFly2 pairs with three of its DSA layers.
| Item | Value |
|---|---|
| Draft layers | 3 MoE layers, 128 routed experts each |
| Paired target layers (KV + index sharing) | 35, 39, 43 |
| Context read per draft step | Target's top-2048 selection at the row before the anchor, made over groups of adjacent positions |
| Initialization | Attention copied from the paired target layer; 128 of that layer's routed experts drawn at random, with their router rows and biases |
| Last-layer hidden injection | Target's last-layer hidden state, fused with the anchor embedding and gated into the anchor slot |
| Intra-block correction | Hidden correction plus a context attention and a gated prefix attention, slot by slot |
| Embedding / LM head | Shared with the target (not stored in this repository) |
| Precision | BF16 |
Training Data
The drafter is trained on DFly-SFT, a general-purpose instruction-tuning corpus of 989,861 conversations and 7.42B tokens, all from public datasets. The conversations fall into ten capability domains, labeled by their source where it gives a label and by an LLM annotator otherwise. Samples are capped at 32,768 tokens and each domain is filled with its longest samples first, which makes the mixture long-form and reasoning-heavy: 61.6% of samples carry an explicit reasoning trace and 34.9% run past 8K tokens. The corpus is deduplicated globally and decontaminated against the twelve DeepSpec evaluation sets with an n-gram overlap test.
| Data type | Mix | Samples | Tokens | Median len. | Think |
|---|---|---|---|---|---|
| Math (advanced) | 19.2% | 190,000 | 2.90B | 13,982 | 98.6% |
| Code (competitive) | 11.1% | 110,000 | 1.96B | 18,175 | 94.7% |
| Code (engineering) | 9.6% | 95,479 | 0.56B | 4,064 | 46.9% |
| Knowledge & STEM | 15.2% | 150,000 | 0.48B | 2,075 | 51.3% |
| Instruction following | 7.1% | 70,000 | 0.47B | 5,751 | 85.7% |
| Code (function-level) | 11.1% | 110,000 | 0.41B | 686 | 37.9% |
| Writing | 10.1% | 100,000 | 0.24B | 1,425 | 40.1% |
| Text transformation | 6.1% | 60,000 | 0.19B | 1,972 | 37.4% |
| Logical reasoning | 2.5% | 24,382 | 0.11B | 1,461 | 65.0% |
| Math (word problems) | 8.1% | 80,000 | 0.09B | 477 | 20.2% |
| Total | 100.0% | 989,861 | 7.42B | 3,621 | 61.6% |
Mix is the share of samples. Token counts and lengths use the GLM-5.3-Flash tokenizer, and Think is the fraction of samples whose assistant turns carry an explicit reasoning trace.
Per-source compositionEach domain's share is given on its first row, and Mix is each source's share of the full 989,861-sample corpus.
| Data type | Dataset | Mix |
|---|---|---|
| Math (advanced), 19.2% | OpenMathReasoning | 9.68% |
| Dolci-Think-SFT-32B | 3.29% | |
| Step-3.5-Flash-SFT | 2.02% | |
| Nemotron-Math-v4 | 2.02% | |
| Nemotron-Math-v2 | 1.01% | |
| SYNTHETIC-2 (math) | 0.81% | |
| WildChat-4.8M | 0.20% | |
| Nemotron-Chat-v3 | 0.10% | |
| Arena-Human-Pref-140k | 0.06% | |
| Code (competitive), 11.1% | Nemotron-CompProg (Python) | 4.80% |
| Dolci-Think-SFT-32B | 1.91% | |
| CodeForces-CoTs | 1.62% | |
| Step-3.5-Flash-SFT | 1.41% | |
| SYNTHETIC-2 (code) | 0.71% | |
| Nemotron-CompProg (C++) | 0.51% | |
| WildChat-4.8M | 0.16% | |
| Code (engineering), 9.6% | WildChat-4.8M | 4.74% |
| Step-3.5-Flash-SFT | 3.96% | |
| Nemotron-Chat-v3 | 0.59% | |
| Arena-Human-Pref-140k | 0.36% | |
| Knowledge & STEM, 15.2% | Step-3.5-Flash-SFT | 5.05% |
| WildChat-4.8M | 4.83% | |
| Arena-Human-Pref-140k | 2.53% | |
| Nemotron-Chat-v3 | 2.02% | |
| Dolci-Think-SFT-32B | 0.72% | |
| Instruction following, 7.1% | Dolci-Think-SFT-32B | 3.54% |
| Nemotron-IF-v3 | 1.21% | |
| Step-3.5-Flash-SFT | 0.81% | |
| SYNTHETIC-2 (format) | 0.51% | |
| WildChat-4.8M | 0.51% | |
| AutoIF-61k | 0.51% | |
| Code (function-level), 11.1% | OpenCodeInstruct | 6.30% |
| Dolci-Think-SFT-32B | 3.20% | |
| Step-3.5-Flash-SFT | 0.90% | |
| WildChat-4.8M | 0.56% | |
| Nemotron-Chat-v3 | 0.13% | |
| Arena-Human-Pref-140k | 0.03% | |
| Writing, 10.1% | WildChat-4.8M | 5.59% |
| Step-3.5-Flash-SFT | 3.00% | |
| Nemotron-Chat-v3 | 1.08% | |
| Arena-Human-Pref-140k | 0.25% | |
| Charcard-Roleplay | 0.18% | |
| Text transformation, 6.1% | WildChat-4.8M | 3.59% |
| Step-3.5-Flash-SFT | 1.82% | |
| Nemotron-Chat-v3 | 0.45% | |
| Arena-Human-Pref-140k | 0.20% | |
| Logical reasoning, 2.5% | UltraInteract-SFT | 0.62% |
| SYNTHETIC-2 (output-pred.) | 0.54% | |
| R1-Brain-Teasers | 0.38% | |
| Step-3.5-Flash-SFT | 0.29% | |
| SYNTHETIC-2 (reasoning-gym) | 0.24% | |
| Nemotron-Chat-v3 | 0.22% | |
| WildChat-4.8M | 0.13% | |
| Arena-Human-Pref-140k | 0.04% | |
| Math (word problems), 8.1% | Orca-Math-200k | 5.78% |
| Step-3.5-Flash-SFT | 1.42% | |
| WildChat-4.8M | 0.61% | |
| Nemotron-Chat-v3 | 0.23% | |
| Arena-Human-Pref-140k | 0.04% |
Training Recipe
The same recipe trains DFly2 and every baseline below, on all three targets of the technical report.
| Hyperparameter | Value |
|---|---|
| Epochs | 3 |
| Global batch size | 256 |
| Sequence length | 32K |
| Optimizer | Muon |
| Objective | Per-slot LK distillation loss (KL + TV) against the target, weighted by D-PACE |
| Draft tokens per block (gamma) | 5 |
Only the drafter is trained. At serving time the selection comes from the target's verify pass. Training has no verify pass, so it recomputes the selection with a frozen copy of each paired layer's indexer, and a draft layer sees the same latents and positions in training as at serving.
Evaluation: Accepted Length
Mean accepted length tau, counting the bonus token, in the 2K chat setting (thinking disabled, at most 2048 generated tokens). Each cell gives T = 0 / T = 1, and bold marks the best per column and temperature. Accepted length is measured on a single TP8 engine on NVIDIA H20 GPUs, as the mean of the last three runs.
All baselines are trained by us with the same recipe, data and number of steps as DFly2, on the same three-layer MoE stack (within 2% of its size). DFlash keeps its own KV cache over the whole context, DSpark bounds its own cache with a 128-token sliding window, and DFlash-W (W for window) is DFlash held to that same window. All methods draft a block of 5 tokens on vLLM.
General-purpose benchmarks
GSM8K, MATH-500 (MATH), AIME25, MBPP, HumanEval, LiveCodeBench (LCB) and MT-Bench, seven of the twelve evaluation sets that ship with DeepSpec.
| Drafter | GSM8K | MATH | AIME25 | MBPP | HumanEval | LCB | MT-Bench | Avg. |
|---|---|---|---|---|---|---|---|---|
| DFlash | 3.93 / 3.65 | 3.73 / 3.29 | 3.25 / 2.77 | 3.76 / 3.38 | 3.84 / 3.44 | 2.91 / 2.64 | 2.58 / 2.34 | 3.43 / 3.07 |
| DFlash-W | 4.00 / 3.73 | 3.83 / 3.38 | 3.36 / 2.92 | 3.79 / 3.43 | 3.74 / 3.40 | 2.99 / 2.73 | 2.66 / 2.35 | 3.48 / 3.13 |
| DSpark | 4.23 / 3.97 | 4.06 / 3.61 | 3.58 / 3.17 | 4.02 / 3.66 | 3.91 / 3.62 | 3.16 / 2.92 | 2.80 / 2.50 | 3.68 / 3.35 |
| DFly2 | 4.53 / 4.37 | 4.31 / 4.00 | 3.88 / 3.51 | 4.24 / 4.01 | 4.36 / 4.03 | 3.41 / 3.24 | 2.96 / 2.72 | 3.96 / 3.69 |
Long-context and agentic benchmarks
Long context: LongSpec 32K, CodeSpan 64K and LongSWE-Bench 128K (LSWE 128K). Agentic: AgentLongBench (ALB), MemoryAgentBench (MemAgent), the long-context multi-turn category of BFCL-v3, and LongSWE-Bench issues at 64K (SWE 64K). Long Avg. and Agen. Avg. average the three long-context and four agentic sets. Every drafter is trained at 32K.
| Drafter | LongSpec 32K | CodeSpan 64K | LSWE 128K | ALB | MemAgent | BFCL-v3 | SWE 64K | Long Avg. | Agen. Avg. |
|---|---|---|---|---|---|---|---|---|---|
| DFlash | 2.55 / 2.17 | 3.12 / 2.48 | 2.92 / 2.64 | 3.12 / 1.92 | 2.79 / 2.50 | 2.99 / 2.75 | 2.91 / 2.60 | 2.86 / 2.43 | 2.95 / 2.44 |
| DFlash-W | 2.69 / 2.23 | 3.22 / 2.60 | 2.97 / 2.65 | 3.50 / 3.45 | 2.68 / 2.48 | 3.00 / 2.73 | 2.86 / 2.61 | 2.96 / 2.50 | 3.01 / 2.82 |
| DSpark | 2.75 / 2.37 | 3.32 / 2.77 | 3.08 / 2.79 | 3.53 / 3.73 | 2.74 / 2.58 | 3.15 / 2.91 | 2.98 / 2.74 | 3.05 / 2.64 | 3.10 / 2.99 |
| DFly2 | 3.31 / 2.92 | 4.40 / 3.63 | 3.82 / 3.52 | 5.49 / 4.77 | 3.30 / 3.12 | 3.61 / 3.35 | 3.73 / 3.48 | 3.85 / 3.36 | 4.03 / 3.68 |
Evaluation: Speedup
Speedup over the target alone on NVIDIA H20 GPUs, greedy, at a concurrency of one, with prefill and decode on separate TP8 instances. Each cell gives decoding / end-to-end speedup, the latter including prefill, and bold marks the best per column and speedup. DFlash-W reads a window at decode but still builds a full cache at prefill. DFly2 builds no cache of its own at prefill and leaves prefill speed unaffected.
General-purpose benchmarks
| Drafter | GSM8K | MATH | AIME25 | MBPP | HumanEval | LCB | MT-Bench | Avg. |
|---|---|---|---|---|---|---|---|---|
| DFlash | 2.69x / 2.31x | 2.54x / 2.42x | 2.20x / 2.17x | 2.57x / 2.44x | 2.59x / 2.50x | 1.98x / 1.89x | 1.79x / 1.77x | 2.34x / 2.21x |
| DFlash-W | 2.77x / 2.39x | 2.62x / 2.50x | 2.26x / 2.22x | 2.63x / 2.49x | 2.56x / 2.47x | 2.04x / 1.98x | 1.83x / 1.80x | 2.39x / 2.26x |
| DSpark | 2.85x / 2.42x | 2.67x / 2.55x | 2.32x / 2.28x | 2.71x / 2.57x | 2.62x / 2.54x | 2.10x / 2.04x | 1.85x / 1.82x | 2.45x / 2.32x |
| DFly2 | 2.90x / 2.40x | 2.71x / 2.56x | 2.43x / 2.39x | 2.71x / 2.56x | 2.74x / 2.64x | 2.16x / 2.10x | 1.88x / 1.85x | 2.50x / 2.36x |
Long-context and agentic benchmarks
| Drafter | LongSpec 32K | CodeSpan 64K | LSWE 128K | ALB | MemAgent | BFCL-v3 | SWE 64K | Long Avg. | Agen. Avg. |
|---|---|---|---|---|---|---|---|---|---|
| DFlash | 1.70x / 1.47x | 2.03x / 1.46x | 1.89x / 1.28x | 2.15x / 1.09x | 1.83x / 1.01x | 2.02x / 1.16x | 1.88x / 1.36x | 1.87x / 1.40x | 1.97x / 1.15x |
| DFlash-W | 1.86x / 1.56x | 2.12x / 1.48x | 2.04x / 1.28x | 2.45x / 1.07x | 1.92x / 0.97x | 2.08x / 1.09x | 1.99x / 1.50x | 2.00x / 1.44x | 2.11x / 1.16x |
| DSpark | 1.84x / 1.53x | 2.24x / 1.58x | 2.12x / 1.38x | 2.48x / 1.08x | 1.90x / 0.97x | 2.17x / 1.13x | 2.02x / 1.49x | 2.07x / 1.49x | 2.14x / 1.17x |
| DFly2 | 2.14x / 1.75x | 2.82x / 1.79x | 2.40x / 1.39x | 3.57x / 1.10x | 2.20x / 0.98x | 2.34x / 1.17x | 2.35x / 1.62x | 2.45x / 1.64x | 2.61x / 1.22x |
Deployment
vLLM: support in progress. Serving instructions will be added here once DFly2 support is available in vLLM. The drafter is deployed together with the GLM-5.3-Flash target model and drafts 5 tokens per step (block size 6).
License
This drafter is released under the Apache-2.0 License. The GLM-5.3-Flash target model is subject to its own license.
Technical Report
DFly2 and the results above are described in the DFly2 technical report:
DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target's Sparsity
arXiv: https://arxiv.org/abs/2611.34776
The drafter is trained with AngelSpec. For the training framework, see:
AngelSpec: Towards Real-World High Performance Inference with Speculative Decoding
arXiv: https://arxiv.org/abs/2607.25852