Hy4-flash-DFly2 INT8 PTQR

This is the five-layer DFly2 speculative drafter for the matching Hy4-flash NeUQI target. It requires the target's token embedding, vocabulary head, hidden state, sparse indices and five MLA caches. Start it through the target recipe. Matching target · Original DFly2

Quantization details

Parameter Value
Model Tencent Hy4-flash DFly2, five layers and a hidden-correction network
Projection weights Signed INT8, symmetric, with a separate FP16 scale per 128 input channels
Deployed projection inputs Signed INT8 with dynamic per-token, per-group scales
Attention Grouped INT8 MLA query and KV, with FP16 probability/value products
Target context Shared KV from target layers 25, 29, 33, 37 and 41, numbered from zero
Training objective Distillation from the original drafter's corrected next-token distributions on real target states

PTQR optimizes projection weights and scales through the rounding operation used by the deployed format. Training uses a frozen teacher drafter with the original target's prefix states. It samples previous draft tokens so the hidden-correction network sees the history used at inference.

The upstream fixed-width decoder skips the adaptive confidence head. The checkpoint preserves its two original tensors.

Validation

The selected checkpoint is step 60 of a 60-step PTQR run on 52 training sequences, with 12 separate validation sequences. On the held-out sampled draft trajectories, mean KL from the original drafter fell from 0.004551 to 0.003845. Greedy agreement with the original drafter was 79/84 after training and 81/84 before training.

Against the target, on the same 84 teacher-forced positions, the original drafter matched 40 target argmaxes and the PTQR drafter matched 41. At temperature 1, target-to-draft mean KL was 2.3275 for the original and 2.3271 for PTQR. Mean total variation was 0.5735 and 0.5731, respectively. Deployment acceptance is measured separately on real generated requests. Training and reference metrics

The four-MI100 recipe uses 7 proposals with latent scale group 128 and rotary group 64. Eight distinct approximately 2k-token code-review prompts generated 256 output tokens each at temperature 1.0, top-p 0.95 and top-k 20. Across three runs the median was 2.57 emitted tokens per round and 22.4% of proposals accepted.

On the eight-stream tool workload with a warmed 16k prefix, the median full-overlap decode rate was 109.1 aggregate output tok/s at 2.57 emitted tokens per round and 188.2 ms per round. All four MI100s were capped at 105 W.

In the native PCIe run the same warm eight-stream workload reached 104.4 aggregate output tok/s with 2.57 emitted tokens per round. For the PCIe measurements, RCCL used host-staged transfers across the four cards. The test host had XGMI bridges installed. Direct PCIe peer transfers on an unbridged system were not measured.

Serving

Download this model alongside the matching target. The target's launcher supplies the dfly speculation method, the draft directory and the grouped INT8 KV settings. DRAFT_MODEL_DIR overrides the default local path. MI100 serving recipe

hf download voodooquant/Hy4-flash-INT4-NeUQI --local-dir "$HOME/models/Hy4-flash-NeUQI-W4A8"
hf download voodooquant/Hy4-flash-DFly2-INT8-PTQR --local-dir "$HOME/models/Hy4-flash-DFly2-PTQR-INT8"
scripts/serve_recipe_hy4.sh start

License

Tencent Hy License, Version 1.0 applies to the weights. License · Notice

Downloads last month
85
Safetensors
Model size
0.8B params
Tensor type
BF16
·
F16
·
I8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for voodooquant/Hy4-flash-DFly2-INT8-PTQR

Quantized
(75)
this model