# Hunyuan Hy4 preview

> Tencent's 770B-parameter open-weight Mixture-of-Experts preview with a 1M-token context, released August 28, 2026 under Apache 2.0.

- Maker: Tencent
- Line: Hunyuan
- Canonical page: https://ai-tldr.dev/models/hunyuan-hy4-preview/
- Updated: 2026-08-29

## In short

Hunyuan Hy4 preview is a 770B-parameter Mixture-of-Experts language model from the Tencent Hy Team, released and open-sourced on 28 August 2026. It has a 1M-token context window and costs $0.834 per million input tokens and $2.501 per million output tokens. You can use it through Tencent Cloud TokenHub, OpenRouter and Hugging Face (self-hosted via vLLM / SGLang).

## Facts

| Fact | Value | Source |
| --- | --- | --- |
| Context window | 1M | [1] |
| Input price | $0.834 / 1M tokens (cached $0.042) | [2] |
| Output price | $2.501 / 1M tokens | [2] |
| Licence | Apache-2.0 · open weights | [1] |
| Released | 28 August 2026 | [3] |
| Parameters | 770B total · 49B active | [1] |

## Sources

1. [Tencent Hy4-preview model card (Hugging Face)](https://huggingface.co/tencent/Hy4-preview)
2. [Tencent announcement — Tencent Releases and Open-Sources Tencent Hy4 preview](https://www.tencent.com/tencent-releases-and-open-sources-tencent-hy4-preview/)
3. [Tencent-Hunyuan/Hy4-preview (GitHub)](https://github.com/Tencent-Hunyuan/Hy4-preview)

## Overview

Hunyuan Hy4 preview is a 770B-parameter Mixture-of-Experts language model from the Tencent Hy Team, released and open-sourced on 28 August 2026. It activates 49 billion parameters per token: the backbone runs 78 layers, of which the first uses a dense FFN and the remaining 77 are MoE layers holding 256 routed experts plus 1 shared expert, with the top-8 routed experts and the shared expert firing on every token. A native Multi-Token Prediction layer (10B total, 0.7B activated) is built in for speculative decoding. The context length is 1M tokens and the vocabulary is 120,832 entries.

On the architecture side, Tencent credits DeepSeek and GLM as inspirations: attention uses Gated DeepSeek Sparse Attention (Gated DSA) with IndexCache for cross-layer sparse-index reuse, and the residual pathway uses identity Hyper-Connections (iHC) with four residual streams to widen inter-layer information flow. Weights ship in BF16 as tencent/Hy4-preview and in FP8 as tencent/Hy4-preview-FP8, both under the Apache 2.0 license, and Tencent publishes vLLM and SGLang serving recipes with prebuilt container images.

Tencent positions Hy4 preview as a productivity model, built with in-house software engineers, game developers, finance analysts and security experts on the work those teams ship. In a blind side-by-side evaluation, 163 internal experts rated model outputs on 203 engineering tasks: Hy4 preview averaged 2.99 against GLM 5.3 at 2.92 (46.8% wins / 12.8% ties / 40.4% losses) and against Kimi K3 at 2.94 (51.2% wins / 7.9% ties / 40.9% losses). Tencent also publishes the model's known limitations up front — it can spend longer than necessary reasoning through complex tasks and tends to over-verify its own work — and frames the release as a deliberate early ship, the same approach it took with Hy3 preview.

## Benchmarks

- GPQA Diamond: 92.3% ([source](https://huggingface.co/tencent/Hy4-preview))
- Terminal-Bench 2.1: 85.4% ([source](https://huggingface.co/tencent/Hy4-preview))
- MCP-Atlas (public): 83.7% ([source](https://huggingface.co/tencent/Hy4-preview))
- SWE-bench Multilingual: 82.9% ([source](https://huggingface.co/tencent/Hy4-preview))
- MathArena Apex 2025: 74.2% ([source](https://huggingface.co/tencent/Hy4-preview))
- SWE-bench Pro: 65.7% ([source](https://huggingface.co/tencent/Hy4-preview))
- DeepSWE: 64.3% ([source](https://huggingface.co/tencent/Hy4-preview))
- HLE (no tools, text-only): 43.4% ([source](https://huggingface.co/tencent/Hy4-preview))

## Pricing

- Input: $0.834 / 1M tokens
- Cached input: $0.042 / 1M tokens
- Output: $2.501 / 1M tokens

API pricing quoted in Tencent's launch announcement; served through Tencent Cloud TokenHub and OpenRouter. Weights are Apache 2.0, so self-hosting is free.

Source: https://www.tencent.com/tencent-releases-and-open-sources-tencent-hy4-preview/

## Strengths

- Apache 2.0 open weights at 770B total parameters (49B active), free for commercial, self-hosted and on-premise use
- 1M-token context window with Gated DeepSeek Sparse Attention and IndexCache sparse-index reuse
- Native Multi-Token Prediction layer for speculative decoding, wired into both the vLLM and SGLang recipes
- Published head-to-head appendix against Hy3, DeepSeek V4 Pro, Qwen 3.8 Max, GLM 5.3, Kimi K3, GPT 5.6 Sol and Claude Opus 5
- Large generation-over-generation jumps on agentic coding — DeepSWE 28.0 → 64.3 and Terminal-Bench 2.1 70.8 → 85.4 over Hy3
- BF16 and FP8 checkpoints distributed across Hugging Face, ModelScope, GitCode and CNB

## Best for

- Self-hosted agentic coding and long-horizon software engineering via vLLM or SGLang
- Office and analysis work that turns context spread across many files into documents, spreadsheets and presentations
- Long-context codebase and document analysis that needs the full 1M-token window
- On-prem enterprise deployments where an Apache-2.0 licence is a requirement
- Game-development prototyping and scientific-research reasoning workloads

## How to access

- [Tencent Cloud TokenHub](https://cloud.tencent.com/product/tokenhub) — model id `hy4-preview`
- [OpenRouter](https://openrouter.ai/tencent/hy4-preview) — model id `tencent/hy4-preview`
- [Hugging Face (self-hosted via vLLM / SGLang)](https://huggingface.co/tencent/Hy4-preview) — model id `tencent/Hy4-preview`

## Hunyuan versions

- [Hunyuan Hy4](https://ai-tldr.dev/models/hunyuan-hy4/) (4 November 2026): Full Hy4 release: adds image input and computer use, hosted on Tencent Cloud and OpenRouter; weights and system card to follow.
- Hy4 preview (28 August 2026): First Hy4-generation release: 770B / 49B-active MoE with Gated DSA attention, IndexCache and a 1M-token context, open-sourced under Apache 2.0 alongside an FP8 checkpoint. — this page
- [Hunyuan Hy3](https://ai-tldr.dev/models/hunyuan-hy3/) (6 July 2026): First fully open (Apache 2.0) release of the Hy3 series — a 295B / 21B-active MoE with a 256K context and a switchable reasoning-effort mode.
- Hy3-preview (April 2026): 295B / 21B-active MoE preview under Tencent's Hunyuan community license, used to gather feedback from 50+ products before the July release.

## FAQ

### Is Hunyuan Hy4 preview open source?

Yes. Tencent published Hy4 preview (BF16) and Hy4 preview-FP8 under the Apache 2.0 license on Hugging Face, ModelScope, GitCode and CNB, so the weights can be downloaded, fine-tuned and used commercially, including on-premise. Tencent also ships a finetuning pipeline with the model card and points at AngelSlim for compression and quantization.

### How large is Hy4 preview and how much context does it handle?

It is a Mixture-of-Experts model with 770 billion total parameters, 49 billion of which activate per token. The backbone is 78 layers deep — the first uses a dense FFN and the other 77 are MoE layers with 256 routed experts and 1 shared expert, top-8 routed experts firing per token — plus a native Multi-Token Prediction layer of 10B parameters (0.7B activated) for speculative decoding. Context length is 1M tokens.

### How does Hy4 preview compare with Hy3?

Tencent's published appendix shows large generation-over-generation gains on agentic work: DeepSWE goes from 28.0 to 64.3, Terminal-Bench 2.1 from 70.8 to 85.4, SWE-bench Pro from 57.9 to 65.7, MathArena Apex 2025 from 38.7 to 74.2, and the official GDPval-AA V2 Elo from 1213 to 1678. Reasoning moves less: GPQA Diamond goes from 90.9 to 92.3.

### Why is it called a preview?

Tencent ships it as an early version of the Hy4 generation and says there is real headroom left in both pre-training and post-training. It documents two known issues at launch — the model can spend longer than necessary reasoning through complex tasks, and it tends to over-verify its own work. Tencent frames this as the same ship-early approach it used with Hy3 preview, which it credits for making the final Hy3 substantially better.

### How do I run Hy4 preview?

Tencent recommends vLLM or SGLang and publishes prebuilt images for both. For vLLM: `docker run --gpus all -p 8000:8000 --ipc=host vllm/vllm-openai:hy4-preview tencent/Hy4-preview-FP8 --tensor-parallel-size 8 --attention-backend FLASHMLA_SPARSE --tool-call-parser hy_v4 --reasoning-parser hy_v4 --enable-auto-tool-choice`. Reasoning defaults to `high`; pass `chat_template_kwargs.reasoning_effort = "no_think"` for direct answers. Recommended sampling is temperature 0.9, top_p 1.0.

## Links

- [Tencent Hy4-preview model card (Hugging Face)](https://huggingface.co/tencent/Hy4-preview)
- [Tencent Hy4-preview-FP8 model card (Hugging Face)](https://huggingface.co/tencent/Hy4-preview-FP8)
- [Tencent announcement — Tencent Releases and Open-Sources Tencent Hy4 preview](https://www.tencent.com/tencent-releases-and-open-sources-tencent-hy4-preview/)
- [Tencent-Hunyuan/Hy4-preview (GitHub)](https://github.com/Tencent-Hunyuan/Hy4-preview)
- [Tencent-Hunyuan/Hy4-preview (ModelScope)](https://modelscope.cn/models/Tencent-Hunyuan/Hy4-preview)
- [vLLM recipe for Hy4-preview](https://recipes.vllm.ai/tencent/Hy4-preview)
- [SGLang cookbook for Hy4-preview](https://lmsysorg.mintlify.app/cookbook/autoregressive/Tencent/Hy4-Preview)
- [OpenRouter — Tencent: Hy4 preview](https://openrouter.ai/tencent/hy4-preview)
- [Tencent Cloud TokenHub](https://cloud.tencent.com/product/tokenhub)

Source: AI/TLDR LLM registry, https://ai-tldr.dev/models/hunyuan-hy4-preview/
