hy4-flash on Tenstorrent p300x2

Derived from tencent/Hy4-flash by Tencent. The experts run in bfp4 and the Engram tables in FP8, converted from the official BF16 checkpoint on the first start. See the original model card for training and evaluation details.

Hy4-flash, a 220B-parameter mixture-of-experts model with about 11.3B parameters active per token: 42 layers of sparse and sliding-window MLA attention, 512 routed experts (top-16) plus a shared expert, a 63.5B-parameter Engram n-gram memory, a vision encoder and a speculative drafter, served with vLLM. A reasoning model with text, image and video input and tool calling, for up to 8 concurrent users sharing a 202,752-token context pool (one user can use all of it).

Runs on Tenstorrent p300x2 (mesh P300x2) β€” 202,752-token context, up to 8 concurrent sequences.

Packaged and published with tt-model-manager 0.1.0 (manifest schema 5.1).

At a glance

Hardware p300x2
Context 202,752 tokens
License tencent-hy-license

Intended use

Chat, reasoning, coding and tool use over text, images and short videos, including long documents.

Prerequisites

  • The Tenstorrent CLI, tt: uv tool install tenstorrent (or use tt-model alone, see the Quickstart)
  • Docker
  • Tenstorrent hardware: p300x2
  • About 116 GB of free host RAM for full decode speed (17 GB minimum). With less than 116 GB free the server still starts but reads the Engram tables from disk and decodes more slowly. Below 17 GB it refuses to start (set HY4_RAM_CHECK=warn to start anyway).
  • About 610 GB of disk: the 440 GB checkpoint plus about 165 GB of caches built on the first start.
  • Optional: to keep the Engram tables from being swapped out under memory pressure, run the command that tt-model serve --print prints with --ulimit memlock=-1:-1 added after docker run.

Quickstart

tt serve raahemnabeel/hy4-flash

tt serve downloads the Docker image and the tencent/Hy4-flash at b2498eba6a1a3f9bbcab4190bc1313a3c7010c2f weights (into your HF cache; they are not in the image), then starts an OpenAI-compatible server on port 20000 (or the next free port, if that one is busy). The first start compiles kernels for your device, which takes several minutes; the server is ready when it logs Application startup complete.

Without tt-cli: tt-model serve raahemnabeel/hy4-flash.

The first start also builds about 165 GB of caches from the checkpoint (the bfp4 experts and the FP8 Engram tables) before the server is ready. Later starts are ready in about 4 minutes.

Capabilities

The server speaks the OpenAI API at http://127.0.0.1:20000/v1 (or whichever port your serve command reported; chat completions, completions, and /v1/models). Pass "model": "tencent/Hy4-flash" β€” the weights id, not this package's name.

Tool calling is enabled (--tool-call-parser hy_v4): a request that passes tools comes back with tool_calls and finish_reason: tool_calls.

Reasoning output is separated (--reasoning_parser hy_v4): the thinking text arrives in reasoning, apart from content.

"hy4-flash" also works as the model name.

Reasoning is on by default (reasoning_effort high). For direct answers pass "chat_template_kwargs": {"reasoning_effort": "no_think"}; other values are rejected. Give thinking requests a large max_tokens: if the budget runs out inside the reasoning, content is empty.

Requests without sampling parameters use temperature 0.9 and top_p 1.0. Greedy (temperature 0) is fastest. Logprobs, structured outputs, logit_bias and penalties are supported.

Images: up to 4 per request (image_url), resized to at most 2048 x 2048. Video: one per request (video_url), sampled at 2 fps, at most 64 frames.

One serving profile, p300x2: all requests share one context pool. A single request can be up to 202,752 tokens (prompt + output), and concurrent requests split the pool. When the pool runs out, vLLM pauses a request and recomputes it later.

A new prompt that shares its first 2,048 or more tokens with a finished request (the next chat turn, or the same document with a new question) reuses that request's cache. The output is the same as without reuse.

Expected performance

