/ Модель

Характеристики

Размер весов
439 ГБ
Лицензия
Своя лицензия
Архитектура
hy_v4_flash · dense
Библиотека
transformers
Опубликована
17 ноя 2026

Hy4-flash-base

Изображение и текст → текст15 профессий

Мультимодальная базовая модель Tencent с контекстом до 1 млн токенов для диалогов, понимания изображений и повседневных рабочих задач.

1 543скачиваний за 30 дней25лайковвеса обновлены26 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Hy4-flash-base — базовая мультимодальная модель Tencent семейства Hunyuan для диалогов и рабочих задач. Она принимает текст и изображения и генерирует текст; заявленное окно контекста — до 1 млн токенов. Визуальный энкодер на основе SigLIP2-So400m-Patch16-Res512 подключён к языковой основе через MLP-проектор.

Архитектура включает 42 слоя: один плотный слой и 41 слой MoE с гибридным вниманием, латентными экспертами и биграммными и триграммными представлениями Engram. В README указано 220 млрд параметров с учётом Engram, при этом для каждого токена активируется около 12 млрд; таблица отдельно приводит 155,5 млрд без Engram, ViT и DFly2. Модель рассчитана на поиск, работу с документами, создание слайдов, простые демонстрационные веб-интерфейсы и управление компьютером. Для сложной длительной разработки ПО авторы рекомендуют более мощную Hy4.

Это базовая модель, а не специализированный дообученный чекпойнт; README сообщает о посттренировочной самодистилляции от Hy4. Поддерживается Transformers и предлагается серверное развёртывание через vLLM или SGLang. В метаданных указана лицензия other; конкретные условия следует сверить с лицензией репозитория.

Сценарии применения

  • поиск и ответы по большим массивам текста
  • анализ изображений с ответом на вопросы
  • обработка и редактирование документов
  • создание и редактирование слайдов
  • подготовка простых демонстрационных веб-интерфейсов
  • управление компьютером в продуктивных сценариях

Ограничения

В few-shot оценках модель может не соблюдать ожидаемый формат ответа из-за синтетических инструкционных данных в обучении, что может искажать результаты. Для сложной длительной разработки ПО авторы рекомендуют Hy4.

Для каких профессий подходит15

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

License    Hugging Face    ModelScope    AtomGit


Table of Contents

Model Introduction

Hy4 flash is our most cost-effective Hy model to date, featuring 220B total parameters (including 64B Engram parameters) with just 12B active parameters per token. It natively accepts text and image inputs, generates text, and supports a context window of up to 1M tokens.

Its 42-layer language backbone consists of one dense feed-forward layer and 41 MoE layers, with identity Hyper-Connections (iHC) supporting inter-layer information flow. A vision encoder (adapted from SigLIP2-So400m-Patch16-Res512) is connected to the backbone through an MLP projector. In addition to the backbone, a built-in 5-layer drafter, DFly2 (0.85B parameters), reuses the target model's KV cache and sparse indices to support long-context speculative decoding at a low, constant cost.

Compared with Hy4, Hy4 Flash introduces three notable architectural changes:

  1. Hybrid attention. Sparse attention (IndexPool) and sliding-window attention (SWA) are interleaved at a 1:3 ratio.
  2. LatentMoE. Routed experts operate in a lower-dimensional latent space. Each token activates 16 of 512 routed experts, alongside one shared expert.
  3. N-gram embedding (Engram). The backbone is augmented with learned bigram and trigram representations, retrieved via multi-head hash lookups.
PropertyValue
Overview
ArchitectureMixture-of-Experts (MoE)
Total Parameters (excluding Engram, ViT, and DFly2)155.5B
Engram Parameters63.5B
ViT Parameters0.43B
DFly2 Parameters0.85B
Activated Parameters per TokenText 11.3B + Vision 0.43B
Context Length1M (1,048,576 tokens)
Language Backbone
Backbone Layers42 — 1 dense layer and 41 MoE layers
Hidden Size3,072
Vocabulary Size120,832
Residual ConnectionsiHC (identity Hyper-Connections) with 4 residual streams
Attention — Hybrid Layout
Attention ArchitectureSparse attention + sliding-window attention (SWA)
Backbone Layer Pattern2 × Sparse → 10 × (3 × SWA → Sparse)
Attention FormulationMulti-head Latent Attention (MLA)
Multimodal Position EncodingInterleaved MRoPE
Attention — LayersSparse / SWA
Backbone Layers12 / 30
Attention Heads32 / 64
MLA q_lora_rank1,024 / 1,024
MLA kv_lora_rank512 / 512
QK Head Dimension (non-RoPE + RoPE)192 + 64 / 192 + 64
Value Head Dimension256 / 256
RoPE Base10,000,000 / 10,000
Sparse Context SelectionUp to 2,048 tokens via group-level selection
SWA Context Window512-token causal window (511 preceding + current)
Feed-Forward Networks
Dense FFN Intermediate Size13,824
Routed Experts per MoE Layer512
Shared Experts per MoE Layer1
Activated Routed Experts per Token16
MoE Latent Dimension1,536
Expert Intermediate Size1,536
N-gram Embedding
N-gram OrdersBigrams and trigrams
Backbone Layer Indices (starting from 0)1, 11, 21, 31
Hash Heads per N-gram Order8
Hash Vocabulary Size per Head10.3M
Embedding Dimension per N-gram Order768 (8 heads × 96 dimensions)
Embedding Table Parameters63.4B
Vision Encoder
Vision Encoder Layers27
Vision Encoder Hidden Size1,152
Vision Encoder Intermediate Size4,304
Vision Encoder Attention Heads16
Vision Patch Size16 × 16
Vision Position Embedding Size128 × 128
Visual Feature Merging2 x 2

