Hy4-flash-NVFP4
Calibrated ModelOpt MIXED_PRECISION (NVFP4 + selective MXFP8 + BF16) quantization of tencent/Hy4-flash (revision b2498eba6a1a3f9bbcab4190bc1313a3c7010c2f), including 4-bit NVFP4_E4M3_GLOBAL host-resident Engram n-gram tables, engineered for a single 96 GiB NVIDIA Blackwell (SM120) GPU with 64 GiB+ host RAM under Flare.
Ready-to-run signed Flare runtime packages exported from this checkpoint are published at:
timbuksu/Hy4-flash-NVFP4-FLARE(multimodal vision + text, highest accuracy)timbuksu/Hy4-flash-NVFP4-1M-FLARE(1M+KV token capacity on a single 96 GiB GPU)
Quantization Summary
Total checkpoint size on disk is 122.71 GiB (89.64 GiB uncompressed GPU weights / ~85.4 GiB with CSF scales + 33.19 GiB 4-bit Engram host tables):
| Component | Precision | Method |
|---|---|---|
| 41 LatentMoE routed expert layers | NVFP4 (group_size=16, stacked 3D tensors) |
Batched block-16 Cholesky GPTQ with Four-Over-Six (1.5× headroom) |
Selective large dense projections (q_b_proj, linear_gate, o_proj) |
MXFP8 (group_size=32) |
Optimal block-scale quantization |
Sensitive dense projections (q_a_proj, kv_a_proj_with_mqa, kv_b_proj, layer-0 MLP, DFly2, SigLIP2 vision encoder, Engram dense layers, embeddings, lm_head, norms, routers) |
BF16 / FP32 | Preserved verbatim from upstream BF16 |
| 4 Engram n-gram embedding tables (host RAM) | 4-bit NVFP4_E4M3_GLOBAL |
Reduces host footprint from 60.84 GiB (FP8) to 33.19 GiB (-45.4%), fitting 100% resident in 64 GiB host RAM without disk stalls |
Quality Verification
Verified in lockstep across all 42 layers on 4 × 256 disjoint tokens (eval_hy4.jsonl, seed 999) against the upstream BF16 checkpoint:
| Comparison | KL Divergence | Top-1 Agreement | Perplexity |
|---|---|---|---|
| Full 42-layer model (selective-dense GPTQ NVFP4 vs. BF16) | 0.09434 |
91.02% |
10.789 vs. 10.909 (0.9890×) |
Engram tables FP8 → 4-bit NVFP4_E4M3_GLOBAL |
0.0560 |
93.46% |
10.82 vs. 11.14 (0.971×) |
Running with Flare (Recommended)
Use the pre-exported signed core directly on any 96 GiB SM120 GPU with ≥64 GiB host RAM:
flare run timbuksu/Hy4-flash-NVFP4-FLARE --gpus 0 --embedding-table-storage ram
Or export your own core from this checkpoint:
ignition export /path/to/Hy4-flash-NVFP4 \
--gpus 0 \
--max-concurrency 8 \
--mtp-only \
--expert-scale-compression csf \
--draft-head-quantization nvfp4 \
--lock-gpu-clocks \
--compile-workers 1
flare run /path/to/exported/core --gpus 0 --embedding-table-storage ram
Running with vLLM
Upstream Hy4-flash uses the prebuilt image vllm/vllm-openai:hy4-flash. Launching with vllm serve (adapted for TP=1 on a 96 GiB Blackwell GPU):
docker run --gpus all \
-p 8000:8000 \
--ipc=host \
-v ~/.cache/huggingface:/root/.cache/huggingface \
vllm/vllm-openai:hy4-flash timbuksu/Hy4-flash-NVFP4 \
--tensor-parallel-size 1 \
--speculative-config '{"num_speculative_tokens":5,"method":"dfly"}' \
--attention-backend FLASHMLA_SPARSE \
--tool-call-parser hy_v4 \
--reasoning-parser hy_v4 \
--enable-auto-tool-choice \
--port 8000 \
--served-model-name hy4-flash
Note: This checkpoint stores the 4 Engram n-gram tables in Flare's 4-bit
NVFP4_E4M3_GLOBALpacked format (33.19 GiB) and uses ModelOptMIXED_PRECISIONstacked-3DNVFP4LatentMoE weights; it was validated end-to-end under Flare (b12xW4A16 decode / W4A4 prefill + CSF scales). Direct loading in vLLM requires a vLLM build supporting both ModelOpt mixed-precision stacked NVFP4 LatentMoE andNVFP4_E4M3_GLOBALEngram tables.
License
Governed by the Tencent Hy License, Version 1.0 (LICENSE), matching tencent/Hy4-flash.
- Downloads last month
- 6