# Hy4 flash: Tencent's 220B open-weight MoE that runs on 12B active parameters


Tencent released Hy4 flash as open weights on November 19, 2026: a 220B-parameter mixture-of-experts model that activates about 12B parameters per token, accepts text and images, and supports a 1M-token context window. Weights for the instruct model, an FP8 build and the pretrained base are on Hugging Face, ModelScope and GitCode under the custom Tencent Hy License. The pitch is not a leaderboard number. It is cost per completed task: Tencent claims Hy4 flash scores slightly above its Hy4 preview predecessor on its internal WorkIndex suite (42.1 versus 39.7) at one-thirteenth the average cost per task. All of these are vendor numbers, but the architecture behind them is fully documented in the model card, and the architecture is the part worth your time.

#### The architecture: three changes that cut the bill

The 42-layer backbone keeps one dense feed-forward layer and makes the other 41 MoE layers, tied together with identity Hyper-Connections over four residual streams. Versus Hy4, three changes do the cost work. First, hybrid attention: sparse attention (IndexPool, selecting up to 2,048 tokens at group level) interleaved with sliding-window attention at a 1:3 ratio, so 30 of 42 layers only ever see a 512-token causal window. Second, LatentMoE: routed experts operate in a 1,536-dimensional latent space, with 512 routed experts plus one shared expert per layer and 16 active per token. Third, Engram: learned bigram and trigram embeddings retrieved through multi-head hash lookups, bolted onto layers 1, 11, 21 and 31. Engram accounts for 63.5B of the 220B total parameters, cheap lookup tables that add knowledge capacity without adding activated compute. The combined effect, per Tencent: a KV cache one-twenty-fourth the size of Hy3's and one-sixth of Hy4's. That KV number is what makes 1M context servable at anything like a sane price.

#### The cost claims, labeled as vendor claims

Everything in this paragraph is Tencent's own measurement. On WorkIndex, an internal suite of eight evaluation sets covering slides, documents, spreadsheets, media processing and visual understanding, Hy4 flash scores 42.1 against 39.7 for Hy4 preview and 51.4 for the full Hy4. Average cost per task: one-thirteenth of Hy4 preview, one-twentieth of Hy4, and one-eighth of DeepSeek-V4.1-Flash-1017 at Max tier peak-hour pricing. In a blind evaluation with 85 internal WorkBuddy users across 259 tasks in 27 categories, Hy4 flash scored 2.79 out of 4 on user satisfaction, statistically even with Claude Haiku 5.5 at 2.81, with the lowest cost per task (RMB 0.26) and the shortest median completion time (6.7 minutes) among the models tested. Two levers behind the cost: post-training that combined self-distillation from Hy4 with reinforcement learning that cut average output tokens by 50 percent, and an inference stack of megakernels, 4-bit quantization and speculative decoding that Tencent says pushes decode past 150 tokens per second.

#### DFly2: speculative decoding built for long context

The drafter is the cleverest piece. DFly2 is a 0.85B, five-layer draft model trained with AngelSpec that reuses the target model's KV cache and its sparse indexer's selection of up to 2,048 positions, instead of maintaining its own. Three practical consequences: each draft token attends to at most about 2,000 keys regardless of context length, so speculative decoding keeps working at 1M tokens where a conventional drafter's cost would grow with context; there is zero extra KV memory for the drafter; and it is prefill-decode disaggregation ready, adding only one last-layer hidden state to the prefill-to-decode transfer. If you serve long-context models, this design is worth reading even if you never download the weights.

#### What ships and how to run it

Three weight sets (instruct, FP8, base) plus 45 GGUF community quantizations already in the model tree. Serving is through official prebuilt images: vllm/vllm-openai:hy4-flash or lmsysorg/sglang:hy4-flash, both configured for FP8 on eight GPUs with the DFly speculative path enabled, exposing an OpenAI-compatible API. Transformers support is pending in an open pull request, so local loading today means installing from that PR branch. Recommended sampling: temperature 0.9, top-p 1.0, with a reasoning_effort switch between high (thinking) and no_think (direct answers). A full fine-tuning pipeline ships in the repo with DeepSpeed, LLaMA-Factory and ms-swift recipes. One caution: the license is the custom Tencent Hy License, not Apache or MIT, so read it before commercial deployment.