Pretrained model capability

Bits-per-byte (BPB) on internal code & agent validation, lower is better:

Few-shot pretrain benchmark evaluation:

CategoryBenchmark#ShotsHy4 flash BaseHy4 BaseHy3 preview BaseDeepSeek-V4-flash-BaseDeepSeek-V4-Pro-Base
KnowledgeMMLU†588.791.687.589.791.1
MMLU-Pro†571.173.965.868.673.4
MMLU-Redux†587.690.687.088.890.2
SuperGPQA†557.862.752.352.554.8
C-Eval†592.095.090.191.993.4
CMMLU†591.693.189.689.890.7
SimpleQA537.557.226.431.352.1
Chinese-SimpleQA†574.683.969.671.976.6
AGIEval (English)†375.479.376.076.378.2
AGIEval (Chinese)†390.691.287.888.589.8
ReasoningHellaSwag (3,000-item subset)1085.287.185.785.186.8
PIQA484.485.384.683.884.9
ARC-Challenge095.097.396.097.397.0
Social IQa080.182.780.572.573.1
KOR-Bench354.757.654.653.455.4
C³077.382.475.974.178.3
MathU-MATH569.871.660.957.464.8
OCW Courses564.066.762.663.368.2
CodeMBPP-plus373.774.077.476.879.1
MultilingualBelebele (5-language subset)†593.895.094.294.495.2
INCLUDE†582.888.184.384.084.3
MultimodalMMMU-Pro (Standard, 10 opts)452.059.6———
SimpleVQA448.554.5———
CVBench483.486.7———
RealWorldQA471.172.3———
TextVQA473.478.2———
CountBenchQA486.690.6———

† Macro-averaged accuracy for the marked text benchmarks. Other text rows use the accuracy metric reported by our evaluation suite. Bold marks the highest available numerical score in each row; it does not indicate statistical significance.

Multimodal results are reported only for Hy4 flash Base and Hy4 Base.

ARC-Challenge and HellaSwag use 299-item and 3,000-item subsets, respectively. INCLUDE uses a 5,000-example Lite subset covering 44 languages. Belebele covers German, Korean, Vietnamese, Spanish, and Russian (4,475 examples in total).

Disclaimer: Because our base model was exposed to a large amount of synthetic instruction data during mid-training, it occasionally fails to follow the expected answer format in few-shot evaluations, which may distort the scores.

Practicality and Cost Efficiency

Optimization Approach

Across training, evaluation, and inference, we aggressively optimized for cost efficiency while preserving intelligence:

  • Pre-training: Hy4 flash integrates hybrid attention, LatentMoE, and Engram into its architecture—reducing KV cache size to just 1/24 of Hy3 and 1/6 of Hy4, with extensive scaling ladder experiments ensuring performance meets expectations.
  • Post-training: Self-distillation from Hy4 establishes strong general intelligence, while reinforcement learning cuts average end-to-end output tokens by 50%.
  • Evaluation: We built WorkIndex, an internal benchmark grounded in typical WorkBuddy tasks, and paired it with human evaluation—focusing on deliverable quality, single-turn output length, and task turnaround time rather than public benchmark scores detached from everyday work.
  • Inference: Combining megakernels, 4-bit quantization, and DFly2 pushes decoding speed past 150 tokens/s, enabling low-cost serving at scale.

Task Performance and Cost

Hy4 flash delivers overall task performance slightly above Hy4 preview at a much lower cost per task. On WorkIndex, it scores 42.1, compared with 39.7 for Hy4 preview, while its average cost per task is just 1/13 of Hy4 preview, 1/20 of Hy4, and 1/8 of DeepSeek-V4.1-Flash-1017 (Max tier, peak-hour pricing).

We recommend Hy4 flash for most everyday productivity tasks, including deep search, document processing, slide creation, simple frontend demos, and computer use. For complex tasks such as long-horizon software engineering, we recommend Hy4 for its higher intelligence ceiling.

User Blind Evaluation

