Skip to main content
MindStudio
Pricing
BlogAbout
My Workspace
Tencent Hy4-FlashHy4 flash benchmarksHunyuan open weight model

Tencent Hy4-Flash: Specs, Benchmarks, and How to Run It

Tencent's Hy4-Flash packs 220B parameters into a 12B-active MoE model with 1M context. Here's what it costs and how it performs.

Edited by Luis Chavez-Mattos, Director of Product RSS
Tencent Hy4-Flash: Specs, Benchmarks, and How to Run It

What is Tencent Hy4-Flash?

Hy4-Flash is an open-weight mixture-of-experts (MoE) language model from Tencent’s Hunyuan team, built to deliver most of the usefulness of its larger sibling Hy4 at a fraction of the cost. It has 220 billion total parameters (including a 63.5B-parameter “Engram” embedding component) but activates only about 12 billion parameters per token. It handles text and image input, outputs text, and supports a context window up to 1,048,576 tokens. Tencent positions it as the cost-efficient option for everyday agentic and productivity work, reserving the full Hy4 model for harder, longer-horizon tasks.

TL;DR

  • Hy4-Flash activates roughly 12B parameters per token out of 220B total, which is why it runs cheaper and faster than dense models of comparable total size.
  • The architecture combines three new tricks: hybrid sparse/sliding-window attention, a LatentMoE routing scheme with 512 routed experts (16 active per token), and an n-gram “Engram” embedding table that adds learned bigram and trigram lookups to the backbone.
  • On Tencent’s internal WorkIndex benchmark, Hy4-Flash scores 42.1 versus 39.7 for Hy4 preview, while costing a small fraction per task of either Hy4 preview or full Hy4.
  • A built-in speculative decoding drafter called DFly2 (0.85B parameters) helps push decoding speed past 150 tokens per second by reusing the main model’s KV cache and sparse indices.
  • In a blind user evaluation against Claude Haiku 5.5, Hy4-Flash scored 2.79 out of 4 satisfaction versus 2.81 for Haiku, with a lower cost per task and a faster median completion time.
  • On standard few-shot academic benchmarks like MMLU and SuperGPQA, Hy4-Flash trails full Hy4 and DeepSeek-V4-Pro-Base, which is expected given its much smaller active parameter count.
  • The model ships as Hy4-Flash, an FP8-quantized variant, and a pretrained base model, all released on Hugging Face, ModelScope, and GitCode under Tencent’s own Hy license.

›Build a purchase approval app for 2,000 store managers

One prompt. Role-based access, audit trail and SSO come built in.

How is Hy4-Flash architected differently from Hy4?

Hy4-Flash’s 42-layer backbone pairs one dense feed-forward layer with 41 MoE layers, connected through identity Hyper-Connections (iHC) that run four parallel residual streams instead of one. Three changes separate it from the full Hy4 model.

First, hybrid attention. Instead of using one attention mechanism throughout, Hy4-Flash interleaves sparse attention (called IndexPool) with sliding-window attention (SWA) at roughly a 1:3 ratio. The backbone layer pattern runs two sparse layers, then repeats a block of three sliding-window layers followed by one sparse layer, ten times over. Sparse layers use group-level token selection capped at 2,048 tokens, while sliding-window layers look at a fixed 512-token causal window. Both use Multi-head Latent Attention (MLA) to compress the key-value cache.

Second, LatentMoE. The routed experts operate in a compressed latent space (1,536 dimensions) rather than the full hidden size. Each token activates 16 of 512 routed experts plus one always-on shared expert, which keeps compute low while still giving the router a large pool to choose from.

Third, Engram, the n-gram embedding system. The backbone is augmented at four specific layers (indices 1, 11, 21, and 31) with learned bigram and trigram representations retrieved through multi-head hash lookups, eight hash heads per n-gram order, each drawing from a 10.3-million-entry vocabulary. This embedding table alone accounts for 63.4 billion of the model’s parameters, explaining why the “total parameter” count (220B) is so much larger than the active compute path would suggest.

Tencent says this combination shrinks the KV cache to 1/24th the size used by Hy3 and 1/6th the size used by Hy4, which is the main lever behind Hy4-Flash’s lower serving cost.

How does Hy4-Flash perform on benchmarks?

On few-shot pretrained benchmarks, Hy4-Flash Base generally sits a few points behind full Hy4 Base and DeepSeek-V4-Pro-Base, which tracks with its smaller active parameter budget. On MMLU it scores 88.7 versus 91.6 for Hy4 Base and 91.1 for DeepSeek-V4-Pro-Base. On SuperGPQA it scores 57.8 against Hy4’s 62.7. The gap widens on SimpleQA, where Hy4-Flash scores 37.5 versus Hy4’s 57.2, suggesting more factual recall degradation at the smaller active size. On math benchmarks like U-MATH, Hy4-Flash (69.8) actually edges out Hy4 preview-tier comparisons and beats DeepSeek-V4-flash-Base (57.4), though it falls short of DeepSeek-V4-Pro-Base (64.8… actually below it on OCW Courses specifically).

