Hy4-flash-FP8: Quantization, Hardware, and Deployment Guide
A deployment-first guide to Hy4-flash-FP8, Tencent's eight-bit quantized Hunyuan instruct model. Covers what FP8 changes, the hardware assumed by official recipes, vLLM and SGLang commands, DFly2 speculative decoding, and which of the three checkpoints to choose. The guide separates confirmed specifications from reported details so readers can judge reliability.
View 5 referencesAllow the functional cookie to save your likes. Privacy details
What is Hy4-flash-FP8?
Hy4-flash-FP8 is the eight-bit quantized version of Tencent's instruction-tuned Hy4 flash model, released as open weights in November 2026. It keeps the same 220-billion-parameter mixture-of-experts design and 1M-token context as the standard instruct model, but stores weights in FP8 to reduce memory and cost.
It is a chat model, not a pretrained base. The model card applies its reasoning and tool-call examples to this checkpoint. If you need the untrained weights for fine-tuning, use Hy4-flash-base instead.
How does FP8 quantization change the model?
FP8 stores weights at eight bits instead of sixteen, roughly halving memory and enabling native acceleration on Hopper and Blackwell GPUs. Tencent says the quantization was calibrated, but it does not publish a separate FP8 accuracy table, so compare outputs against the BF16 model yourself.
The eight-bit format is listed in the model card tags alongside "instruct", "moe", and "multimodal". The benefit is deployability: the same model fits on fewer cards and runs with lower memory pressure. The tradeoff is precision, which is why the vendor recommends checking results on your own workload.
What hardware do the official recipes assume?
The published recipes assume eight GPUs with tensor parallelism set to eight and about 80 GB of memory per card. They also assume high-speed interconnects for the MoE experts. These are reference setups from Tencent, not minimum requirements, so smaller deployments need their own memory budgeting.
A GitCode deployment write-up notes that the official commands use eight-card tensor parallelism and that FP8 weights reduce the per-card load compared with BF16. Treat that as background, not as a promise that the model will run on a single consumer GPU.
How do you deploy Hy4-flash-FP8 with vLLM?
vLLM is the fastest path to an OpenAI-compatible endpoint. Tencent publishes a prebuilt image and a single Docker command that loads the FP8 weights, enables DFly2 speculative decoding, sets the sparse attention backend, and exposes the service on port 8000 under a chosen model name.
docker run --gpus all \
-p 8000:8000 \
--ipc=host \
-v ~/.cache/huggingface:/root/.cache/huggingface \
vllm/vllm-openai:hy4-flash tencent/Hy4-flash-FP8 \
--tensor-parallel-size 8 \
--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
The command comes from the family model card; the vLLM recipe documents the setup. Check the image tag before copying, since it changes between releases.
How do you deploy with SGLang?
SGLang offers a comparable route with its own prebuilt image. Its command loads the same FP8 checkpoint, sets tensor parallelism to eight, enables DFly2 speculation, and disables the CUDA graph prefill backend. Check the cookbook for the current image tag before copying commands.
docker run --gpus all \
-p 8000:8000 \
--ipc=host \
lmsysorg/sglang:hy4-flash \
sglang serve \
--trust-remote-code \
--model-path tencent/Hy4-flash-FP8 \
--tp 8 \
--cuda-graph-backend-prefill disabled \
--speculative-algorithm DFLY \
--speculative-dfly-block-size 6 \
--host 127.0.0.1 \
--port 8000
The SGLang cookbook is the source for these flags. Both frameworks serve the same weights, so the choice usually comes down to which stack your team already runs.
What does DFly2 speculative decoding do?
DFly2 is a five-layer drafter trained with AngelSpec that reuses the target model's KV cache and indexer-selected positions. Each draft token attends to at most about 2,048 keys, so its cost stays roughly constant with context length and it adds no separate KV cache.
That design is why the deployment commands include DFly2 flags. The model card describes the drafter as ready for prefill-to-decode disaggregation because it only needs one last-layer hidden state. It is a separate optimization from FP8 quantization, and the two stack together.
What speed and cost claims does Tencent make?
Tencent reports decoding speeds above 150 tokens per second and an average cost per task of RMB 0.26 in internal testing, with user satisfaction near Claude Haiku 5.5. These are vendor-run evaluations on WorkBuddy tasks, not independent benchmarks, and speeds depend on hardware and quantization.
The blind evaluation covered 85 internal users across 259 tasks in 27 categories. Treat the figures as a vendor claim with a stated method, not as a universal result. Measure latency and quality on your own prompts before committing production traffic.
Which checkpoint should you choose: FP8, instruct, or base?
Pick Hy4-flash-FP8 for serving where memory and cost matter and your GPUs support FP8. Pick the standard Hy4 flash instruct model when you want full precision or hardware without FP8 support. Pick Hy4-flash-base only for fine-tuning or research on the pretrained weights.
| Situation | Checkpoint | Reason |
|---|---|---|
| High-volume serving on modern GPUs | Hy4-flash-FP8 | Lower weight memory, FP8 acceleration |
| Full-precision quality baseline | Hy4 flash | BF16 weights, no quantization loss |
| Fine-tuning or pretraining study | Hy4-flash-base | Untrained, instruction-free weights |
| Local testing without eight GPUs | GGUF build | Smaller, easier to load |
Common questions about Hy4-flash-FP8
The questions below cover what engineers ask before deploying this checkpoint. Answers are based on official documentation read on 2 December 2026. Where a claim is Tencent's own measurement, it is labeled as such; nothing here assumes those figures transfer to your hardware.
Is Hy4-flash-FP8 a different model from Hy4 flash?
No. It is the same instruction-tuned model with weights stored in eight-bit precision. Architecture, parameter count, context length, and multimodal input are unchanged. The difference is how the weights are represented and what hardware can run them efficiently.
Does FP8 reduce quality?
Tencent does not publish a separate accuracy comparison for the FP8 checkpoint. The calibration step is meant to limit precision loss, but you should run a small evaluation set against the BF16 instruct model and compare outputs before switching a production workflow.
Can I run it on fewer than eight GPUs?
The official recipes use tensor parallelism across eight accelerators. Nothing in the documentation promises a smaller configuration, so plan to budget memory for the full model and KV cache, or use the published GGUF build for local testing.
Which license covers the FP8 weights?
The same Tencent Hy License covers the family, including the FP8 checkpoint. Read the license text linked from the model card before using the weights commercially.
Bottom line on Hy4-flash-FP8
Hy4-flash-FP8 is a deployment-oriented release: the same capable instruct model, quantized to run cheaper on modern GPUs. Its strength is the complete recipe set and speculative decoding support. Its limits are vendor-measured performance, a non-standard license, and hardware assumptions that many teams cannot meet.