eval this package SE reference prompts setting
GSM8K (8-shot CoT, strict match) 95.6% 0.6 β€” 1,319 no_think, greedy
IFEval (prompt-level strict) 83.9% 1.6 β€” 541 no_think, greedy
HumanEval pass@1 97.0% 1.3 β€” 164 no_think, greedy
MBPP (3-shot) 83.4% 1.7 β€” 500 no_think, greedy
GPQA-Diamond 77.8% 3.0 β€” 198 no_think, greedy
MATH-500 95.6% 0.9 β€” 500 no_think, greedy
MMLU-Pro (fixed 1,000-question subset) 73.3% 1.4 β€” 1,000 no_think, greedy
GPQA-Diamond, thinking 87.4% 2.4 β€” 198 high, temperature 0.9, max_tokens 18,944
Needle retrieval (2K-11K, alone and with 7 users) 6/6 β€” β€” 6 no_think, greedy
Top-1 / top-5 / top-100 token agreement with the BF16 reference on its own greedy answers (8 chat prompts incl. an AIME 2024 problem, one with thinking on, up to 100 tokens each), 8 users 93.8% / 100% / 100% β€” β€” 775 tokens teacher forced
Top-1 agreement / KL (top 32) with the BF16 reference on held-out text (4 human-written 1,000-token texts + 4 chat prompts), 8 users 86.5% / 0.223 β€” β€” 8 texts teacher forced
Same, 3K-token text, prefill / decode 82.7% / 0.293, 82.8% / 0.275 β€” β€” 1 text teacher forced

