New API
  • Home
  • Docs
  • Console
  • AgentAgentHotHot
  • Partners
Sign in
AI 资讯

Tencent Hy4 Flash Local GGUF: 126 GiB, Now in llama.cpp

OpenLux Team · Published 2026-11-26

Tencent's smallest official GGUF build of Hy4 flash is 125.73 GiB, according to the AngelSlim model card, and the recommended Q4_K_M build is 156.79 GiB. Yet Tencent's announcement on X on 25 November 2026 claims up to 58 tokens per second on a 24 GB RTX 4090D and 50 on a 128 GB Mac M5 Max. Both statements are true, and the gap between them is the whole story: the model only runs on small GPUs by keeping most of its weights in system memory or on SSD. The other news is that mainline llama.cpp merged Hy4 flash support on 25 November, through a different pull request from the one Tencent's card still points to.

Hy4 flash is also on OpenLux as an API; group prices are on the hy4-flash model page. The OpenLux Team compiled this from Tencent's model cards, the llama.cpp repository and Tencent's post, all checked on 27 November 2026.

What Tencent actually released

Tencent's compression team, AngelSlim, published five GGUF builds plus a vision projector file. Q4_K_M is the default at 156.79 GiB; the card says "use this unless you are memory-constrained." Q3_K is 144.70 GiB, two NVIDIA 4-bit float builds for Spark devices are 151.3 and 148.6 GiB, and IQ2-AH, which squeezes the routed experts to about 2 bits, is 125.73 GiB. Dropping from Q4_K_M to the smallest build saves only 31.06 GiB, because only the experts' gate and up projections go down to about 2 bits; their down projections stay at 4-bit and most non-expert weights are kept in BF16.

The base model explains the size. The Hy4 flash model card gives 220 billion total parameters, including 64 billion Engram n-gram embedding parameters, with about 12 billion active per token, a 1,048,576-token context and the Tencent Hy License. It also describes the GGUF release as being "for end-to-end testing purposes", which is worth reading as a scope note rather than a production recommendation.

How a 126 GiB model runs on a 24 GB card

None of these files fits in 24 GB of VRAM. The 4090D and 16 GiB numbers come from Strata, a separate inference engine, using offloading: the AngelSlim card says CUDA builds support offloading experts to the CPU, and Metal builds support streaming experts from SSD. Only about 12 billion parameters are active for any one token, and 63.5 billion of the total sit in Engram lookup tables that are read rather than multiplied. That is why a mixture-of-experts model this large can decode at usable speed with most of it outside the GPU.

The practical requirement is therefore system memory plus fast storage, not VRAM. Even the 128 GB machines in Tencent's tables have less memory than the 144.70 GiB Q3_K file, so part of the model is read from storage as it is needed, and SSD speed matters. A 64 GB Mac mini M4 Pro running the IQ2 build through Strata reached 17.3 tokens per second of decode on the card's test, with 125 to 127 tokens per second of prefill.

The speed numbers and what they were measured on

On a Mac M5 Max with 128 GB through llama.cpp, the card lists Q3_K at 50.34 tokens per second of decode at 4K context, 49.47 at 16K and 47.37 at 32K, with prefill of 743.2, 563.0 and 520.6. Q4_K_M is a little slower: 48.13, 45.18 and 44.15. Tencent says Q3_K reaches up to 70 tokens per second on code generation. On an RTX Spark with 128 GB, the 4-bit Fast build decodes at 31.95 to 33.39 tokens per second.

Two caveats come straight from the card. The llama.cpp tests were "conducted in real workbuddy scenarios and cases", meaning Tencent's own office-agent workload. And no test goes past 32K tokens, so the model's 1M-token context is untested locally. The Strata tables use different conditions again: a 16 GiB VRAM budget, 4K input, 512 output tokens and one run per workload, where code decoding rose from 37.5 to 47.6 tokens per second with the speculative draft model switched on. The 58 tokens per second in Tencent's post is higher than any figure in that table, and the card does not show the run behind it.

llama.cpp merged a different implementation from the one on the card

The AngelSlim card tells you to build llama.cpp from pull request #32517, opened on 18 November, the day after the weights appeared, and says it is "not merged yet". That is still true. On 25 November a llama.cpp maintainer wrote that "we decide to merge #32960 instead because it's less changes to the code base."

Pull request #32960 was merged the same day and shipped in release b12755 on 26 November. It covers text and vision and supports the Engram tables, which its author kept in RAM during testing. It does not include the multi-token prediction block yet ("MTP comes later"), and neither implementation supports Tencent's DFly2 drafter. Its author reports that the converter is the one from #32517 and that results match #32517 on the same GGUF, which suggests the AngelSlim files load on mainline, but neither the PR nor the card states that outright. If a file fails to load on b12755 or later, the PR branch is still the documented path.