#### What I could not verify

Every performance and cost number here is self-reported, and the two headline evaluations are internal: WorkIndex is undisclosed, and the blind study used Tencent's own users. The cost ratios depend on competitors' peak-hour API pricing rather than self-hosted economics. The base-model few-shot table carries an unusual vendor disclaimer that synthetic instruction data in mid-training can distort scores, and it shows a real knowledge gap (SimpleQA 37.5 versus 57.2 for Hy4), which is what you would expect when only 12B parameters activate. No independent evaluations exist yet.

#### Why this matters for builders

The open-weights race has quietly shifted metric: from biggest benchmark number to dollars per completed task on unglamorous work like slides, documents and spreadsheets. Hy4 flash is a coherent serving-engineering story aimed at exactly that metric: sparse attention to shrink the KV cache, latent-space experts to shrink activated compute, n-gram tables to add capacity for free, and a KV-sharing drafter to keep speculative decoding viable at 1M tokens. Whether the community reproduces the 150 tokens per second and the cost curve on real workloads is the follow-up worth watching.

### What is Hy4 flash?

Tencent's cost-optimized open-weight model, released November 19, 2026: a 220B-parameter MoE with about 12B active parameters per token, text and image input, and a 1M-token context window. Instruct, FP8 and base weights are on Hugging Face, ModelScope and GitCode under the custom Tencent Hy License.

### How does Hy4 flash cut inference cost?

Three architecture choices do most of the work: hybrid attention that puts 30 of 42 layers on a 512-token sliding window, LatentMoE experts operating in a lower-dimensional latent space, and Engram n-gram hash tables that add 63.5B parameters of lookup capacity without activated compute. Tencent claims the KV cache shrinks to one-sixth of Hy4's, and RL post-training cut average output tokens by half.

### What is DFly2?

Hy4 flash's built-in speculative-decoding drafter: 0.85B parameters, five layers, trained with AngelSpec. It shares the target model's KV cache and sparse index selection, so each draft token attends to about 2,000 keys regardless of context length and no extra KV memory is needed. Combined with megakernels and 4-bit quantization, Tencent claims decode speeds past 150 tokens per second.

### Is Hy4 flash really open source?

The weights are openly downloadable and the model tree already lists 45 GGUF quantizations, but the license is the custom Tencent Hy License, not a standard OSI license. Read its terms before commercial use; for many builders that distinction matters more than the download button.

### What hardware do I need to run Hy4 flash?

The official recipes target eight GPUs with the FP8 build on vLLM or SGLang prebuilt images. GGUF quantizations lower the bar for experimentation, but this is a 220B-parameter model: casual single-GPU serving is not the design point, the cost-per-task economics at scale are.

### Can I fine-tune Hy4 flash?

Yes. The repository ships a complete fine-tuning pipeline with DeepSpeed, LLaMA-Factory and ms-swift configurations, including LoRA and vision-language variants.

### Should I switch my serving stack to Hy4 flash?

If your workload is everyday productivity tasks at volume, the claimed economics justify a benchmark on your own tasks. For long-horizon software engineering, Tencent itself recommends the full Hy4 for its higher intelligence ceiling. Either way, treat every published number as vendor-reported until independent evals land.

## Sources

- Tencent Hy4 flash model card: https://huggingface.co/tencent/Hy4-flash
- Tencent launch post: https://www.tencent.com/tencent-launches-hy4-flash-to-power-high-speed-cost-efficient-ai-deployment-for-everyday-workflows/
- Tencent Hy research page: https://hunyuan.tencent.com/research/100145?langVersion=en