Evals served through the OpenAI endpoint with 8 requests in flight (lm-evaluation-harness; seed 42). SE = sqrt(p(1-p)/n). Tencent publishes no figures for these settings. The first agreement row is the measurement other tt-metal model gates use (the reference's own continuation; gates are typically >= 90% top-1, >= 98% top-5). Held-out text is harder: the reference itself is often unsure there, so near-tied tokens flip. Nearly all of the difference from the BF16 model comes from the bfp4 routed experts: the CPU reference with only its expert weights rounded to bfp4 scores the same (84.7% vs 84.1% on the device, pooled over tokens); bfp8 experts (92.1%) need ~147 GiB, more than the 128 GiB of device DRAM.

profile sampling ISL OSL concurrency N TTFT (s) prefill tok/s/u decode tok/s/u total tok/s E2EL (s)
p300x2 T 0.9 ~30 256 1 8 0.21 β€” 65.9 β€” 4.09
p300x2 T 0.9 ~30 256 2 8 0.24 β€” 60.0 108.1 4.51
p300x2 T 0.9 ~30 256 3 12 0.24 β€” 45.3 128.5 5.87
p300x2 T 0.9 ~30 256 4 16 0.24 β€” 44.0 162.4 6.02
p300x2 T 0.9 ~30 256 5 20 0.24 β€” 40.0 180.4 6.61
p300x2 T 0.9 ~30 256 6 24 0.24 β€” 35.0 199.1 7.61
p300x2 T 0.9 ~30 256 7 28 0.24 β€” 32.8 214.4 8.07
p300x2 T 0.9 ~30 256 8 32 0.25 β€” 31.7 237.9 8.29
p300x2 greedy ~30 256 1 8 0.21 β€” 66.7 β€” 4.05
p300x2 greedy ~30 256 2 8 0.23 β€” 56.0 103.4 4.78
p300x2 greedy ~30 256 4 16 0.23 β€” 42.3 158.4 6.27
p300x2 greedy ~30 256 8 32 0.24 β€” 30.6 236.7 8.61
p300x2 greedy 132 64 1 3 0.22 600 64.9 β€” 1.19
p300x2 greedy 516 64 1 3 0.35 1,475 61.5 β€” 1.37
p300x2 greedy 1,028 64 1 3 0.50 2,037 65.1 β€” 1.47
p300x2 greedy 2,052 128 1 3 0.73 2,799 57.2 β€” 2.95
p300x2 greedy 4,100 128 1 3 1.32 3,109 61.2 β€” 3.40
p300x2 greedy 8,196 128 1 3 2.49 3,297 63.3 β€” 4.48
p300x2 greedy 16,388 128 1 3 4.82 3,401 68.2 β€” 6.68
p300x2 greedy 2,052 128 8 8 5.96 344 17.1 68.3 13.41
p300x2 greedy 8,196 128 8 8 20.50 400 34.3 42.0 24.10
p300x2 greedy 16,388 128 8 8 39.91 411 34.2 23.3 43.55
p300x2 greedy 32,772 128 1 2 9.54 3,437 77.8 β€” 11.18
p300x2 greedy 131,076 128 1 1 38.87 3,372 65.4 β€” 40.81
p300x2 greedy 200,004 128 1 1 61.54 3,250 64.6 β€” 63.51
p300x2 T 0.9 32,772 128 1 2 9.53 3,439 67.6 β€” 11.44
p300x2 T 0.9 131,076 128 1 1 38.86 3,373 55.4 β€” 41.15

A long prompt is prefilled in 2,048-token parts with decode steps for the other users in between: while a 64K or 200K-token prompt is prefilled, the other users' longest pause between tokens is 0.7-0.8 s. Prefix reuse: a 10K-token prompt has a TTFT of 3.36 s cold and 0.69 s when it is resent or continued as the next chat turn. Images: one 1024 x 1024 image, TTFT 0.63 s alone and 1.33 s with 7 text users. Video (64 frames, 640 x 480): TTFT 1.48 s alone and 2.16 s with 7 text users. Needle retrieval at 32K, 131K and 200K tokens (depths 10, 50 and 90%): 9 of 9 found.

Medians over N requests, measured on one QB2 through the OpenAI endpoint with the package's launch command, warm caches, 2026-11-24. Concurrency = streamed requests in flight; prefill tok/s/u = prompt tokens / TTFT; decode tok/s/u = (output tokens - 1) / (E2EL - TTFT); total tok/s = all output tokens / wall time. "T 0.9" = temperature 0.9, top_p 1.0, the model's default sampling. Single-user decode speed depends on the text (speculative decoding).

Limitations

  • Not for decisions about people (medical, legal, financial, hiring) without human review; like any language model it can state wrong facts with confidence.
  • At most 8 concurrent users, and their contexts together cannot exceed the 202,752-token pool; a request that does not fit waits until others finish.
  • Per-user decode speed drops as users are added, and decode is slower at long context (see Performance).
  • Several long prompts that arrive together are prefilled one after another, so the last one waits longer for its first token; a long prompt's TTFT is also longer while other users are decoding.
  • Outputs differ slightly from the BF16 reference (bfp4 experts, FP8 Engram tables; see the agreement rows).
  • Weights are pinned to revision b2498eb of tencent/Hy4-flash. Later revisions are not supported.
  • Runs only on a QB2 (4 Blackhole dies); other boards are not supported.

Licensing

Weights: Tencent Hy License 1.0 (Apache-2.0 based). Commercial use is allowed, but a model-as-a-service business needs a separate license from Tencent if its revenue is above US$50 million a year or the product has more than 100 million monthly active users (internal-only use is exempt); see the LICENSE in the weights repo. The caches built from the weights carry the same terms. Port and serving code: Apache-2.0.

Feedback

Questions or problems with this package: open a discussion at https://huggingface.co/raahemnabeel/hy4-flash/discussions β€” that is what reaches its author. A problem with the tt tooling itself: tt report issue (collects your environment and opens a prefilled issue against tenstorrent/tt-cli). Product feedback: support@tenstorrent.com.

Provenance

The exact sources the image was built from β€” code/ in this repo is byte-identical to the model code inside the image:

component built from
tt-metal a local checkout β€” commit not published
vLLM v0.26.0
vllm-tt-plugin a local checkout β€” commit not published
code/ digest 13f31a3d7f426853 (sha256, first 16 hex digits)
built 2026-11-25T22:08:13+00:00 by tt-model 0.1.0
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for raahemnabeel/hy4-flash

Finetuned
(21)
this model