Long contexts are where the merged version is slower for now

The #32960 author published decode speeds on CUDA with a Q2_K_XL quant. At 8K context the merged code ran at 70.6 tokens per second against 90.3 for #32517. At 32K it was 36.2 against 85.5, and at 107K, 17.1 against 73.6, a 4.3x gap. Four follow-up optimisations, proposed as separate pull requests, bring it to 89.4, 80.1 and 61.7. With the follow-ups, prefill at 107K was 2,897 tokens per second against 2,799.

So if you build mainline today and test at a short context, you will see roughly what Tencent's tables show. If your workload is long documents or large code repositories, expect the merged build to slow down sharply past 32K until those follow-ups land, or use the PR branch the card describes.

For a server rather than a desktop, the model card's own recipes skip GGUF entirely. Tencent points to a vLLM image serving the FP8 checkpoint with 8-way tensor parallelism and DFly speculative decoding of 5 tokens, and an SGLang image with --tp 8. Both assume a full eight-GPU node, not a workstation. The card's separate claim of decoding "past 150 tokens/s" credits megakernels, 4-bit quantization and the DFly2 drafter, and names no hardware.

Local versus API: what a day of decoding is worth

The local route makes sense for privacy, offline use, or hardware you already own. It is not a way to save on token bills at small volume. A Mac running flat out at 50 tokens per second for 24 hours produces 4.32 million output tokens. On OpenLux, the same 4.32 million output tokens cost $1.21 at the hy4-flash base price and $0.73 in the hunyuan-1 group. The table uses the OpenLux pricing API at 02:01 Beijing time on 27 November 2026.

Option Ratio Input / output / cache hit per 1M tokens Monthly (100M in + 20M out) Group description (from pricing page)
hy4-flash, base price — $0.070 / $0.281 / $0.003 $12.62 —
hy4-flash, hunyuan-1 0.6 $0.042 / $0.1686 / $0.0018 $7.57 fluent semantic understanding and balanced multimodal performance
hy4-flash, hunyuan-2 0.95 $0.0665 / $0.267 / $0.00285 $11.99 fluent semantic understanding, and balanced multimodal performance
Tencent Cloud TokenHub list — ¥0.5 / ¥2 / ¥0.02 — —
Local, IQ2-AH to Q4_K_M — no token cost 125.73–156.79 GiB of weights —

Tencent Cloud's TokenHub price list also bills Hy4 flash at 50% of list until 12:00 Beijing time on 30 November. Producing the table's 20 million output tokens locally would take about 4.6 days of continuous decoding at 50 tokens per second, before counting the 100 million input tokens. On OpenLux, hy4-flash is served through the OpenAI-compatible and Anthropic Messages endpoints; the interfaces article has the Base URLs. OpenLux has no Batch API. For billing by group, see how OpenLux charges.

Which tasks to run where

Run it locally if the data cannot leave the machine, if you already own a 128 GB Mac or a DGX Spark, or if you want to study the architecture. Keep contexts under 32K on the merged llama.cpp build, use Q3_K on a 128 GB Mac (Tencent's own fastest result there), and expect Tencent's speed figures only on workloads like its office-agent tests. Use the API for long contexts, for traffic that needs more than one stream, and for anything where 4 to 5 days of local decoding equals a few dollars of tokens. Tencent's own benchmarks, covered in Hy4 flash cost per task, show where the model is strong (document, slide and computer-use tasks) and where it is not (long software engineering); that does not change with where you run it. If you need Tencent's flagship for the harder tasks, hy4 is on the same key.

What to watch next: the llama.cpp follow-up pull requests for long-context speed, MTP support in mainline, and an update to the AngelSlim card naming a mainline release instead of PR #32517. Until then, b12755 is the first mainline build to try.

Create an OpenLux account to compare local runs with the hy4-flash API on the same prompts.

New API

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot
  • Careers

Legal

  • Terms
  • Privacy
  • Usage
  • Disclaimer
  • Refunds
  • DPA
  • Compliance
  • Imprint

Docs

  • API
  • AI News
  • From OpenRouter
  • Announcements

More

  • Agent

One API for mainstream AI models

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

New API

One API for mainstream AI models

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot
  • Careers

Docs

  • API
  • AI News
  • From OpenRouter
  • Announcements

More

  • Agent

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

Privacy | Terms | Usage | Disclaimer | Refunds | DPA | Compliance | Imprint |