Tencent released Hy4-Flash as an open-weight Mixture-of-Experts model with 220B total parameters and about 12B active per token, supporting text and image inputs with a 1M-token context window. The model ships as Hy4-Flash instruct, Hy4-Flash-FP8, and Hy4-Flash-base on Hugging Face, ModelScope, and GitCode under the Tencent Hy License.1

What's new

Hy4-Flash is Tencent's most cost-effective Hy model to date. The architecture combines a 42-layer language backbone with hybrid sparse and sliding-window attention, LatentMoE with 512 routed experts per layer, and an N-gram Engram embedding table. A built-in 0.85B DFly2 drafter enables long-context speculative decoding with constant cost.

Key specs from the official README:

  • Total parameters ~220B including 64B Engram; 12B active per token
  • Context length 1M tokens
  • Multimodal: text and image in, text out
  • Vision encoder adapted from SigLIP2-So400m-Patch16-Res512
  • License: Tencent Hy License, Apache 2.0 derived with commercial MaaS terms

The model is listed on Hugging Face as tencent/Hy4-flash with pipeline tag image-text-to-text and library transformers. The API metadata shows the model is public, ungated, last modified 2026-11-19.

Local setup

Transformers

Install a transformers build that includes Hy4 support and load the model for local inference.

pip install "transformers[torch,vision] @ git+https://github.com/huggingface/transformers.git@refs/pull/50903/head"
from transformers import AutoModelForImageTextToText, AutoProcessor

model_id = "tencent/Hy4-flash"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, device_map="auto")

Reasoning mode is controlled via reasoning_effort with values high or no_think. Recommended sampling: temperature 0.9, top_p 1.0.

vLLM

Official docker recipe uses the vLLM OpenAI image. Replace <org/model> with tencent/Hy4-flash or tencent/Hy4-flash-FP8.

docker run --runtime nvidia --gpus all \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -p 8000:8000 \
  --ipc=host \
  vllm/vllm-openai:latest \
  --model tencent/Hy4-flash \
  --tensor-parallel-size 1

For production serving, Tencent provides vLLM and SGLang recipes in the model README, including speculative decoding with DFly2 and attention backend settings.

GGUF for llama.cpp

Community quantizations are available via AngelSlim. The GGUF builds include Q4_K_M, SPARK-4Bit, SPARK-4Bit-Fast, Q3_K, and IQ2-AH variants. The AngelSlim README documents build steps for llama.cpp with Metal and Spark patches, and provides benchmark results for Mac M5 Max and RTX Spark.

Model page: https://huggingface.co/tencent/Hy4-flash GGUF page: https://huggingface.co/AngelSlim/Hy4-flash-GGUF

License notes

Hy4-Flash is released under the Tencent Hy License. The license is Apache 2.0 derived with additional commercial terms for Model-as-a-Service businesses. Section 10 requires a separate written license for MaaS operations with >$50M annual revenue or >100M monthly active users. Internal use is permitted without additional licensing.