224B of weights, 12B active: splitting the Hy4 flash 1/20 claim into two ledgers

Tencent says a single task on Hy4 flash costs one twentieth of what it costs on Hy4. The same model is described as activating only 12B parameters per token, which sounds like something you could run on a desktop card. Both statements are true, and they are not about the same thing.

Sources: Tencent Hunyuan's release page and the long hands-on piece from Machine Heart on 2026-11-16, the config.json of tencent/Hy4-flash (still being updated on 11-19), the official recipe on vLLM Recipes, and the Tencent-Hunyuan/Hy4-flash repository created on 11-17 with vLLM and SGLang images documented in the README.

1. Weight ledger: 12B active, 440 GB to download

Put the two numbers side by side. Total parameters are 224B, of which 64B are Engram memory tables. Per token, 12B are active. Active parameters set the compute: one forward pass touches only those 12B. Total parameters set the residency: the other 212B still occupy memory, because routing may pick them next step.

So the download looks like this. The BF16 checkpoint is 440.5 GB, the FP8 one 287.1 GB, and the official vLLM recipe multiplies by 1.2 to publish 529 GB and 345 GB as conservative estimates rather than measured minimums. Split across eight GPUs with TP=8, weights alone are 55.1 GB or 35.9 GB per card. That is why the recipe says H200 and not RTX.

The 64B of Engram deserve a closer look. In config.json, engram_layer_ids is [2, 12, 22, 32], each layer has engram_n_embed_per_ngram=768, and two vocabularies of 10.312 million entries each. Four times two times 10.312M times 768 is about 63.4B parameters, which is exactly the "64B Engram" figure. These are n-gram lookup tables rather than dense math, so the official recipe offloads them to host memory by default with engram_fp8_embedding=true, roughly 63 GB of DRAM. It trades HBM for system memory, and pays for it on every lookup that crosses PCIe.

2. KV ledger: 1M context is 13.5 GiB, not 47 GiB

The reflex reaction to a 1M context window is that memory will explode. The structure here is worth reading carefully. Of 42 layers, layer_types lists 12 deepseek_sparse_attention plus 30 sliding_attention with a window of 512. Attention is MLA with kv_lora_rank=512 and qk_rope_head_dim=64. So each token caches only 576 numbers per layer, 1152 bytes in fp16, and the 30 sliding layers keep no long history at all.

LAYERS, DSA, SW, WINDOW = 42, 12, 30, 512
LATENT, ROPE, BYTES = 512, 64, 2

per_layer = (LATENT + ROPE) * BYTES
dsa_per_token = DSA * per_layer
sw_fixed = SW * WINDOW * per_layer
full_per_token = LAYERS * per_layer

def gib(n):
    return n / (1024 ** 3)

print("per layer per token  : %d B (MLA latent %d + rope %d, fp16)" % (per_layer, LATENT, ROPE))
print("12 sparse layers     : %d B/token = %.1f KiB" % (dsa_per_token, dsa_per_token / 1024))
print("30 sliding layers    : %d B fixed  = %.1f MiB" % (sw_fixed, sw_fixed / 1024 / 1024))
print()
for ctx in (8192, 131072, 1048576):
    kv = ctx * dsa_per_token + sw_fixed
    print("ctx %8d tokens -> %8.1f MiB per sequence" % (ctx, kv / 1024 / 1024))
print()
print("if all 42 layers kept full history:")
print("  %.1f KiB/token, 1M ctx = %.1f GiB" % (full_per_token / 1024, gib(full_per_token * 1048576)))
print("  hybrid keeps it at    %.1f GiB (%.1fx smaller)" % (
    gib(1048576 * dsa_per_token + sw_fixed),
    (full_per_token * 1048576) / (1048576 * dsa_per_token + sw_fixed)))

Which prints:

per layer per token  : 1152 B (MLA latent 512 + rope 64, fp16)
12 sparse layers     : 13824 B/token = 13.5 KiB
30 sliding layers    : 17694720 B fixed  = 16.9 MiB

ctx     8192 tokens ->    124.9 MiB per sequence
ctx   131072 tokens ->   1744.9 MiB per sequence
ctx  1048576 tokens ->  13840.9 MiB per sequence

if all 42 layers kept full history:
  47.2 KiB/token, 1M ctx = 47.2 GiB
  hybrid keeps it at    13.5 GiB (3.5x smaller)

13.5 GiB for a full-length sequence. Eight H200s give 1128 GB of HBM, 1015 GB at 90 percent, minus 287 GB of FP8 weights, leaving 728 GB for cache. In theory that is 50 sequences at maximum length. That is the entire technical basis for claiming 1M context at low cost: not a smarter model, but 30 layers that never look at long history.

One illusion to break while we are here. At 8k context, the same 728 GB could hold 6400 sequences, yet the official recipe defaults --max-num-seqs to 4. Memory is never the bottleneck. Scheduling policy is. What you pay for is usually max-num-batched-tokens and admission control, not model size.

3. The open weights are not the hosted API

This is the trap. Tencent reports more than 150 tokens per second in production, powered by fused megakernels, 4-bit quantization and DFly speculative decoding. What shipped publicly is a BF16 and an FP8 checkpoint, and two prebuilt images:

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

Read the constraints before reaching for a credit card:

  • Hardware: Hopper or Blackwell datacenter parts only, meaning H100, H200, B200, GB200, B300, GB300. AMD Instinct is not supported yet, no ROCm image ships the model.
  • Framework: no released vLLM wheel registers HYV4FlashVLForConditionalGeneration or the DFly drafter, so pip install vllm will not work. The dedicated image is the only path.
  • Parallelism: tensor parallel and tensor plus expert parallel. DP, PP, CP, EPLB, DBO and LoRA are unsupported, and so is MTP, since speculation goes through the five-layer DFly draft head.
  • Defaults are conservative: max-model-len 8192, max-num-seqs 4, one image and no video per prompt. The 1M context is a ceiling, not a default.
  • Host memory: Engram tables live on the CPU side. Size the box for RAM, not just VRAM.

