/ Модель

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

Размер весов
441 ГБ
Лицензия
Своя лицензия
Архитектура
hy_v4_flash · dense
Базовая модель
Hy4-flash
Библиотека
transformers
Опубликована
21 ноя 2026

Hy4-Flash-BF16-GGUF

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

Мультимодальная сборка Hy4 Flash для диалогов, следования инструкциям и анализа изображений с генерацией текста.

576скачиваний за 30 дней0лайковвеса обновлены28 ноя 2026

Бенчмарки

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

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

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

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

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

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

AMAImedia/Hy4-Flash-BF16-GGUF — сборка Hy4 Flash, опубликованная AMAImedia в рамках платформы автоматизации многоязычного дубляжа NOESIS. Это мультимодальная модель Tencent семейства Hy4: она принимает текст и изображения и генерирует текст, поддерживает диалог и следование инструкциям. В README заявлены 220 млрд параметров с учётом Engram, 12 млрд активных параметров на токен и контекст до 1 млн токенов. Архитектура включает 42-слойную языковую основу с MoE, гибридным вниманием и визуальным энкодером на базе SigLIP2; репозиторий содержит GGUF BF16, GGUF Q4_K_M и safetensors.

Модель рассчитана на диалоговые и рабочие задачи, анализ изображений и применение в многоязычных сценариях. Карточка описывает оптимизации для эффективного инференса и спекулятивного декодирования; перечисленные характеристики относятся к Hy4 Flash и не гарантируют одинаковую скорость на любой сборке и оборудовании. Для репозитория указана лицензия other, поэтому конкретные условия использования следует сверять с лицензией исходной модели Tencent.

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

  • ответы на вопросы по изображениям
  • диалоговый помощник для рабочих задач
  • следование текстовым инструкциям
  • анализ длинных текстовых контекстов
  • многоязычные рабочие сценарии

Ограничения

Условия лицензии с пометкой other требуют проверки по карточке и лицензии исходной модели. Скорость и доступность инференса зависят от оборудования и выбранного формата весов.

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

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

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

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

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

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

Открыть на Hugging Face

NOESIS / AMAImedia

Released as part of the NOESIS Professional Multilingual Dubbing Automation Platform (framework: Deterministic Hybrid Control Framework for Frozen Neural Operators — DHCF-FNO).

AMAImedia


License    Hugging Face    ModelScope    GitCode


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 FaceModelScopeGitCode
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




license: other license_name: tencent-hy-license license_link: https://huggingface.co/tencent/Hy4-flash/blob/main/LICENSE base_model: tencent/Hy4-flash base_model_relation: quantized pipeline_tag: image-text-to-text tags:

  • strata
  • hy4-flash
  • moe
  • quantization
  • latent-moe
  • engram
  • dfly2

Hy4 flash is Tencent's most cost-effective Hy model to date. It has 220B parameters in total (64B of them in its Engram lookup) and uses just 12B per token. It reads text and images, writes text, and supports up to 1M tokens of context (1,048,576).

Pick your pack

The number in the name is your RAM. Find your computer's memory and take the pack with the same number.

Your RAMGraphics cardPack fileMemory in useTotal on disk
64 GiB8, 12 or 16 GiBHy4-Flash-SQ-64.strata59.4 GiB129.61 GB
96 GiB8 or 12 GiBHy4-Flash-SQ-96.strata85.1 GiB157.16 GB
128 GiB8 or 12 GiBHy4-Flash-SQ-128.strata107.5 GiB181.23 GB

"Graphics card" is the card's memory. "Memory in use" is RAM plus graphics memory, approximately. "Total on disk" is the pack plus the shared lookup file every pack needs, Hy4-Flash-Engram-Q8.strata, for text. File sizes and checksums are below.

  • 64 GiB of RAM and an 8 GiB graphics card are enough to start. Take SQ-64.
  • 128 GiB of unified memory? SQ-128 is the closest match to the original. SQ-96 leaves about 22 GiB free for other work.

Get started

  1. Install Strata. Download the app for Windows, Linux or Mac. It needs no account.
  2. Choose Hy4-Flash and the pack that matches your RAM.
  3. Start chatting.

Linux or Mac:

curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh

Windows PowerShell:

irm -TimeoutSec 120 https://github.com/Niko1221/Strata/releases/latest/download/install.ps1 | iex

On Windows, open a new terminal afterwards. Then run strata launch (or strata launch --family hy4-flash --model SQ-64) and follow the prompts.

How close is it to the original?

SQ-128 stays closest to the original model on both test sets. Each smaller pack gives up some closeness to fit in less memory.

How to read this. Each pack's next-word predictions are compared with the full-precision model (BF16). The score is the average gap between the two, called KL divergence. Zero means identical, so a shorter bar is better.

PackReasoning promptsTool-calling prompts
SQ-1280.087890.17969
SQ-960.135910.23661
SQ-640.232060.51828

Each set contains eight held-out prompts of 512 tokens. The evaluation scores all 4,096 prompt positions using the packed model and its required Engram file across all 42 layers. The tool-calling column measures token distributions on tool-related prompts. End-to-end tool success requires a separate evaluation.

Performance with Strata

Up to 240 tokens a second. Speeds measured with Strata on eight machines, from two V100 cards to an RTX PRO 6000.

Measured with Strata 0.2.18 (strata-hy4 0.1.64, built-in DFly2 speculative decoding on): SQ-96 and SQ-64 on RTX PRO 6000 (4K–104K context); SQ-64 on RTX 5090 (128K context), Apple M5 Max 128 GB (Metal 4, 4K–32K context), Radeon AI PRO R9700 / RX 9070 XT (4K context), Ryzen AI Max+ 395 Strix Halo 128 GB (4K–128K context), RTX 5080 16 GB + 64 GB RAM (4K context), DGX Spark GB10 128 GB (4K context), and 2× Tesla V100 32 GB (4K context).

Recommended settings

SettingValue
temperature0.9
top_p1.0
top_koff

Use the same values with thinking on (reasoning_effort high, the default) and for direct answers (no_think).

Files and checksums

FileSize
Hy4-Flash-SQ-64.strata62.03 GB
Hy4-Flash-SQ-96.strata89.58 GB
Hy4-Flash-SQ-128.strata113.65 GB
Hy4-Flash-Engram-Q8.strata, needed by every pack67.58 GB
Hy4-Flash-Vision.strata, for reading images0.93 GB
6e8ba2729465f38ed42b5bfa7db02c92beddc25ca0413b7f0c24ab9f1e8b51f4  Hy4-Flash-SQ-128.strata
3b1c5755a220c69892b3d2dbad506b8593a30be24b17a390ecbd1642c0c1e14c  Hy4-Flash-SQ-96.strata
b2cc38fe4bded35df82a701f9e868ea09c6fcd9be52c8446289e394f804417b2  Hy4-Flash-SQ-64.strata
ab0cf9b3f9c64bd25f6212d4508e7443ab8b9bc133fbccc7bdfb83510a20c2c1  Hy4-Flash-Engram-Q8.strata
ef09bceff8f01b8d226d2dc56aef09cec719b21b45783ee9b5d64e7241b72a09  Hy4-Flash-Vision.strata

Support Strata

Licence

  • The Strata engine: MIT.

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

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

GPU в ailist

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

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

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

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

0 моделей