Where Hy4-Flash is designed to stand out is cost-adjusted task performance rather than raw leaderboard scores. On Tencent’s internal WorkIndex benchmark, which covers eight task categories including slide creation, document editing, spreadsheet repair, and visual understanding, Hy4-Flash scores 42.1, ahead of Hy4 preview’s 39.7, while its average cost per task is reported as 1/13th of Hy4 preview, 1/20th of full Hy4, and 1/8th of DeepSeek-V4.1-Flash-1017 at peak-hour Max-tier pricing. Full Hy4 still scores highest overall on WorkIndex at 51.4, which is why Tencent recommends it for complex, long-horizon software engineering work rather than Hy4-Flash.

Is Hy4-Flash worth using over bigger models?

Workers wait
for instructions.

Contractors deliver
the outcome.

Describe what you need. Remy builds it, secures it and hands it over running.

For everyday agentic tasks like deep search, document processing, slide generation, simple frontend demos, and computer-use automation, Tencent’s own data suggests Hy4-Flash is a reasonable tradeoff: close-to-frontier user satisfaction at a much lower cost. In a blind evaluation run across 85 internal users and 259 tasks spanning 27 categories, Hy4-Flash scored 2.79 out of 4 on user satisfaction, nearly matching Claude Haiku 5.5’s 2.81, while completing tasks in a median of 6.7 minutes at a cost of RMB 0.26 per task, the lowest cost and shortest completion time among the models in that comparison.

That said, it is not a universal upgrade. Hy4-Flash trails full Hy4 by a wide margin on knowledge-heavy and factual-recall benchmarks, and Tencent explicitly steers users toward full Hy4 for complex, multi-step engineering tasks where raw intelligence ceiling matters more than cost. Teams running high-volume, moderately complex agent workloads are the obvious fit; teams doing deep technical reasoning at scale may still want the larger model.

How do you run Hy4-Flash locally or via API?

Three variants are available: the instruction-tuned Hy4-Flash, an FP8-quantized version, and Hy4-Flash-base, the raw pretrained model without instruction tuning. All three are hosted on Hugging Face, ModelScope, and GitCode under Tencent’s Hy license, and a GGUF conversion is also available for use with llama.cpp-style runtimes.

For local inference through Transformers, support currently requires installing from a specific pull request branch rather than the stable release, since merged support was still pending at launch. The model loads through AutoModelForImageTextToText since it accepts both text and image input. Instruct models support a reasoning_effort parameter with two modes: "high" (thinking enabled, the default) and "no_think" for direct responses without a visible reasoning trace. Tencent recommends sampling with temperature=0.9 and top_p=1.0.

For production serving, Tencent recommends pairing the model with DFly2, its built-in speculative decoding drafter, and combining megakernels with 4-bit quantization to hit decoding speeds above 150 tokens per second. The model card also documents deployment paths through vLLM and SGLang, along with finetuning recipes for both full fine-tuning and LoRA, using either DeepSpeed, LLaMA-Factory, or ms-swift as the training backend.

Frequently Asked Questions

How many parameters does Hy4-Flash actually use per token?

Hy4-Flash has 220 billion total parameters but activates only about 12 billion per token (11.3B text plus 0.43B vision), which is what makes it cheap to serve despite the large total parameter count.

What is the Engram component in Hy4-Flash?

Engram is a 63.5-billion-parameter n-gram embedding system woven into four specific backbone layers. It retrieves learned bigram and trigram representations through hash-based lookups, adding pattern recognition without routing through the full MoE compute path.

How does Hy4-Flash compare to DeepSeek-V4 models?

On few-shot academic benchmarks, Hy4-Flash generally scores below DeepSeek-V4-Pro-Base but competitively with or above DeepSeek-V4-flash-Base on several tasks, including math benchmarks like U-MATH. On Tencent’s cost-adjusted internal benchmarks, Hy4-Flash reports roughly 1/8th the per-task cost of DeepSeek-V4.1-Flash-1017 at peak pricing.

Can Hy4-Flash handle a full 1 million token context in practice?

The model card lists 1,048,576 tokens as its maximum context length, enabled partly by the hybrid attention design and reduced KV cache size, though actual usable context in production will depend on the inference setup and hardware.

What license covers Hy4-Flash?

It’s released under Tencent’s own Hy model license rather than a standard open-source license like Apache 2.0 or MIT, so usage terms should be checked directly against that license text before commercial deployment.

Editorial standards

Presented by MindStudio

No spam. Unsubscribe anytime.