4. Where the 1/20 comes from

Published prices: Hy4 flash charges 0.5 CNY per million input tokens, 2 per million output, 0.02 for cache hits. Hy4 charges 6, 18 and 0.3. That is 12x on input, 9x on output, 15x on cached input. But the per-task claim is 20x, and the remainder comes from token count. A typical office task makes it obvious:

PRICE = {"hy4-flash": (0.5, 2.0, 0.02), "hy4": (6.0, 18.0, 0.3)}
IN_TOKENS, OUT_TOKENS, CACHE_HIT = 40000, 3000, 0.8

def task_cost(name, out_tokens=OUT_TOKENS):
    p_in, p_out, p_cache = PRICE[name]
    cached = IN_TOKENS * CACHE_HIT
    fresh = IN_TOKENS - cached
    return (fresh * p_in + cached * p_cache + out_tokens * p_out) / 1e6

flash = task_cost("hy4-flash")
hy4 = task_cost("hy4")
print("task profile: %d in (%d cached), %d out" % (IN_TOKENS, IN_TOKENS * CACHE_HIT, OUT_TOKENS))
print("hy4-flash    : %.4f CNY/task" % flash)
print("hy4          : %.4f CNY/task" % hy4)
print("price ratio  : %.1fx" % (hy4 / flash))
print()
implied = hy4 / 20
print("to reach the claimed 20x, the same task must cost %.4f CNY" % implied)
lo, hi = 0.5, 6000
for _ in range(60):
    mid = (lo + hi) / 2
    if task_cost("hy4-flash", mid) > implied:
        hi = mid
    else:
        lo = mid
print("that means output length would have to be about %d tokens, not %d" % (int(lo), OUT_TOKENS))
print("so the rest of the gap has to come from fewer tokens, not from price")
task profile: 40000 in (32000 cached), 3000 out
hy4-flash    : 0.0106 CNY/task
hy4          : 0.1116 CNY/task
price ratio  : 10.5x

to reach the claimed 20x, the same task must cost 0.0056 CNY
that means output length would have to be about 470 tokens, not 3000
so the rest of the gap has to come from fewer tokens, not from price

Price alone explains 10.5x. Getting to 20x requires the same task to consume less than half the tokens. Tencent's own numbers line up with that: reinforcement learning cut end-to-end output length by 50 percent; the WeCom team reports 60 percent fewer output tokens in thinking mode; QQ's assistant measured 39 percent lower P90 latency and 30 percent fewer tokens; the Honor of Kings bug analysis workflow cut requests by 22 to 39 percent and tokens by 40.5 to 61.2 percent.

The 1/20 is therefore not a measure of model quality. It is cheap unit pricing multiplied by saying less. The second half is the hard part, and it is also why the same release can claim quality slightly above Hy4 preview while dropping the cost.

5. So does self-hosting pay off

At 0.0106 CNY per task, how many tasks must eight rented H200s serve to break even?

USB_CNY = 7.1
GPU_USD_HR = 2.0
GPUS = 8

hourly = GPUS * GPU_USD_HR * USB_CNY
print("self-host 8xH200 at %.1f USD/GPU-hr = %.0f CNY/hr" % (GPU_USD_HR, hourly))
print("tasks per hour needed to match the API: %.0f" % (hourly / 0.0106))
print("that is %.2f tasks/sec, sustained" % (hourly / 0.0106 / 3600))
self-host 8xH200 at 2.0 USD/GPU-hr = 114 CNY/hr
tasks per hour needed to match the API: 10717
that is 2.98 tasks/sec, sustained

Roughly ten thousand seven hundred tasks an hour, about three per second, around the clock. A single node decoding at 150 tokens per second with 3000 output tokens per task needs twenty seconds per stream, so even a generous 3000 tokens per second of aggregate throughput lands near one task per second. That is a factor of three short, and 2.0 USD per GPU-hour is already a friendly rental assumption.

The conclusion is blunt. At this price, self-hosting is not a way to save money. It is a way to buy something else: data that never leaves your network, GPUs you already own, a domain fine-tune, or an endpoint that no rate limit can throttle. If the goal is purely lower cost per task, the API wins by an order of magnitude.

6. When to use it, and when not to

Tencent's own routing advice matches the measurements: daily work such as deep search, document handling, slide generation, simple frontend pages and computer use belongs on flash; long-horizon software engineering belongs on Hy4, which has the higher ceiling. That split is not marketing. The gap between 12B active and 49B active is invisible on a single step and compounds over forty steps.

Two things are easy to miss. First, reasoning_effort has high and no_think settings, defaulting to the former. On routine tasks a large share of tokens goes into thinking, and switching to no_think often saves more than swapping models. Second, a 1M window is not a target. One full-length sequence takes 13.5 GiB, so fifty of them drain the pool, and most tasks are finished well within 32k. Spend the difference on concurrency instead.

In fairness: moving 64B of static knowledge from HBM to DRAM, letting 30 layers look at 512 tokens, and cutting output length in half with reinforcement learning are each old ideas. Getting all three to hold simultaneously in a 12B-active model is the part worth studying. As for the 1/20, understanding what it is made of is more useful than remembering the number.

Further reading

Feedback

This site is front-end only — no backend, no accounts — so feedback goes to GitHub Issues, Discussions, or email.

Paste it into the issue or email to help track it down — it never includes anything you typed

Also:Browse existing issues · Email feedback (no GitHub account needed):278975598@qq.com