In the blind evaluation, Hy4 flash achieved user satisfaction close to Claude Haiku 5.5, while recording the lowest cost per task and shortest median end-to-end completion time among the evaluated models. Its user satisfaction score was 2.79/4 (Claude Haiku 5.5: 2.81/4), with a median end-to-end completion time of 6.7 minutes and a cost of RMB 0.26 per task.

Appendix: Benchmark results

News

Model Links

Model NameDescriptionHugging FaceModelScopeAtomGit
Hy4 flashInstruct modelModelModelModel
Hy4 flash-FP8FP8 quantized instruct modelModelModelModel
Hy4 flash-basePre-trained base modelModelModelModel

Hy4 flash-base is a pre-trained base model, not an instruction-tuned chat model. The chat and reasoning examples below apply to Hy4 flash and Hy4 flash-FP8.

Quickstart

Use Transformers to load the model for local inference, or deploy a server and access it through the OpenAI-compatible API.

Reasoning mode (instruct models): reasoning_effort supports "high" (default, thinking enabled) and "no_think" (direct responses). Both examples below use "no_think".

Recommended sampling parameters: temperature=0.9, top_p=1.0.

Transformers

Support for Hy4 flash will be merged into the transformers main branch soon. Until then, install from the commit below.

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

The following example generates a brief image description:

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")

messages = [
    {
        "role": "user",
        "content": [
            {
                "type": "image",
                "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg",
            },
            {"type": "text", "text": "Describe this image in one sentence."},
        ],
    }
]

inputs = processor.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    reasoning_effort="no_think",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0, inputs["input_ids"].shape[1] :], skip_special_tokens=True))

OpenAI-compatible API

For API access, start a server using the vLLM deployment instructions, then run the following client example:

from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:8000/v1", api_key="EMPTY")

response = client.chat.completions.create(
    model="hy4-flash",
    messages=[
        {"role": "user", "content": "Hello! Can you briefly introduce yourself?"},
    ],
    temperature=0.9,
    top_p=1.0,
    extra_body={"chat_template_kwargs": {"reasoning_effort": "no_think"}},
)
print(response.choices[0].message.content)

Deployment

DFly2 for Speculative Decoding

DFly2 is Hy4 flash's speculative-decoding drafter, trained with AngelSpec and built directly on the target model's Top-k Sparse KV: each draft layer shares the KV cache (KV Share) and the compressed indexer's selection of up to 2,048 positions (Index Share) with its corresponding sparse attention layer. This yields three advantages:

  • Constant cost: each draft token attends to at most ~2K keys, regardless of context length.
  • Zero extra KV memory: no separate KV cache is maintained for the drafter.
  • PD-disaggregation ready: not involved in prefill; the prefill-to-decode transfer adds only one last-layer hidden state.

Quantization

We provide AngelSlim, a more accessible, comprehensive, and efficient toolkit for large model compression. AngelSlim supports a comprehensive suite of compression tools for large-scale multimodal models, including common quantization algorithms, low-bit quantization, and speculative sampling.

For this model, we have provided a GGUF compressed version for end-to-end testing purposes.

Inference Frameworks

For production serving, we recommend using vLLM or SGLang. Please refer to the recipes:

vLLM

Use official prebuilt image vllm/vllm-openai:hy4-flash:

docker run --gpus all \
  -p 8000:8000 \
  --ipc=host \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:hy4-flash tencent/Hy4-flash-FP8 \
    --tensor-parallel-size 8 \
    --speculative-config '{"num_speculative_tokens":5,"method":"dfly"}' \
    --attention-backend FLASHMLA_SPARSE \
    --tool-call-parser hy_v4 \
    --reasoning-parser hy_v4 \
    --enable-auto-tool-choice \
    --port 8000 \
    --served-model-name hy4-flash

SGLang

Use the official prebuilt image lmsysorg/sglang:hy4-flash (multi-arch, x86 and Arm):

docker pull lmsysorg/sglang:hy4-flash

docker run --gpus all \
  -p 8000:8000 \
  --ipc=host \
  lmsysorg/sglang:hy4-flash \
  sglang serve \
    --trust-remote-code \
    --model-path tencent/Hy4-flash-FP8 \
    --tp 8 \
    --cuda-graph-backend-prefill disabled \
    --speculative-algorithm DFLY \
    --speculative-dfly-block-size 6 \
    --host 127.0.0.1 \
    --port 8000

Finetuning

Hy4 flash provides a complete model finetuning pipeline. For detailed documentation, please refer to: Finetuning Guide

License

Hy4 flash is released under the Tencent Hy License. See LICENSE for details.

Contact Us

If you have any questions or suggestions, feel free to reach out to our R&D and product teams via email:

📧 hunyuan_opensource@tencent.com


Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Модель не помещается в память одной GPU (80 ГБ).

Класс архитектуры
HYV4FlashForConditionalGeneration
Ревизия весов
92ea759

0 моделей