Hy4 flash is Tencent's open-weight 220B mixture-of-experts model with about 12B active parameters, a 1M-token window and image input. Locally, Tencent's own GGUF runs on a 128 GB Mac or a 128 GB Spark-class machine, because the 59 GiB Engram lookup table can be memory-mapped from an SSD. Servers need eight data-centre GPUs for the official recipes. The Tencent Hy License exempts purely internal use, where neither the model nor its outputs reach third parties, from its Model-as-a-Service conditions.
Tencent launched Hy4 flash in its apps and cloud API on 16 November 2026 and published the weights two days later. The Hugging Face repository is dated 17 November, and the first public discussions and the llama.cpp support pull request appeared on 18 November. By 23 November it was seventh on Hugging Face’s trending list, and the official GGUF repository had more than 130,000 downloads. Tencent’s larger Hy4, whose repository dates from 29 October, is a 1.55 TB BF16 checkpoint; the flash model is the one a single machine can realistically hold.
This guide is built from the model card, config.json, the licence, the file listings and the vLLM, SGLang and AngelSlim deployment notes as they stood on 23 November 2026. To size your own machine, our LLM VRAM calculator applies the same weights-plus-cache method used below, and the tokens-per-second calculator turns memory bandwidth into a speed ceiling.
What is Hy4 flash? Release, size and architecture
Tencent calls Hy4 flash its “most cost-effective Hy model to date”. The headline 220B includes a large table of n-gram embeddings, so the parameter count overstates the compute each token needs.
| Property | Hy4 flash |
|---|---|
| Total parameters | About 220B: 155.5B backbone, 63.5B Engram, 0.43B vision encoder, 0.85B drafter |
| Active per token | 11.3B text plus 0.43B vision |
| Layers | 42: one dense, 41 mixture-of-experts |
| Experts | 512 routed, 16 per token, plus 1 shared, running in a 1,536-dimension latent space |
| Attention | Multi-head latent attention; 12 sparse layers (up to 2,048 selected tokens) and 30 sliding-window layers (512 tokens) |
| Context window | 1,048,576 tokens |
| Input and output | Text and images in, text out |
| Built-in drafter | DFly2, five layers, for speculative decoding |
| Reasoning | reasoning_effort of high (default) or no_think |
Tencent lists three architectural changes from Hy4. Sparse and sliding-window attention are interleaved one to three; together with the other two changes, Tencent says, this cuts the KV cache to a twenty-fourth of Hy3’s and a sixth of Hy4’s. The routed experts work in a narrower latent space, a design our mixture-of-experts explainer covers in general terms. And the backbone is augmented with learned bigram and trigram embeddings, called Engram, which the next sections cover because they change the memory plan.
The DFly2 drafter matters for speed on any hardware. It reuses the main model’s KV cache and its selection of up to 2,048 positions, so Tencent says it adds no separate cache and costs the same per draft token at any context length. Tencent reports serving speeds above 150 tokens per second with its own kernels, 4-bit weights and DFly2; that is a vendor figure for its infrastructure, not a desktop number.
Hy4 flash files: BF16, FP8 and the official GGUF
Tencent published three checkpoints and its AngelSlim compression team published the GGUFs. Sizes below come from the Hugging Face file listings on 23 November 2026.
| Repository | Build | Download size | Notes |
|---|---|---|---|
| tencent/Hy4-flash | BF16 | 440.5 GB | Reference instruct model |
| tencent/Hy4-flash-FP8 | FP8 (e4m3), Engram and some layers in BF16 | 287.1 GB | Used in the vLLM and SGLang commands on the model card |
| tencent/Hy4-flash-base | BF16 base model | 438.8 GB | Pre-trained only; not a chat model |
| AngelSlim/Hy4-flash-GGUF | Q4_K_M | 168.3 GB (156.79 GiB) in two files | The “safe default” |
| AngelSlim/Hy4-flash-GGUF | Q3_K | 155.4 GB (144.70 GiB) in two files | Mixed Q3_K and Q4_K experts |
| AngelSlim/Hy4-flash-GGUF | IQ2-AH | 135.0 GB (125.73 GiB) in two files | Experts’ gate and up projections at about 2 bits |
| AngelSlim/Hy4-flash-GGUF | SPARK-4Bit / SPARK-4Bit-Fast | 162.5 / 159.6 GB | NVIDIA 4-bit floating point, for Spark devices |
| AngelSlim/Hy4-flash-GGUF | mmproj | 1.04 GB | Vision encoder for image input |
Each two-part GGUF ends with the same 63.36 GB second file, byte for byte. That is the Engram table, stored at roughly one byte per parameter and kept apart from the rest, which is what allows it to be placed differently. The first file holds the backbone that every token actually computes with: 105.0 GB for Q4_K_M, 92.0 GB for Q3_K and 71.6 GB for IQ2-AH.
AngelSlim’s card says Q4_K_M keeps most non-expert weights at Q8_0, with the expert down projections at Q6_K on 19 layers. IQ2-AH is the smallest, but it keeps most non-expert weights in BF16 and drops the experts’ gate and up projections to IQ2_XXS. Tencent’s own model card describes the GGUF as provided “for end-to-end testing purposes”, which is a useful signal: it is official, but not presented as the production serving path. AngelSlim’s GGUF card also says a build for the Strata engine is “coming soon”; our guide to the Strata engine explains how that engine splits a model across GPU, RAM and SSD.
Community conversions began appearing within a day, including MLX builds for Macs such as TensorFold’s 4-bit at 129.9 GB and nace-ai’s 3.1-bit at 85.5 GB, NVFP4 and EXL3 builds, and “uncensored” or “abliterated” variants. None of these are Tencent’s, and every one is a derivative that stays under the Tencent Hy License.
What the Engram table means for Hy4 flash memory
Engram is a set of learned embedding tables indexed by hashes of the last two or three tokens. Tencent’s card lists 8 hash heads per n-gram order, a hash vocabulary of about 10.3 million entries per head and 768 dimensions per order, feeding four backbone layers. That multiplies out to 63.4 billion parameters, about 126.8 GB in BF16.
The important property is how it is used. A token does not multiply against the whole table; it looks up a handful of rows chosen by hashing the preceding tokens. Each token therefore reads a tiny fraction of the table, which makes it a natural candidate for slower memory. Here is what the primary sources actually say about placement:
- Tencent’s model card describes Engram as “learned bigram and trigram representations, retrieved via multi-head hash lookups”. It says nothing about where to store it.
- vLLM’s Hy4 flash recipe states that “Engram tables are offloaded to host RAM by default”, and tells operators to provision host memory in addition to GPU memory.
- AngelSlim’s Apple silicon notes say to keep the GGUF on a local SSD because “the ~59 GiB Engram table is lazily mapped”, and size the resident weights at about 97.4 GiB.
- AngelSlim’s Spark notes place the per-layer embedding table on the CPU side through memory mapping and lazy loading, and note that on Spark’s unified memory this does not add physical memory.
- SGLang’s cookbook calls them “n-gram memory tables” and gives no placement guidance.
So the honest answer is: yes, in practice the table can live in system RAM or be read from an SSD, and the published local recipes depend on that. What nobody has published is a measurement of how much a slow SSD or a busy disk costs in tokens per second, so put the files on fast local NVMe and benchmark your own prompts. The same idea appears in Qwen3.8-Flash-Next, whose 51-billion-parameter n-gram table our Qwen 3.8 hardware and file-size guide covers.
Hy4 flash VRAM requirements by machine
The arithmetic has three parts: the backbone weights that must be in fast memory, the KV cache and runtime buffers, and the Engram table, which can sit elsewhere. AngelSlim’s Apple silicon notes give the cleanest worked figures, for Q4_K_M:
- Weights: about 97.4 GiB resident.
- KV cache plus sparse-index pool: 5.7 GiB per 256,000 tokens at FP16. That is very small for this context length, thanks to the sliding-window layers and latent attention.
- Compute buffer: 2.4 GiB at a micro-batch of 512, 4.5 GiB at 1,024.
- Drafter context: 0.9 GiB; vision projector: about 1.0 GiB.
- Total: about 105.5 to 107.6 GiB for a shared 256K pool, against a 112 GiB GPU memory limit set on a 128 GB Mac. A 512K pool with the larger buffers reached 113.3 GiB and failed.
| Machine | Build | Fits? | Status on 23 November 2026 |
|---|---|---|---|
| Mac with 128 GB unified memory (M5 Max tested) | Q4_K_M or Q3_K GGUF | Yes, with Engram memory-mapped from SSD | AngelSlim’s patched llama.cpp; 44 to 50 tok/s decode with the drafter, vendor-reported |
| 128 GB GB10-class Spark machine | SPARK-4Bit GGUF | Yes, with Engram memory-mapped | AngelSlim’s patch; 25.8 to 33.4 tok/s decode, vendor-reported |
| 8× H200 (1,128 GB) | BF16 | Yes | vLLM’s rendered default recipe |
| 8 Hopper or Blackwell GPUs | FP8 | Yes | Model card commands for vLLM and SGLang, TP8 |
| Single 96 GB workstation GPU | IQ2-AH GGUF | On paper: 71.6 GB backbone fits, Engram in RAM | Not tested by Tencent or AngelSlim |
| 24 to 32 GB GPU plus system RAM | Any GGUF with experts offloaded | Needs about 128 GB of RAM for the backbone | Untested; depends on the unmerged llama.cpp support |
| Mac with 64 or 96 GB | Q3_K or IQ2-AH | The Q4_K_M plan does not fit; smaller builds unmeasured | Community MLX builds exist; no official figures |
The Spark row relies on the same trick as the Mac: the SPARK-4Bit file is 151.3 GiB, larger than the machine’s memory, and works only because the Engram rows are mapped from disk and read when needed. NVIDIA’s GB10 hardware appears under several names; for the laptop version see our notes on NVIDIA’s RTX Spark platform, which compares it with the desktop DGX Spark.
For speed estimates, AngelSlim gives a useful constant: decoding Q4_K_M reads about 10.4 GB per token, so a machine with 550 GB/s of bandwidth spends about 19 ms of each 27 ms token just reading weights. Divide your memory bandwidth by roughly 10 GB to get a single-stream ceiling before speculative decoding, which the drafter then improves on.
On servers, vLLM’s page lists VRAM hints of 529 GB for BF16 and 345 GB for FP8, and calls them “conservative aggregate estimates, not measured GPU minima”: they are the download sizes times 1.2. Because the Engram table is offloaded by default, budget for it in host RAM: by our arithmetic about 127 GB, since even the FP8 checkpoint keeps Engram in BF16. vLLM lists H100, H200, B200, GB200, B300 and GB300 as supported and says AMD Instinct is not supported yet.
If 128 GB of fast memory is out of reach, a smaller model is the better choice; our model-by-VRAM shortlist starts at 8 GB, and our estimate of GPU needs for a local LLM explains the method in more depth.
How to run Hy4 flash locally: llama.cpp, vLLM and SGLang
No route was a tagged release on 23 November 2026. Every one uses a pull request, a branch or a model-specific container image, so pin the exact commit or image digest you test.
llama.cpp with the official GGUF
Hy4 flash support is in llama.cpp pull request #32517, “Model : add hy_v4_flash support”, opened on 18 November and still open. AngelSlim’s general instructions build that branch:
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
git fetch origin pull/32517/head:hy4-flash
git checkout hy4-flash
cmake -B build # add -DGGML_CUDA=ON for NVIDIA GPUs
cmake --build build --config Release -j
./build/bin/llama-server -m Hy4-flash-Q4_K_M-00001-of-00002.gguf \
-c 8192 -ngl 99 --jinja --port 8080
Point the server at the first file and keep both parts in one folder. For the tuned Apple silicon and Spark setups, AngelSlim ships separate patches against upstream commit 2cbca389f, with fused kernels, the drafter enabled through --spec-type draft-mtp and a recommended 196,608-token window on Spark. On a Mac the notes raise the GPU memory limit with sudo sysctl iogpu.wired_limit_mb=114688, which resets on reboot. Image input needs the 1.04 GB mmproj file.
vLLM and SGLang on GPU servers
Tencent recommends vLLM or SGLang for production serving. vLLM uses the vllm/vllm-openai:hy4-flash image because no released wheel supports the model yet, and the model card’s command serves the FP8 checkpoint across eight GPUs with the DFly2 drafter:
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 --served-model-name hy4-flash
vLLM’s recipe defaults to an 8,192-token maximum length and four concurrent sequences, so raise both deliberately for long-context work. SGLang uses the multi-architecture lmsysorg/sglang:hy4-flash image, or a source build from the hy4_flash_squash branch, and names H200, B300 and GB300 hardware. Transformers support comes from pull request #50903 until it merges. Our comparison of vLLM, Ollama and llama.cpp explains when a data-centre engine is worth the extra operations work.
Ollama, LM Studio and sampling settings
Ollama’s library had no official hy4-flash model on 23 November, only user-uploaded community tags whose default is 227 GB. LM Studio and other apps on upstream llama.cpp need the merged architecture before they can load Tencent’s GGUF. Tencent recommends temperature=0.9 and top_p=1.0; set reasoning_effort to no_think through the chat template for direct answers.
Tencent Hy4 license: what the Tencent Hy License allows
Hy4 flash, Hy4 and the official GGUF all ship the same file: the Tencent Hy License, Version 1.0. It states that it is derived from Apache 2.0 with one main change, an extra Section 10 for large Model-as-a-Service businesses.
- Grant. A perpetual, worldwide, royalty-free copyright and patent licence to reproduce, modify, distribute and sublicense the work, which the licence defines to include the weights. Fine-tuned, quantised, distilled, merged and pruned versions count as derivatives.
- Redistribution. Pass on a copy of the licence, mark changed files and keep the notices. Any terms you add must not “remove, limit, or conflict with” Section 10, which follows the model to every recipient.
- The Model-as-a-Service condition. MaaS means giving third parties remote access to inference or fine-tuning, for example through an API, allowing them to submit inputs or specify parameters or training data. End-user products whose model capabilities are confined to specific features or workflows, without general-purpose model access, and merely relaying requests to an independently operated third-party service, are excluded. If you operate a MaaS business, you need a separate written licence from Tencent when either your aggregate worldwide gross revenue exceeds US$50 million in any 12 consecutive months, whether or not it comes from the model, or before you use the model in or for any product or service of yours that has more than 100 million monthly active users in any calendar month.
- Internal use. Section 10.2 does not apply to use “solely for internal purposes” where neither the model, its derivatives nor their outputs are made available to third parties.
“You” includes every entity that controls, is controlled by or is under common control with the licensee, so the revenue test covers the corporate group. A bank, insurer or manufacturer running Hy4 flash only for its own staff, with neither the model nor its outputs passed to third parties, is the situation Section 10.3 describes. A software company that exposes a general-purpose Hy4 flash API to customers matches Section 10.1’s definition of MaaS.
What the licence does not contain matters as much. Earlier Tencent Hunyuan models, such as Hunyuan-A13B in June 2025, came under the Tencent Hunyuan Community License, which did not apply in the European Union, the United Kingdom or South Korea and incorporated an acceptable use policy. The Tencent Hy License has no territory carve-out, no acceptable use policy and no requirement to display the model’s name. For European teams that is the most visible difference from earlier Tencent weights; your own legal team should confirm what it means for you. Our enterprise checklist for open-weight licences lists the wider questions, and none of this is legal advice.
Hy4 flash vs Hy4: which one to run
Tencent positions the two models plainly. On WorkIndex, its internal benchmark of slide, document, spreadsheet, audio, video and vision tasks, Hy4 flash scores 42.1, Hy4 preview 39.7 and Hy4 51.4, and Hy4 flash costs about a twentieth of Hy4 per task. In a blind test with 85 internal users across 259 tasks, Hy4 flash scored 2.79 out of 4 for satisfaction against 2.81 for Claude Haiku 5.5. All these figures are Tencent’s own, from its own harness and users.
| Question | Hy4 flash | Hy4 |
|---|---|---|
| Checkpoint size | 440.5 GB BF16, 168.3 GB Q4_K_M GGUF | About 1.55 TB BF16 |
| Smallest documented host | 128 GB Mac or Spark-class machine | Multi-GPU server |
| Tencent’s recommended work | Deep search, documents, slides, simple front-end demos, computer use | Long-horizon software engineering and complex tasks |
| Licence | Tencent Hy License 1.0 | Same |
For a single workstation, the comparison is really with other sparse models in the same memory class. Our walkthrough of DeepSeek V4.1 Flash covers a close alternative, and the local coding model shortlist is the better starting point if code is the main workload, since Tencent itself steers long engineering tasks to Hy4.
Before any pilot, test three things on your own data. First, reasoning length: one of the first public discussions on the model page concerned how many tokens thinking consumed, and Tencent says reinforcement learning halved average output tokens, so measure it on your prompts. Second, multi-turn tool calls with the hy_v4 parsers. Third, any community quantisation below Q4, against Tencent’s Q4_K_M on the same tasks. Our guide to quantisation on on-premises GPUs explains why the smallest file is not automatically the right one.
How VDF AI fits
VDF AI does not ship, host or fine-tune Hy4 flash. If you serve it yourself, it is one model endpoint among several, and the work around it is what VDF AI provides: governed AI agents, multi-agent workflows in VDF AI Networks, private RAG over company documents, and role-based access control and audit logs on every plan, on your own infrastructure.
vLLM, SGLang and llama-server all expose OpenAI-compatible APIs, and VDF AI Chat and VDF AI Agents accept any OpenAI-compatible endpoint as a model. VDF AI Router registers Ollama and custom on-premises deployments next to the cloud models your policy approves, prefers local models when they are available, applies allow and deny lists before each call and has an air-gap mode that keeps routing on local models only. That suits Tencent’s own advice: send everyday document and search work to a model like Hy4 flash and reserve larger models for the tasks your evaluation shows need them.
On-premises deployments include native Microsoft Entra ID single sign-on, with other identity providers connected through a proxy. Production self-hosting of VDF AI runs on Linux; the infrastructure requirements list the details.
Sources
Primary documents, as retrieved on 23 November 2026.
- Tencent: Hy4-flash model card, config.json, Tencent Hy License, commit history, Hy4-flash-FP8, Hy4-flash-base, Hy4, GitHub repository and official page
- AngelSlim: Hy4-flash-GGUF, Apple silicon notes and Spark notes
- Serving: vLLM recipe for Hy4-flash, SGLang cookbook for Hy4-flash and llama.cpp pull request #32517
- For licence comparison: Tencent Hunyuan Community License, Hunyuan-A13B
- Community builds mentioned: TensorFold MLX 4-bit and nace-ai MLX 3.1-bit
- Hugging Face trending models
Planning where a 220B model with a 59 GiB lookup table should run? See how VDF AI Router sends each request to the approved on-premises endpoint that fits it, or talk to our team.