A 4-bit weight quantisation of the DFlash 2 draft model
z-lab/Qwen3.8-27B-DFlash2
(revision 50307d4c). It drafts for Qwen/Qwen3.8-27B and was
calibrated against the int4 target
urakozz/Qwen3.8-27B-W4A16-g64-AutoRound-GPTQ.
It is not a standalone language model. Like the original, it runs inside a speculative decoding server, which supplies the target's embedding and head and the hidden states it drafts from. Speculative decoding stays lossless with any drafter: the target verifies every token, so a quantised drafter can only change how many tokens are accepted per step, never the output.
| bf16 original | this model | |
|---|---|---|
| file size | 3.85 GB | 1.22 GB |
| linear weights | bf16 | int4, group 64, symmetric |
fc, every layer's q/k/v/o_proj and gate/up/down_proj, the
attention_conv / mlp_conv kernel_projection, and candidate_selector.hidden_projection - 47 linears.hidden_norm, norm, input/post_attention_layernorm,
q_norm, k_norm), the attention_conv / mlp_conv base_kernel, and the candidate_selector codebooks.Packing is auto_round:auto_gptq: w = (q - 8) * scale, fp16 scales, qzeros 0x77777777, no act-order.
AutoRound 0.17.0, scheme W4A16, group size 64, symmetric, 200 tuning
iterations, 128 samples, batch 8, learning rate 5e-3, min-max tuning on, seed 42. The full call and settings are in
dflash_recipe.json.
Calibration runs the drafter's own non-causal block forward (block size 8, 32 blocks per sample, 2304 context rows), fed with the int4 target's hidden states at layers 5, 19, 33, 47 and 61. That way the drafter is tuned on the inputs it sees when it drafts for the int4 target. The calibration data is 69 requests from recorded agentic-coding sessions (opencode); a separate session recording was held out.
The export was checked against the source: every listed linear is packed, and every tensor kept at source precision is bitwise identical to the original.
This drafter was made for intel-arc-inference-server, our inference engine for Intel Arc Pro B70 (Battlemage, Xe2) cards. The engine runs its own Level Zero / OpenCL kernels: int4 small-batch GEMMs for the drafter's linears, a DPAS (matrix unit) attention for the draft block, and a cheap candidate pre-selection before the exact re-rank. Here the int4 drafter moves less than a third of the bf16 drafter's bytes per draft pass, which matters because the draft pass is memory-bound on the card. The engine serves the drafter beside the int4 target on one 32 GB card, with about 246k tokens of context when the KV cache is int8, or across two cards with the drafter on the second.
Support for this packed checkpoint is being added to the engine. Until it lands, the engine serves the bf16 original, quantised to int8 at load. Once it lands, the command is:
uvx --from huggingface_hub hf download urakozz/Qwen3.8-27B-W4A16-g64-AutoRound-GPTQ
uvx --from huggingface_hub hf download urakozz/Qwen3.8-27B-DFlash2-W4A16-g64-AutoRound
./build/src/cli/b70-serve urakozz/Qwen3.8-27B-W4A16-g64-AutoRound-GPTQ --prefix-split-last \
--spec dflash --draft-model urakozz/Qwen3.8-27B-DFlash2-W4A16-g64-AutoRound
The quantisation and export are checked. Acceptance rates when serving with this drafter have not been measured yet. Loading it in SGLang or vLLM's DFlash support is untested.