[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116448":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":8,"rankLanguage":8,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":8,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},116448,"Hy4-flash","Tencent-Hunyuan\u002FHy4-flash","Tencent-Hunyuan",null,"Python",93,8,54,1,0,6,23,21,65.66,"Other",false,"main",true,[],"2026-11-18 04:24:10","2026-11-23 12:14:04","\u003Cp align=\"left\">\n    \u003Ca href=\"README_CN.md\">中文\u003C\u002Fa>&nbsp;｜&nbsp;English\n\u003C\u002Fp>\n\u003Cbr>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Flogo-en.png\" alt=\"Tencent Hy\" width=\"400\"\u002F>\n\u003C\u002Fp>\n\n\u003Cdiv align=\"center\" style=\"line-height: 1;\">\n\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Tencent%20Hy%20License-blue)](#license)\n&nbsp;&nbsp;\n[![Hugging Face](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FHugging%20Face-Tencent%20Hy-ffc107?color=ffc107&logoColor=white)](https:\u002F\u002Fhuggingface.co\u002Ftencent\u002FHy4-flash)\n&nbsp;&nbsp;\n[![ModelScope](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FModelScope-Tencent%20Hy-624aff)](https:\u002F\u002Fmodelscope.cn\u002Fmodels\u002FTencent-Hunyuan\u002FHy4-flash)\n&nbsp;&nbsp;\n[![GitCode](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGitCode-Tencent%20Hy-red?logoColor=white)](https:\u002F\u002Fai.gitcode.com\u002Ftencent_hunyuan\u002FHy4-flash)\n\n\u003C\u002Fdiv>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fhy.tencent.ai\u002Fresearch\u002Fhy4-flash\">\u003Cb>Official Website\u003C\u002Fb>\u003C\u002Fa>&nbsp;&nbsp;|&nbsp;&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FTencent-Hunyuan\u002FHy4-flash\">\u003Cb>GitHub\u003C\u002Fb>\u003C\u002Fa>&nbsp;&nbsp;|&nbsp;&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002FAngelSlim\u002FHy4-flash-GGUF\">\u003Cb>GGUF\u003C\u002Fb>\u003C\u002Fa>\n\u003C\u002Fp>\n\n---\n\n## Table of Contents\n\n- [Model Introduction](#model-introduction)\n- [Pretrained model capability](#pretrained-model-capability)\n- [Practicality and Cost Efficiency](#practicality-and-cost-efficiency)\n  - [Optimization Approach](#optimization-approach)\n  - [Task Performance and Cost](#task-performance-and-cost)\n  - [User Blind Evaluation](#user-blind-evaluation)\n- [Appendix: Benchmark results](#appendix-benchmark-results)\n- [News](#news)\n- [Model Links](#model-links)\n- [Quickstart](#quickstart)\n  - [Transformers](#transformers)\n  - [OpenAI-compatible API](#openai-compatible-api)\n- [Deployment](#deployment)\n  - [DFly2 for Speculative Decoding](#dfly2-for-speculative-decoding)\n  - [Quantization](#quantization)\n  - [Inference Frameworks](#inference-frameworks)\n    - [vLLM](#vllm)\n    - [SGLang](#sglang)\n- [Finetuning](#finetuning)\n- [License](#license)\n- [Contact Us](#contact-us)\n\n## Model Introduction\n\n**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.\n\nIts 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](#dfly2-for-speculative-decoding) (0.85B parameters), reuses the target model's KV cache and sparse indices to support long-context speculative decoding at a low, constant cost.\n\nCompared with Hy4, Hy4 Flash introduces three notable architectural changes:\n\n1. **Hybrid attention.** Sparse attention (IndexPool) and sliding-window attention (SWA) are interleaved at a 1:3 ratio.\n2. **LatentMoE.** Routed experts operate in a lower-dimensional latent space. Each token activates 16 of 512 routed experts, alongside one shared expert.\n3. **N-gram embedding (Engram).** The backbone is augmented with learned bigram and trigram representations, retrieved via multi-head hash lookups.\n\n| Property | Value |\n| --- | --- |\n| **Overview** | |\n| Architecture | Mixture-of-Experts (MoE) |\n| Total Parameters (excluding Engram, ViT, and DFly2) | 155.5B |\n| Engram Parameters | 63.5B |\n| ViT Parameters | 0.43B |\n| DFly2 Parameters | 0.85B |\n| Activated Parameters per Token | Text 11.3B + Vision 0.43B |\n| Context Length | 1M (1,048,576 tokens) |\n| **Language Backbone** | |\n| Backbone Layers | 42 — 1 dense layer and 41 MoE layers |\n| Hidden Size | 3,072 |\n| Vocabulary Size | 120,832 |\n| Residual Connections | iHC (identity Hyper-Connections) with 4 residual streams |\n| **Attention — Hybrid Layout** | |\n| Attention Architecture | Sparse attention + sliding-window attention (SWA) |\n| Backbone Layer Pattern | 2 × Sparse → 10 × (3 × SWA → Sparse) |\n| Attention Formulation | Multi-head Latent Attention (MLA) |\n| Multimodal Position Encoding | Interleaved MRoPE |\n| **Attention — Layers** | **Sparse \u002F SWA** |\n| Backbone Layers | 12 \u002F 30 |\n| Attention Heads | 32 \u002F 64 |\n| MLA q_lora_rank | 1,024 \u002F 1,024 |\n| MLA kv_lora_rank | 512 \u002F 512 |\n| QK Head Dimension (non-RoPE + RoPE) | 192 + 64 \u002F 192 + 64 |\n| Value Head Dimension | 256 \u002F 256 |\n| RoPE Base | 10,000,000 \u002F 10,000 |\n| Sparse Context Selection | Up to 2,048 tokens via group-level selection |\n| SWA Context Window | 512-token causal window (511 preceding + current) |\n| **Feed-Forward Networks** | |\n| Dense FFN Intermediate Size | 13,824 |\n| Routed Experts per MoE Layer | 512 |\n| Shared Experts per MoE Layer | 1 |\n| Activated Routed Experts per Token | 16 |\n| MoE Latent Dimension | 1,536 |\n| Expert Intermediate Size | 1,536 |\n| **N-gram Embedding** | |\n| N-gram Orders | Bigrams and trigrams |\n| Backbone Layer Indices (starting from 0) | 1, 11, 21, 31 |\n| Hash Heads per N-gram Order | 8 |\n| Hash Vocabulary Size per Head | 10.3M |\n| Embedding Dimension per N-gram Order | 768 (8 heads × 96 dimensions) |\n| Embedding Table Parameters | 63.4B |\n| **Vision Encoder** | |\n| Vision Encoder Layers | 27 |\n| Vision Encoder Hidden Size | 1,152 |\n| Vision Encoder Intermediate Size | 4,304 |\n| Vision Encoder Attention Heads | 16 |\n| Vision Patch Size | 16 × 16 |\n| Vision Position Embedding Size | 128 × 128 |\n| Visual Feature Merging | 2 x 2 |\n\n## Pretrained model capability\n\nBits-per-byte (BPB) on internal code & agent validation, lower is better:\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"pretrained-model-bpb.png\">\u003Cimg src=\"pretrained-model-bpb.png\" alt=\"Bits-per-byte on internal code and agent validation versus active parameters; lower is better\" width=\"75%\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\nFew-shot pretrain benchmark evaluation:\n\n| Category | Benchmark | #Shots | Hy4 flash Base | Hy4 Base | Hy3 preview Base | DeepSeek-V4-flash-Base | DeepSeek-V4-Pro-Base |\n| --- | --- | :---: | ---: | ---: | ---: | ---: | ---: |\n| **Knowledge** | MMLU† | 5 | 88.7 | **91.6** | 87.5 | 89.7 | 91.1 |\n|  | MMLU-Pro† | 5 | 71.1 | **73.9** | 65.8 | 68.6 | 73.4 |\n|  | MMLU-Redux† | 5 | 87.6 | **90.6** | 87.0 | 88.8 | 90.2 |\n|  | SuperGPQA† | 5 | 57.8 | **62.7** | 52.3 | 52.5 | 54.8 |\n|  | C-Eval† | 5 | 92.0 | **95.0** | 90.1 | 91.9 | 93.4 |\n|  | CMMLU† | 5 | 91.6 | **93.1** | 89.6 | 89.8 | 90.7 |\n|  | SimpleQA | 5 | 37.5 | **57.2** | 26.4 | 31.3 | 52.1 |\n|  | Chinese-SimpleQA† | 5 | 74.6 | **83.9** | 69.6 | 71.9 | 76.6 |\n|  | AGIEval (English)† | 3 | 75.4 | **79.3** | 76.0 | 76.3 | 78.2 |\n|  | AGIEval (Chinese)† | 3 | 90.6 | **91.2** | 87.8 | 88.5 | 89.8 |\n| **Reasoning** | HellaSwag (3,000-item subset) | 10 | 85.2 | **87.1** | 85.7 | 85.1 | 86.8 |\n|  | PIQA | 4 | 84.4 | **85.3** | 84.6 | 83.8 | 84.9 |\n|  | ARC-Challenge | 0 | 95.0 | **97.3** | 96.0 | **97.3** | 97.0 |\n|  | Social IQa | 0 | 80.1 | **82.7** | 80.5 | 72.5 | 73.1 |\n|  | KOR-Bench | 3 | 54.7 | **57.6** | 54.6 | 53.4 | 55.4 |\n|  | C³ | 0 | 77.3 | **82.4** | 75.9 | 74.1 | 78.3 |\n| **Math** | U-MATH | 5 | 69.8 | **71.6** | 60.9 | 57.4 | 64.8 |\n|  | OCW Courses | 5 | 64.0 | 66.7 | 62.6 | 63.3 | **68.2** |\n| **Code** | MBPP-plus | 3 | 73.7 | 74.0 | 77.4 | 76.8 | **79.1** |\n| **Multilingual** | Belebele (5-language subset)† | 5 | 93.8 | 95.0 | 94.2 | 94.4 | **95.2** |\n|  | INCLUDE† | 5 | 82.8 | **88.1** | 84.3 | 84.0 | 84.3 |\n| **Multimodal** | MMMU-Pro (Standard, 10 opts) | 4 | 52.0 | **59.6** | — | — | — |\n|  | SimpleVQA | 4 | 48.5 | **54.5** | — | — | — |\n|  | CVBench | 4 | 83.4 | **86.7** | — | — | — |\n|  | RealWorldQA | 4 | 71.1 | **72.3** | — | — | — |\n|  | TextVQA | 4 | 73.4 | **78.2** | — | — | — |\n|  | CountBenchQA | 4 | 86.6 | **90.6** | — | — | — |\n\n† 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.\n\nMultimodal results are reported only for Hy4 flash Base and Hy4 Base.\n\nARC-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).\n\n**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.**\n\n## Practicality and Cost Efficiency\n\n### Optimization Approach\n\nAcross training, evaluation, and inference, we aggressively optimized for cost efficiency while preserving intelligence:\n\n- **Pre-training**: Hy4 flash integrates hybrid attention, LatentMoE, and Engram into its architecture—reducing KV cache size to just **1\u002F24 of Hy3** and **1\u002F6 of Hy4**, with extensive scaling ladder experiments ensuring performance meets expectations.\n- **Post-training**: Self-distillation from Hy4 establishes strong general intelligence, while reinforcement learning cuts average end-to-end output tokens by **50%**.\n- **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.\n- **Inference**: Combining megakernels, 4-bit quantization, and [DFly2](#dfly2-for-speculative-decoding) pushes decoding speed past **150 tokens\u002Fs**, enabling low-cost serving at scale.\n\n### Task Performance and Cost\n\n**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\u002F13 of Hy4 preview**, **1\u002F20 of Hy4**, and **1\u002F8 of DeepSeek-V4.1-Flash-1017** (Max tier, peak-hour pricing).\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"assets\u002Fperformance-cost-workindex.png\">\u003Cimg src=\"assets\u002Fperformance-cost-workindex.png\" alt=\"Performance and cost per task on WorkIndex for Hy4 flash and comparison models\" width=\"49%\"\u002F>\u003C\u002Fa>\n  \u003Ca href=\"assets\u002Fperformance-cost-open-benchmarks.png\">\u003Cimg src=\"assets\u002Fperformance-cost-open-benchmarks.png\" alt=\"Performance and cost per task on Open Benchmarks for Hy4 flash and comparison models\" width=\"49%\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\u003Cp align=\"left\">\u003Csub>Figure 1: Performance and cost across internal and external tasks. WorkIndex (internal) comprises 8 evaluation sets covering slide creation, slide editing, human-AI slide co-writing, Markdown human-AI co-writing, document editing, spreadsheet repair, audio\u002Fvideo processing, and visual understanding.\u003Cbr\u002F>Open Benchmarks includes 7 public agent benchmarks: DeepSWE, ProgramBench, Terminal-Bench 4.0, APEX-Agents, AutomationBench, HLE, and OSWorld 2.1.\u003C\u002Fsub>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"assets\u002Fworkindex-cost.png\">\u003Cimg src=\"assets\u002Fworkindex-cost.png\" alt=\"Average cost per task on WorkIndex for Hy4 flash, Hy4 preview, and Hy4\" width=\"100%\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\u003Cp align=\"left\">\u003Csub>Figure 2: Average cost per task on WorkIndex. Task scores are 42.1 for Hy4 flash, 39.7 for Hy4 preview, and 51.4 for Hy4.\u003C\u002Fsub>\u003C\u002Fp>\n\nWe 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.\n\n### User Blind Evaluation\n\nIn 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\u002F4** (Claude Haiku 5.5: **2.81\u002F4**), with a median end-to-end completion time of **6.7 minutes** and a cost of **RMB 0.26 per task**.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"assets\u002Fblind-evaluation-en.png\">\u003Cimg src=\"assets\u002Fblind-evaluation-en.png\" alt=\"Blind evaluation comparing user satisfaction, median end-to-end completion time, and cost per task\" width=\"100%\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\u003Cp align=\"left\">\u003Csub>Figure 3: Blind evaluation with 85 internal WorkBuddy users across 259 tasks spanning 27 categories.\u003C\u002Fsub>\u003C\u002Fp>\n\n## Appendix: Benchmark results\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"assets\u002Fbenchmark.png\">\u003Cimg src=\"assets\u002Fbenchmark.png\" alt=\"Full benchmark scores, task costs, and evaluation notes for Hy4 flash and comparison models\" width=\"100%\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n## News\n\n* We release **Hy4 flash**, **Hy4 flash-FP8**, and the pre-trained **Hy4 flash-base** as open-weight models on [Hugging Face](https:\u002F\u002Fhuggingface.co\u002Ftencent\u002FHy4-flash), [ModelScope](https:\u002F\u002Fmodelscope.cn\u002Fmodels\u002FTencent-Hunyuan\u002FHy4-flash), and [GitCode](https:\u002F\u002Fai.gitcode.com\u002Ftencent_hunyuan\u002FHy4-flash).\n\n## Model Links\n\n| Model Name | Description | Hugging Face | ModelScope | GitCode |\n|:---|:---|:---:|:---:|:---:|\n| Hy4 flash | Instruct model | [Model](https:\u002F\u002Fhuggingface.co\u002Ftencent\u002FHy4-flash) | [Model](https:\u002F\u002Fmodelscope.cn\u002Fmodels\u002FTencent-Hunyuan\u002FHy4-flash) | [Model](https:\u002F\u002Fai.gitcode.com\u002Ftencent_hunyuan\u002FHy4-flash) |\n| Hy4 flash-FP8 | FP8 quantized instruct model | [Model](https:\u002F\u002Fhuggingface.co\u002Ftencent\u002FHy4-flash-FP8) | [Model](https:\u002F\u002Fmodelscope.cn\u002Fmodels\u002FTencent-Hunyuan\u002FHy4-flash-FP8) | [Model](https:\u002F\u002Fai.gitcode.com\u002Ftencent_hunyuan\u002FHy4-flash-FP8) |\n| Hy4 flash-base | Pre-trained base model | [Model](https:\u002F\u002Fhuggingface.co\u002Ftencent\u002FHy4-flash-base) | [Model](https:\u002F\u002Fmodelscope.cn\u002Fmodels\u002FTencent-Hunyuan\u002FHy4-flash-base) | [Model](https:\u002F\u002Fai.gitcode.com\u002Ftencent_hunyuan\u002FHy4-flash-base) |\n\nHy4 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.\n\n## Quickstart\n\nUse [Transformers](#transformers) to load the model for local inference, or deploy a server and access it through the [OpenAI-compatible API](#openai-compatible-api).\n\n> **Reasoning mode (instruct models)**: `reasoning_effort` supports `\"high\"` (default, thinking enabled) and `\"no_think\"` (direct responses). Both examples below use `\"no_think\"`.\n>\n> **Recommended sampling parameters**: `temperature=0.9`, `top_p=1.0`.\n\n### Transformers\n\n> Support for Hy4 flash will be merged into the `transformers` main branch soon. Until then, install from the commit below.\n\n```bash\npip install \"transformers[torch,vision] @ git+https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftransformers.git@refs\u002Fpull\u002F50903\u002Fhead\"\n```\n\nThe following example generates a brief image description:\n\n```python\nfrom transformers import AutoModelForImageTextToText, AutoProcessor\n\nmodel_id = \"tencent\u002FHy4-flash\"\nprocessor = AutoProcessor.from_pretrained(model_id)\nmodel = AutoModelForImageTextToText.from_pretrained(model_id, device_map=\"auto\")\n\nmessages = [\n    {\n        \"role\": \"user\",\n        \"content\": [\n            {\n                \"type\": \"image\",\n                \"url\": \"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fhuggingface\u002Fdocumentation-images\u002Fresolve\u002Fmain\u002Fpipeline-cat-chonk.jpeg\",\n            },\n            {\"type\": \"text\", \"text\": \"Describe this image in one sentence.\"},\n        ],\n    }\n]\n\ninputs = processor.apply_chat_template(\n    messages,\n    add_generation_prompt=True,\n    tokenize=True,\n    return_dict=True,\n    return_tensors=\"pt\",\n    reasoning_effort=\"no_think\",\n).to(model.device)\n\noutputs = model.generate(**inputs, max_new_tokens=256)\nprint(processor.decode(outputs[0, inputs[\"input_ids\"].shape[1] :], skip_special_tokens=True))\n```\n\n### OpenAI-compatible API\n\nFor API access, start a server using the [vLLM deployment instructions](#vllm), then run the following client example:\n\n```python\nfrom openai import OpenAI\n\nclient = OpenAI(base_url=\"http:\u002F\u002F127.0.0.1:8000\u002Fv1\", api_key=\"EMPTY\")\n\nresponse = client.chat.completions.create(\n    model=\"hy4-flash\",\n    messages=[\n        {\"role\": \"user\", \"content\": \"Hello! Can you briefly introduce yourself?\"},\n    ],\n    temperature=0.9,\n    top_p=1.0,\n    extra_body={\"chat_template_kwargs\": {\"reasoning_effort\": \"no_think\"}},\n)\nprint(response.choices[0].message.content)\n```\n\n## Deployment\n\n### DFly2 for Speculative Decoding\n\nDFly2 is Hy4 flash's speculative-decoding drafter, trained with [AngelSpec](https:\u002F\u002Fgithub.com\u002FTencent\u002FAngelSpec) 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:\n\n- **Constant cost**: each draft token attends to at most ~2K keys, regardless of context length.\n- **Zero extra KV memory**: no separate KV cache is maintained for the drafter.\n- **PD-disaggregation ready**: not involved in prefill; the prefill-to-decode transfer adds only one last-layer hidden state.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"assets\u002Fdfly2.png\">\u003Cimg src=\"assets\u002Fdfly2.png\" alt=\"DFly2 architecture: each draft layer reuses the KV cache and the indexer-selected positions of a sparse attention layer of Hy4 flash\" width=\"75%\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n### Quantization\n\nWe provide [AngelSlim](https:\u002F\u002Fgithub.com\u002Ftencent\u002FAngelSlim), 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.\n\nFor this model, we have provided a [GGUF](https:\u002F\u002Fhuggingface.co\u002FAngelSlim\u002FHy4-flash-GGUF) compressed version for end-to-end testing purposes.\n\n### Inference Frameworks\n\nFor production serving, we recommend using [vLLM](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm) or [SGLang](https:\u002F\u002Fdocs.sglang.io\u002F). Please refer to the recipes:\n- [Hy4 flash vLLM Recipe](https:\u002F\u002Frecipes.vllm.ai\u002Ftencent\u002FHy4-flash)\n- [Hy4 flash SGLang Cookbook](https:\u002F\u002Fdocs.sglang.io\u002Fcookbook\u002Fautoregressive\u002FTencent\u002FHy4-flash)\n\n#### vLLM\n\nUse official prebuilt image `vllm\u002Fvllm-openai:hy4-flash`:\n\n```bash\ndocker run --gpus all \\\n  -p 8000:8000 \\\n  --ipc=host \\\n  -v ~\u002F.cache\u002Fhuggingface:\u002Froot\u002F.cache\u002Fhuggingface \\\n  vllm\u002Fvllm-openai:hy4-flash tencent\u002FHy4-flash-FP8 \\\n    --tensor-parallel-size 8 \\\n    --speculative-config '{\"num_speculative_tokens\":5,\"method\":\"dfly\"}' \\\n    --attention-backend FLASHMLA_SPARSE \\\n    --tool-call-parser hy_v4 \\\n    --reasoning-parser hy_v4 \\\n    --enable-auto-tool-choice \\\n    --port 8000 \\\n    --served-model-name hy4-flash\n```\n\n#### SGLang\n\nUse the official prebuilt image `lmsysorg\u002Fsglang:hy4-flash` (multi-arch, x86 and Arm):\n\n```bash\ndocker pull lmsysorg\u002Fsglang:hy4-flash\n\ndocker run --gpus all \\\n  -p 8000:8000 \\\n  --ipc=host \\\n  lmsysorg\u002Fsglang:hy4-flash \\\n  sglang serve \\\n    --trust-remote-code \\\n    --model-path tencent\u002FHy4-flash-FP8 \\\n    --tp 8 \\\n    --cuda-graph-backend-prefill disabled \\\n    --speculative-algorithm DFLY \\\n    --speculative-dfly-block-size 6 \\\n    --host 127.0.0.1 \\\n    --port 8000\n```\n\n## Finetuning\n\nHy4 flash provides a complete model finetuning pipeline. For detailed documentation, please refer to: [Finetuning Guide](.\u002Ffinetune\u002FREADME.md)\n\n## License\n\nHy4 flash is released under the **Tencent Hy License**. See [LICENSE](.\u002FLICENSE) for details.\n\n## Contact Us\n\nIf you have any questions or suggestions, feel free to reach out to our R&D and product teams via email:\n\n📧 **hunyuan_opensource@tencent.com**\n\n---\n\n\u003Cp align=\"center\">\n  \u003Ci>Hy4 flash is developed by the Tencent Hy Team.\u003C\u002Fi>\n\u003C\u002Fp>\n","Hy4-flash 是腾讯混元团队推出的高效多模态大语言模型，专为长上下文与低成本推理优化。它采用220B总参数（含64B Engram）但仅激活12B参数\u002FToken，支持文本+图像输入、文本生成及最高1M tokens上下文；核心创新包括混合稀疏注意力（IndexPool+滑动窗口）、41层MoE语言主干、SigLIP2视觉编码器，以及集成DFly2轻量级推测解码器（0.85B参数）。适用于需高吞吐、低延迟的长文档理解、多模态内容生成与企业级API服务等场景。",2,"2026-11-24 04:53:32","CREATED_QUERY"]