Tencent Hy4 open weights: a 770B MoE with sparse attention, a $50M licence line and 1M context
Tencent has published the weights of Hy4, its 770B-parameter multimodal flagship, two weeks after its API launch. This guide explains the architecture, what independent tests show, what it costs and what the licence allows.
- Reading time
- 17 min
- Sections
- 9
- Code examples
- 3
- Tables
- 3
- Sources
- 8
- Published
- 25 Nov 2026
- What changed
- Tencent launches Hy4 through its API
- Why it matters
- Hy4 is a credible open-weight option at frontier scale, with a 1M context and multimodal input.
- What to do
- Run your own evaluation first
Tencent has published the full weights of Hy4, the flagship of its Hy (formerly Hunyuan) model line. The Hugging Face repository went up on 20 November 2026 with 245 safetensors shards. Hy4 is a mixture-of-experts model with 770B total parameters in its language backbone and 49B active per token, a 1,048,576-token context window, and image and video input. It first appeared as an API-only model on 4 November 2026.
This matters for three reasons. Hy4 joins a short list of open-weight models above 700B parameters, so teams that self-host now have another frontier-scale option. Its design borrows heavily from DeepSeek's sparse attention and latent attention, which shows how quickly these ideas spread. And its licence is not Apache 2.0: large services need a separate agreement with Tencent. This guide covers what was released, how the model works, what independent tests say, what it costs, and how to run it.
We covered the smaller sibling in our Hy4 flash explainer. This article focuses on the full Hy4.
What happened
Tencent launches Hy4 through its API (4 November 2026)
Tencent's research post and transparency centre list Hy4 under 4 November 2026. At launch it was served through Tencent Cloud and resellers. OpenRouter lists the model as tencent/hy4 with a release date of 4 November 2026 and a 1.0M-token context. The launch post priced it at $0.834 per million input tokens, $2.501 per million output tokens and $0.042 per million cached input tokens, the same as the earlier Hy4 preview, according to Ultrathink's reading of the post.
Hy4 flash arrives and opens first (16 and 18 November 2026)
Tencent listed Hy4 flash on 16 November 2026 and published its weights two days later. Hy4 flash has 220B total and 12B active parameters, and it uses an n-gram memory called Engram that the Hy4 model card does not list.
Tencent opens the Hy4 weights (20 November 2026)
The Hugging Face commit for tencent/Hy4 is dated 2026-11-20 03:05 UTC. Three variants are available: Hy4 (instruct), Hy4-FP8 and Hy4 Base (pretrained, not instruction-tuned). The GitHub release added a README, the licence, benchmark charts and fine-tuning scripts. Tencent also linked a system card with a safety evaluation.
How Hy4 is built
Think of a mixture-of-experts model as a large hospital. Every patient (token) sees a triage nurse (the router), who sends them to a few specialists (experts). The hospital employs hundreds of specialists, but each patient only sees a handful. That is why Hy4 can hold 770B parameters but only compute with 49B for each token. Our mixture-of-experts explainer covers the basics.
The backbone in numbers
The model card gives these figures:
| Component | Hy4 | Hy4 flash |
|---|---|---|
| Total parameters (language backbone) | 770B | 155.5B (220B with Engram, ViT and drafter) |
| Active parameters per token | 49B text + 1.23B vision | 11.3B text + 0.43B vision |
| Layers | 78 (1 dense, 77 MoE) | 42 (1 dense, 41 MoE) |
| Hidden size | 6,144 | 3,072 |
| Routed experts per MoE layer | 256, top 8 active, plus 1 shared | 512, 16 active, plus 1 shared |
| Expert intermediate size | 2,048 | 1,536 |
| Attention | Gated DeepSeek Sparse Attention with MLA | Sparse + 512-token sliding window, 1:3 |
| Sparse selection | top 2,048 tokens | up to 2,048 tokens |
| Vision encoder | 40 layers, 1.23B | 27 layers, 0.43B (SigLIP2-based) |
| Speculative drafter | DFly2, 5 layers, 3.3B | DFly2, 5 layers, 0.85B |
| Context | 1,048,576 tokens | 1,048,576 tokens |
| Engram n-gram tables | not listed | 63.4B parameters |
Two ratios are worth computing. For Hy4, 49 / 770 = 6.4% of backbone parameters are active per token. For Hy4 flash, 11.3 / 155.5 = 7.3% of the backbone is active. Both are in the same sparse range as other large open MoE models we compared in our guide to giant open MoE models.
Hy4 routes each token to 8 of 256 experts, while Hy4 flash routes to 16 of 512 smaller experts. Finer experts give the router more combinations: choosing 16 from 512 allows far more distinct expert sets than choosing 8 from 256. The trade-off is more routing work and harder load balancing, which we explain in our MoE routing article.
Gated DeepSeek Sparse Attention and latent attention
Standard attention compares every new token with every earlier token. At 1M tokens that is too expensive. Hy4 uses what the card calls Gated DeepSeek Sparse Attention (Gated DSA) with an IndexCache. A small indexer (32 heads of dimension 128) scores earlier tokens cheaply and picks the top 2,048. The main attention then runs only over those 2,048 tokens. It is like a librarian who first scans the catalogue and only pulls 2,048 books off the shelf, instead of reading every book in the building.
The attention itself uses Multi-head Latent Attention (MLA) with 64 heads, a query LoRA rank of 2,048 and a key-value LoRA rank of 512. MLA stores a compressed latent vector per token instead of full keys and values. We walk through MLA in our MLA and KV cache article, and DeepSeek's version of sparse attention in our DeepSeek V4 guide.
A worked example shows why this matters. Take only the 512-value latent per layer, stored in BF16 (2 bytes):
- Per token, per layer: 512 × 2 = 1,024 bytes
- Per token, all 78 layers: 1,024 × 78 = 79,872 bytes, about 78 KB
- For a 1,048,576-token context: 79,872 × 1,048,576 ≈ 83.8 GB
This is a lower bound. The card does not list the size of the positional (RoPE) key part or the indexer keys, which add to it. Even so, it shows the scale: a full 1M-token conversation needs tens of gigabytes of KV cache per sequence, on top of the weights. Long contexts are possible, but serving many of them at once is not cheap.
iHC residuals and the DFly2 drafter
Hy4 uses iHC (identity Hyper-Connections) with 4 residual streams instead of a single residual path. The card gives the setting but not a full description, so we will not guess at the details.
The DFly2 drafter is a 5-layer, 3.3B-parameter model bundled with the weights. It proposes several tokens ahead and the full model checks them in one pass, a technique known as speculative decoding. The official vLLM command proposes 5 tokens at a time. For Hy4 flash, the card says the drafter reuses the target model's KV cache and sparse indices, which keeps its own cost low.
What the benchmarks say
Tencent's own numbers
Tencent reports few-shot results for the base models. These are maker-reported and not independently reproduced. The card also warns that the base model saw synthetic instruction data during mid-training, which can distort few-shot scores.
Hy4 Base leads DeepSeek-V4-Pro-Base on knowledge and maths rows such as SuperGPQA (62.7 vs 54.8) and U-MATH (71.6 vs 64.8). It trails on the MBPP-plus coding row (74.0 vs 79.1).
Tencent's research post adds human and internal evaluations, again maker-reported:
- Finance. 213 finance professionals scored 579 tasks. Hy4 averaged 3.04 out of 4, against 2.97 for DeepSeek-V4.1-Flash-1017 and 2.68 for both Kimi K3.1 Pro and GLM-5.3.
- Hallucination. On an internal search test, the hallucination rate fell from 15.76% for Hy4 preview to 5.45%.
- Games. GameDev improved 19.1% and GameLogic 9.8% over the preview.
- Biology risk. Hy-BioExperimentBench came out at 30.4 out of 100, which Tencent says is below its own high-risk threshold.
Independent results
Vals AI runs its Vals Index across many tasks and publishes cost and time alongside accuracy. As of 21 November 2026:
| Model | Vals Index rank | Accuracy | Cost per test | Duration per test |
|---|---|---|---|---|
| DeepSeek V4.1 Flash 1017 | 16 | 59.66% | $0.66 | 39m55s |
| Hy4 | 20 | 57.87% | $1.72 | 51m31s |
| Claude Haiku 5.5 | 22 | 57.04% | $3.17 | 49m57s |
| Hy4 Flash | 36 | 49.16% | $0.07 | 16m59s |
The independent picture is more modest than Tencent's charts. Hy4 is competitive with Claude Haiku 5.5 at roughly half the test cost, but DeepSeek V4.1 Flash scores higher at lower cost. Hy4 is a solid open option, not a new leader. Neurohive also reports a score of 34.6 on the Artificial Analysis Intelligence Index for Hy4; we could not load that page to confirm it.
Prices, licence and hardware
What the API costs
OpenRouter lists three providers for tencent/hy4:
| Provider | Input per 1M | Output per 1M | Cache read per 1M |
|---|---|---|---|
| Together | $0.834 | $2.501 | $0.042 |
| DeepInfra | $0.834 | $2.501 | $0.042 |
| Tencent Cloud (50% off) | $0.417 | $1.251 | $0.021 |
For Hy4 flash, the list price is $0.07 input, $0.281 output and $0.003 cache read per million tokens, with Tencent Cloud at half that during its discount.
A worked example: one agent turn that reads 200,000 input tokens (uncached) and writes 10,000 output tokens, at list prices.
- Hy4: 0.2 × $0.834 + 0.01 × $2.501 = $0.1668 + $0.0250 = $0.1918
- Hy4 flash: 0.2 × $0.07 + 0.01 × $0.281 = $0.0140 + $0.0028 = $0.0168
If 180,000 of those input tokens hit the cache, Hy4 drops to 0.02 × $0.834 + 0.18 × $0.042 + $0.0250 = $0.0167 + $0.0076 + $0.0250 = $0.0493. Prompt caching cuts this turn's cost by about 74%.
What the licence allows
The Tencent Hy License 1.0 is derived from Apache 2.0 but is a different licence. According to Ultrathink's reading of Section 10, you need a separate written licence from Tencent for model-as-a-service use if your company's worldwide gross revenue exceeds US$50 million in any 12 consecutive months, whether or not that revenue comes from the model. You also need one if a product passes 100 million monthly active users in any calendar month. Internal use is exempt as long as the weights, derivatives and outputs are not offered to third parties.
In practice, a startup or a university can use Hy4 freely. A large company that wants to sell Hy4 as an API, or embed it in a big consumer product, must talk to Tencent first. Read the full LICENSE file in the repository before you build on it.
What hardware you need
Weight sizes reported for the repository are about 1.55 TB for Hy4 in BF16 and about 0.79 TB for Hy4-FP8. The arithmetic matches: 770B parameters × 2 bytes ≈ 1.54 TB in BF16, and × 1 byte ≈ 0.77 TB in FP8, plus the vision encoder and drafter. Tencent's examples serve the FP8 version with tensor parallelism across 8 GPUs. Eight GPUs with 80 GB each give 640 GB, which is less than 0.79 TB, so in practice you need 8 GPUs with considerably more memory per card, plus room for the KV cache. A GGUF quantisation from Tencent's AngelSlim team exists for testing.
Continue learning
How this article connects
9 pages link to or from it. Drag to turn, click a dot to open it.
- vLLM
- SGLang
- Kimi K3.1 Pro and ERNIE 5.5 Flash Base: sizing giant open MoE models
- Revolut, AMD and Mistral show coding agents moving to self-hosted open-w
- DeepSeek in late 2026: V4 Pro, V4.1 Flash, sparse attention kernels and
- Multi-head latent attention explained: how MLA shrinks the KV cache and
- MoE routing explained: top-k gates, load balancing losses and loss-free
- Tencent Hy4 flash open weights explained: Engram memory, LatentMoE and h
How to run it
The official vLLM image serves the FP8 weights:
docker run --gpus all \
--privileged --ipc=host -p 8000:8000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
-e VLLM_USE_RUST_FRONTEND=1 \
vllm/vllm-openai:hy4 tencent/Hy4-FP8 \
--dtype bfloat16 \
--limit-mm-per-prompt '{"image":1,"video":0}' \
--tensor-parallel-size 8 \
--enable-auto-tool-choice \
--reasoning-parser hy_v4 \
--tool-call-parser hy_v4 \
--speculative-config '{"num_speculative_tokens":5,"method":"dfly"}' \
--attention-backend FLASHMLA_SPARSE \
--port 8000 \
--served-model-name hy4
An SGLang image (lmsysorg/sglang:hy4) is also available with --speculative-algorithm DFLY. See our pages on vLLM and SGLang for how these servers batch requests.
Once the server is up, any OpenAI-compatible client works. The card recommends temperature 0.9 and top_p 1.0:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
resp = client.chat.completions.create(
model="hy4",
messages=[{"role": "user", "content": "Summarise the attached quarterly report in five bullet points."}],
temperature=0.9,
top_p=1.0,
)
print(resp.choices[0].message.content)
The card documents a reasoning_effort setting with two values: high (the default, thinking on) and no_think (direct answers). To call the hosted model instead, point the same client at OpenRouter and use the model ID tencent/hy4.
Use cases and examples
A finance research team. A bank's research desk drafts briefings from filings and market notes. Tencent's own finance panel is the closest evidence: 3.04 out of 4 across 579 tasks. At list price, a briefing that reads 150,000 tokens and writes 8,000 costs 0.15 × $0.834 + 0.008 × $2.501 = $0.1251 + $0.0200 = $0.1451. A thousand briefings a month cost about $145 before caching.
An on-premises document assistant. A regulated firm wants a model that never leaves its data centre. Internal use is exempt from the licence's service thresholds as long as outputs are not offered to third parties. The FP8 weights (about 0.79 TB) run on one 8-GPU node with enough memory per card. The firm's main cost is the hardware, not tokens.
A two-tier office agent. A company routes routine work (search, slides, document edits) to Hy4 flash and escalates hard tasks to Hy4, the split Tencent itself recommends. If 80% of 10,000 daily turns go to flash at $0.0168 and 20% go to Hy4 at $0.1918 (the uncached example above), the daily bill is 8,000 × $0.0168 + 2,000 × $0.1918 = $134.40 + $383.60 = $518, against $1,918 if every turn used Hy4. We explain this pattern in our agent routing article.
A long-document reviewer. A legal team loads a 600,000-token case file once and asks many questions. With caching, each follow-up pays $0.042 per million for cached tokens: 0.6 × $0.042 = $0.0252 of cached input per question, instead of 0.6 × $0.834 = $0.5004 uncached.
A self-hosted coding fleet. Teams that already run open models for coding agents, as described in our self-hosted coding agents article, can test Hy4. The base model's weaker MBPP-plus row (74.0 vs 79.1 for DeepSeek-V4-Pro-Base) is a reason to measure it on your own repositories before switching.
What it means in practice
Hy4 is a credible open-weight option at frontier scale, with a 1M context and multimodal input. Independent testing places it in the middle of the current pack, not at the top. Its main strengths are price on hosted APIs, a permissive licence for most companies, and a bundled drafter that makes self-hosting faster. Its main limits are the hardware it needs, a licence that big service providers must negotiate, and evidence that is still mostly maker-reported.
What to do now
- Run your own evaluation first. Use 50 to 200 real tasks from your workload and compare Hy4 with your current model on accuracy, latency and cost.
- Read the licence against your size. Check your company's 12-month revenue and your product's monthly active users against the US$50M and 100M lines.
- Start on a hosted API. Test through OpenRouter, Together or DeepInfra before buying or renting an 8-GPU node.
- Turn on caching early. Cached input is $0.042 per million against $0.834, so structure prompts with a stable prefix.
- Try Hy4 flash for routine work. At $0.07 input and $0.281 output per million tokens, it may handle most simple turns.
- Size memory for KV cache, not just weights. Budget tens of gigabytes per long sequence on top of 0.79 TB of FP8 weights.
- Use the bundled drafter. Keep the
dflyspeculative config from the official commands unless you measure a regression. - Use the system card. Read Tencent's safety evaluation and run your own red-team tests for your domain.
Risks and open questions
Most results are maker-reported. Tencent's finance, hallucination and game numbers come from its own tests. Vals AI's independent ranking is lower than Tencent's charts suggest.
The licence can change your plans later. A product that grows past 100 million monthly users needs a new agreement, and the terms of that agreement are not public.
Hardware is a real barrier. About 0.79 TB of FP8 weights plus long-context KV cache means self-hosting is for teams with large GPU nodes.
Training data is not disclosed. The release does not state the number of training tokens or describe the data mix in detail.
Tooling is new. Hy4 relies on custom parsers (hy_v4), a new speculative method and sparse attention kernels. Expect bugs in early server versions.
Watch next: Artificial Analysis and LMArena results for Hy4, merged support in mainstream Transformers and llama.cpp, and whether the 50% Tencent Cloud discount ends.
Frequently asked questions
Is Hy4 open source?
Hy4 is open-weight, not open source in the strict sense. The weights and fine-tuning scripts are public, but the Tencent Hy License 1.0 adds conditions that Apache 2.0 does not have. Large model-as-a-service businesses and very large products need a separate licence.
How is Hy4 different from Hy4 flash?
Hy4 has 770B total and 49B active parameters, while Hy4 flash has 220B total and 12B active. Hy4 uses Gated DeepSeek Sparse Attention; Hy4 flash mixes sparse and sliding-window attention and adds Engram n-gram tables. Tencent recommends Hy4 for long-horizon software engineering and Hy4 flash for everyday office work.
What does it cost to use through an API?
On OpenRouter the list price is $0.834 per million input tokens, $2.501 per million output tokens and $0.042 per million cached input tokens. Tencent Cloud currently offers 50% off. Prices can change, so check the provider page before you budget.
Can I run Hy4 on one machine?
Only on a large one. The FP8 weights are about 0.79 TB, and Tencent's examples use 8 GPUs with tensor parallelism. A GGUF build exists for testing, but production serving needs a multi-GPU node with plenty of memory per card.
How good is Hy4 compared with other models?
On the Vals Index as of 21 November 2026, Hy4 ranked 20th with 57.87% accuracy, just ahead of Claude Haiku 5.5 at 57.04% and behind DeepSeek V4.1 Flash 1017 at 59.66%. Tencent's own tests show stronger results in finance and knowledge tasks. Measure it on your own work before deciding.
Summary
Tencent opened the weights of Hy4 on 20 November 2026, two weeks after its API launch. The model has 770B total and 49B active parameters, a 1M-token context, image and video input, and a bundled 3.3B speculative drafter. It combines DeepSeek-style sparse attention with latent attention to keep long contexts affordable. Independent testing from Vals AI places it mid-pack, close to Claude Haiku 5.5 at about half the test cost, while Tencent's own evaluations look stronger. Hosted prices start at $0.834 input and $2.501 output per million tokens. Most organisations can use it freely, but services above US$50M in revenue or products above 100M monthly users need a separate licence. Test it on your own tasks, start hosted, and plan memory carefully before self-hosting.
Sources
- Code Hugging Face: tencent/Hy4 model card
- Code Hugging Face: tencent/Hy4-flash model card
- Web OpenRouter: Tencent Hy4
- Web OpenRouter: Tencent Hy4 flash
- Web Vals AI: Vals Index leaderboard
- Web Ultrathink: Tencent's Hy4 weights are on Hugging Face, 770B total, 49B active
- Web DEV Community: Tencent just open-sourced Hy4, but the licence is the real story
- Web Neurohive: Hy4 flash, Tencent's cheapest Hy model gets open weights
Cite this article
Kelahmet, Ö. C. (2026, November 25). Tencent Hy4 open weights: a 770B MoE with sparse attention, a $50M licence line and 1M context. Özer Cem KELAHMET. https://www.ozercemkelahmet.com/articles/tencent-hy4-770b-open-weights-guide
BibTeX
@online{kelahmet2026tencent,
author = {Kelahmet, {\"O}zer Cem},
title = {{Tencent Hy4 open weights: a 770B MoE with sparse attention, a $50M licence line and 1M context}},
year = {2026},
month = {nov},
url = {https://www.ozercemkelahmet.com/articles/tencent-hy4-770b-open-weights-guide}
}Version historyfirst version
- Published
Factual corrections are listed here with what changed. Wording and formatting edits are not listed.