Hy4-flash NeUQI INT4 W4A8 GS128
This is Tencent's Hy4-flash vision-language model packaged for four 32 GiB AMD Instinct MI100 GPUs. The language backbone uses training-free, activation-calibrated INT4 weights. The target includes the PTQR INT8 vision encoder and all four packed INT4 Engram tables. Speculative decoding uses a separate DFly2 checkpoint. Original model · Matching DFly2 draft
The checkpoint retains the source BF16 token embedding and vocabulary head. On MI100 the loader prepares an INT8 embedding lookup and a W8A8 vocabulary projection. A four-rank native inventory found all target, vision and draft parameters in VRAM.
Model architecture
Tencent reports 155.5B backbone parameters, 63.5B Engram parameters, a 0.43B vision encoder and a 0.85B drafter. The backbone has one dense feed-forward layer followed by 41 MoE layers. Each routed layer selects 16 of 512 experts. Sliding-window and sparse latent attention share a 512-channel latent cache and 64 rotary channels. IndexPool selects four-token groups in the sparse layers. Tencent model card
Quantization details
| Surface | Checkpoint and inference |
|---|---|
| Routed experts and calibrated language projections | Packed unsigned INT4 with a separate FP16 scale and floating zero per 128 input features. The deployed kernel quantizes activations to signed INT8. |
| Language calibration | Frozen layer-by-layer forward passes on 64 real C4 and Evol-CodeAlpaca excerpts, totaling 48,521 tokens. The fit uses the measured activation second moments, with separate statistics for routed experts. Five of the 20,992 layer/expert pairs received no calibration tokens and used their layer’s pooled statistics. |
| Vision | PTQR INT8 linear projections with FP16 scales per 128 input features. The image processor and tokenizer come from the original release. |
| Engram | Four Q4_0 files totaling 33.57 GiB. A 54-byte row stores 96 features. The default storage path reads the requested n-grams from the model filesystem. |
| Runtime | The target experts, dense language weights, vision encoder and drafter reside on the GPUs. Grouped INT8 handles MLA queries and KV. FP16 handles probability/value products and floating reductions can accumulate in FP32. |
The language conversion searches the group step and floating offset against a diagonal activation-weighted error objective. The vision encoder and separate drafter use PTQR with straight-through updates to weights and scales. Weight acquisition, calibration, fitting and serialization use GPU tensors and AMD Infinity Storage on a physical NVMe workspace. NeUQI paper · Conversion and storage details
Validation
The released native recipe passed 52/52 chat checks, including all ten strict-format prompts. It identified red and blue images, two cats in a COCO photograph and the color of a four-frame video. It emitted the requested tool name and arguments. Greedy recall repeated exactly at 16,530 and 32,995 prompt tokens.
On 64 frozen calibration prefixes evaluated individually, the server agreed with the original target's top token at 49 positions. KL over the teacher's top 20 tokens and combined tail had median 0.098, mean 0.571 and p95 2.317.
A separate GPU readback compared 48 rows from each of three released matrices against the original BF16 weights. Cosine similarity was 0.99327 for layer 0’s query projection, 0.99580 for layer 1 expert 68’s down projection and 0.99568 for layer 41 expert 329’s gate/up projection.
The independent zero-shot MMLU check returned 101/114 correct answers with 1 unparseable responses. Two test questions came from each of 57 subjects. The evaluator requested one letter with thinking disabled and greedy sampling. Evaluation questions
The exported vision encoder reached cosine similarity 0.99954 and normalized mean squared error 0.000948 against the reference features on 12 held-out COCO images. Across 4,096 sampled rows from each Engram table, all packed bytes matched an independent conversion. Mean cosine similarity per table was 0.99632–0.99634.
Serving
Use the MI100 vLLM and AITER forks. In the vLLM checkout with the serving environment installed, run the following commands. The native launcher reads the checkpoints under $HOME/models and serves hy4-flash on port 8020. Native serving recipe · AITER fork
hf download voodooquant/Hy4-flash-NeUQI-INT4-W4A8-GS128 --local-dir "$HOME/models/Hy4-flash-NeUQI-W4A8"
hf download voodooquant/Hy4-flash-DFly2-PTQR-INT8-W8A8-GS128 --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. The checkpoint includes the original license and a notice identifying voodooquant's modifications. License · Notice
- Downloads last month
- 60
Model tree for voodooquant/Hy4-flash-NeUQI-INT4-W4A8-GS128
Base model
tencent/Hy4-flash