# Tencent Hy4

> Tencent Hy4 is an open-weight multimodal mixture-of-experts model with 770B total and 49B active parameters, a 1M-token context and a vLLM recipe.

Source: https://www.honeyhive.ai/learn/tencent-hy4 (updated 2026-11-23)

Tencent Hy4 is an open-weight, natively multimodal [mixture-of-experts](/learn/mixture-of-experts) model from the Tencent Hy Team. Its [model card](https://huggingface.co/tencent/Hy4) lists 770B total parameters, 49B active per token for text and a context length of 1,048,576 tokens, with text, image and video understanding. The weights ship under the Tencent Hy License, not a standard open-source one.

## Specs

| | Tencent Hy4 |
|---|---|
| Parameters | [770B total](https://huggingface.co/tencent/Hy4), excluding the vision encoder, adapter and drafter; 49B text plus 1.23B vision activated per token |
| Layers | 78, one dense and 77 MoE |
| Experts | 256 routed plus 1 shared per MoE layer, top 8 routed per token |
| Attention | Multi-head latent attention with gated DeepSeek Sparse Attention and IndexCache, selecting the top 2,048 tokens |
| Context length | 1,048,576 tokens |
| Input | Text, images and video |
| Drafter | A 3.3B DFly2 model for [speculative decoding](/learn/speculative-decoding) |

The [Hugging Face organisation page](https://huggingface.co/tencent) lists three Hy4 checkpoints: Hy4 (instruct), Hy4-FP8 and Hy4-base. It also lists a smaller Hy4 flash family at 220B parameters.

## Claimed results

Tencent's model card [reports](https://huggingface.co/tencent/Hy4) few-shot scores for the base model, compared with Hy4 flash Base, Hy3 preview Base and two DeepSeek base models. The Hy4 and Hy4 flash base scores:

| Benchmark | Hy4 Base | Hy4 flash Base |
|---|---|---|
| [MMLU](/learn/mmlu) (5-shot) | 91.6 | 88.7 |
| MMLU-Pro | 73.9 | 71.1 |
| SuperGPQA | 62.7 | 57.8 |
| [SimpleQA](/learn/simpleqa) | 57.2 | 37.5 |
| MMMU-Pro | 59.6 | 52.0 |

The card [warns](https://huggingface.co/tencent/Hy4) that the base model sometimes fails to follow the expected answer format in few-shot runs, which can distort scores. Its instruct-model charts are images.

The [GitHub repository](https://github.com/Tencent-Hunyuan/Hy4) reports instruct results in text. On a 579-task finance set, Hy4 averages 3.04 out of 4, against 2.97 for DeepSeek-V4.1-Flash-1017 and 2.68 each for Kimi K3.1 Pro and GLM-5.3. It also says the hallucination rate fell from 15.76% for Hy4 preview to 5.45%. These are Tencent's own numbers on partly internal tasks, reported in November 2026, so rerun them on your workload.

## Licence

The [licence file](https://huggingface.co/tencent/Hy4/blob/main/LICENSE) is Tencent Hy License Version 1.0. It grants a worldwide, royalty-free licence with no geographic restriction, and counts fine-tuned, quantized, distilled and merged models as derivative works. Section 10 requires a separate written licence from Tencent for a business that offers model-as-a-service and has more than US$50 million in worldwide gross revenue over 12 months, or a product with more than 100 million monthly active users. Internal use is exempt. Read the file itself before you ship, since open weights do not mean an open-source licence.

## Serving it

Tencent's model card [recommends](https://huggingface.co/tencent/Hy4) vLLM or SGLang, with official images `vllm/vllm-openai:hy4` and `lmsysorg/sglang:hy4`. See [vLLM](/learn/vllm) and [SGLang](/learn/sglang).

- **Hardware.** The vLLM [recipe](https://recipes.vllm.ai/tencent/Hy4) uses one 8-GPU NVIDIA node and puts memory at about 944 GB for FP8 and about 1,859 GB for BF16. It says AMD Instinct is not supported. See [LLM quantization](/learn/llm-quantization).
- **vLLM.** The recipe serves `tencent/Hy4-FP8` with `--tensor-parallel-size 8`, `--reasoning-parser hy_v4`, `--tool-call-parser hy_v4`, `--attention-backend FLASHMLA_SPARSE` and DFly speculative decoding of 5 tokens. It requires vLLM 0.35.0 or later, which the recipe says is not released yet (the latest release in November 2026 is 0.34.0), so use a nightly built on 2026-11-20 or later. Version 0.34.0 does not register the model.
- **Context.** The recipe sets `--max-model-len 131072` and [says](https://recipes.vllm.ai/tencent/Hy4) a full 1M-token request has not been validated. See [context window](/learn/context-window).
- **SGLang.** The model card runs `sglang serve --model-path tencent/Hy4-FP8 --tp 8 --speculative-algorithm DFLY`.
- **Client.** Both servers expose an OpenAI-compatible API, and the model card's examples call it at `http://127.0.0.1:8000/v1` with the served name `hy4`.
- **Smaller setups.** The card [lists](https://huggingface.co/tencent/Hy4) GGUF quantizations for llama.cpp, Ollama and LM Studio. See [llama.cpp](/learn/llama-cpp).

## Settings

The model card [recommends](https://huggingface.co/tencent/Hy4) `temperature=0.9` and `top_p=1.0`. `reasoning_effort` takes `high`, the default, or `no_think`. For direct answers pass `extra_body={"chat_template_kwargs": {"reasoning_effort": "no_think"}}`. See [reasoning effort](/learn/reasoning-effort) and [LLM temperature](/learn/llm-temperature).

## Evaluating it

1. Compare it with your current model on the same task set: accuracy, cost per finished task and latency, at both `high` and `no_think`. See [LLM evaluation](/learn/llm-evaluation) and [model routing](/learn/model-routing).
2. Set sampling to Tencent's recommended values for both models, so a difference in settings does not look like a difference in quality.
3. Trace tool-calling runs, including reasoning output, to see where a long agent run went wrong. See [agent tracing](/learn/agent-tracing). HoneyHive's [tracing quickstart](https://docs.honeyhive.ai/v2/introduction/tracing-quickstart.md) shows how to instrument an OpenAI call and inspect the trace.

## FAQ

### How big is Tencent Hy4?

Tencent's [model card](https://huggingface.co/tencent/Hy4) lists 770B total parameters with 49B activated per token for text, plus a 1.23B vision encoder, across 78 layers with 256 routed experts and 1 shared expert per MoE layer.

### What is the Hy4 context window?

The model card gives a [context length](https://huggingface.co/tencent/Hy4) of 1,048,576 tokens. The vLLM recipe uses 131,072 and says a full 1M-token request has not been validated.

### Is Hy4 open source?

The weights are on Hugging Face under the [Tencent Hy License](https://huggingface.co/tencent/Hy4/blob/main/LICENSE), which is derived from Apache 2.0 but is not Apache 2.0. See [open-weight models](/learn/open-weight-models).

### How do I serve Hy4 with vLLM?

The vLLM [recipe](https://recipes.vllm.ai/tencent/Hy4) serves tencent/Hy4-FP8 on one 8-GPU NVIDIA node with tensor parallel size 8, the hy_v4 reasoning and tool-call parsers, and a vLLM nightly built on 2026-11-20 or later.

### What sampling settings does Tencent recommend for Hy4?

The model card [recommends](https://huggingface.co/tencent/Hy4) temperature 0.9 and top_p 1.0, with reasoning_effort set to high (the default) or no_think.
