Configuration Parsing Warning:In config.json: "quantization_config.bits" must be an int
Hy4-flash in EXL3, 3.56 bits per weight
These are EXL3 weights of Tencent's Hy4-flash at 3.56 bits per weight on average over the quantized layers, 112.4 GB in all. We converted them from Tencent's BF16 checkpoint, tencent/Hy4-flash at revision d88c9dfd, with exllamav3 1.6.7 and a patch that adds this architecture (in convert/). The routed experts and the indexer's query projections are at 3.5 bits. Attention, the shared experts, the latent and dense projections, the output head and the vision tower are at 5 bits. In the built-in DFly2 drafter, attention is at 5 bits and the MLPs at 3. The four Engram tables hold 5 bits a value. The embedding, the norms and the Engram projections stay in BF16, and the router weights are stored in fp16.
Stock exllamav3 does not load these packs yet. It has no code for this architecture or for the Engram table files. The patch in convert/ adds both to exllamav3 1.6.7, for conversion and for scoring, but it adds no generator. We serve the packs with TandemEngine, our inference engine, on one DGX Spark.
By Tencent's card, Hy4-flash has 220B parameters, 63.5B of them in the Engram tables, and 11.3B are active for a text token. Its 42 layers are one dense MLP layer and 41 mixture-of-experts layers. Each MoE layer has 512 routed experts, of which 16 run a token, plus one shared expert. Four layers also add rows from an Engram table, a hashed lookup on the last two and three tokens with about 165 million rows of 96 values. DFly2 is a 5-layer drafter that ships inside the model. The model reads 1,048,576 tokens of context; TandemEngine serves up to 262,144.
Which pack
| pack | bits | download, GB | KL, chat2048 | top-1, chat2048 | KL, conv2048 | top-1, conv2048 |
|---|---|---|---|---|---|---|
| EXL3 3.5 (this one) | 3.56 | 112.4 | 0.065 | 90.5 % | 0.073 | 93.8 % |
| EXL3 3.0 | 3.08 | 103.1 | 0.099 | 88.5 % | 0.111 | 92.1 % |
Use this pack. It is closer to the unquantized model on both sets. The 3.0 pack is 9.3 GB smaller to download and its weights take 8.65 GiB less memory. The next section says how we measured.
Quality against the unquantized model
The KL rows below do not come from Tencent's own serving stack. Their reference is our own forward of the unquantized checkpoint (d88c9dfd), the cache-less forward that the patch in convert/ adds to exllamav3, with the logits stored in fp16. This pack runs through the same forward. Each set is 16 rows of 2,048 tokens, 32,768 positions. KL is the mean KL divergence from the reference over all positions. Top-1 is how often both pick the same next token, and top-5 how often the reference's pick is among the pack's five best.
Two correct forwards never agree exactly. On one templated row of 1,899 tokens, our forward against the model's transformers code in FP32 gave KL 0.0031 and top-1 98.68 %. That code in BF16 against itself in FP32 gave KL 0.0045 and 97.95 %. A KL between about 0.003 and 0.005 is therefore the floor of this method; quality/chain.txt is that run.
chat2048 is wikitext-2 test text (rows 70 to 85) inside a chat turn in the model's template, thinking off. conv2048 is 16 rows of held-out conversations from the UltraChat test split, in the same template with thinking off.
| set | KL mean | KL median | top-1 | top-5 | perplexity, reference | perplexity, pack |
|---|---|---|---|---|---|---|
| chat2048 | 0.0653 | 0.0187 | 90.54 % | 99.58 % | 8.12 | 8.32 |
| conv2048 | 0.0729 | 0.0033 | 93.75 % | 99.42 % | 7.42 | 7.45 |
A few hard positions carry most of the mean. On conv2048 half the positions are under KL 0.0033, while the worst 1 % are above 1.23. The result files are quality/kl2-chat2048.json and quality/kl2-conv2048.json.
Speed on a DGX Spark
One DGX Spark (GB10, 128 GB), with TandemEngine through its chat route (/v1/chat/completions, streamed) and one request at a time. The prompt is 3,565 tokens of prose in the pack's own chat template with thinking off, and the answer is 600 greedy tokens. Speed counts from token 50 on. Each row is one fresh server start with the full 262,144-token window and two identical requests. The drafted row uses the model's own DFly2 drafter plus TandemEngine's lookup, and StairCut picks the block size.
| tok/s | request 1 | request 2 |
|---|---|---|
| plain | 22.75 | 23.05 |
| DFly2 + lookup | 27.70 | 28.08 |
All four answers were the same text, token for token. The first token came after 30.19 and 27.37 s plain, 31.08 and 28.10 s drafted, which is the time to read the 3,565-token prompt. A start took 105.8 and 106.8 s in all, 77.2 and 77.4 s of it loading the weights. We did not measure thinking on, other kinds of asks or more than one request at a time.
Two examples: one prompt, three quants
We gave two prompts to three quants and let each one build a single animated 3D page in opencode, a coding agent. The three are this pack, the 3.0 pack and Qwen3.8-Flash-Next in a public EXL3 pack at 3.05 bits per weight (branch 3.05bpw_h5_ng5). opencode ran against TandemEngine's bare engine, with no conductor, no memory and no MCP servers, at reasoning effort xhigh, one request at a time on one DGX Spark. Each model drafted with its own drafter: DFly2 and lookup for Hy4-flash, its MTP layer for Flash-Next. opencode let one answer write up to 32,768 tokens. We ran a TandemEngine build from before release 0.17.0.
One prompt asks for a rainy neon gas station at night, the other for a Japanese pagoda garden at dusk. Each wants one HTML file with three.js 0.160.0 from a CDN and everything else made in code, a camera that orbits on its own, and one read-back at the end to fix errors. The six pages, a 20-second video of each, the diagrams and the raw results are in the dataset 0xBakeer/TandemLLM-Hy4-flash-examples. The hub shows a page as source; to see it run, download its index.html and open it in a browser.
One frame of each page, 14 s into its video. Top row the gas station, bottom row the pagoda garden; from left to right Hy4 3.56, Hy4 3.08 and Flash-Next 3.05.
Rainy neon gas station
| Hy4 3.56 (this one) | Hy4 3.08 | Flash-Next 3.05 | |
|---|---|---|---|
| time to finish | 20 min 28 s | 13 min 25 s | 32 min 43 s |
| decode, tok/s | 42.1 | 43.1 | 67.1 |
| tokens written | 47,753 | 31,393 | 123,391 |
| of them thinking | 73 % | 65 % | 65 % |
| agent steps | 8 | 6 | 100 |
| first answer cut off at 32,768 tokens | yes | no | yes |
| page size | 21.2 KB | 25.9 KB | 44.4 KB |
| name it gave the station | NEON NOVA | NEON 66 | NEON OASIS |
| links | video · page source | video · page source | video · page source |
Time to finish runs from opencode's start to its exit. Decode is the tokens the engine committed over its decode time, summed over every request of the run. Steps are the turns opencode recorded before the closing answer.
Flash-Next decoded 56 to 59 % faster than the two Hy4 packs and still finished last. It wrote 2.6 to 3.9 times their tokens and took 100 steps.
Each one worked in its own way. The first answers of Hy4 3.56 and Flash-Next ran into the 32,768-token limit while they were writing the file, after 13 min 11 s and 8 min 56 s, and opencode saved nothing. Hy4 3.08 thought for 7 min 10 s in its first answer, wrote the whole page in one write at 10 min 17 s and then made one edit. After its cut-off, Hy4 3.56 wrote a 5.7 KB start and finished the page with five edits. Flash-Next began from a 2.5 KB file and grew it with 58 edits, reading the file 19 times between them.
Pagoda garden at dusk
| Hy4 3.56 (this one) | Hy4 3.08 | Flash-Next 3.05 | |
|---|---|---|---|
| time to finish | 16 min 26 s | 16 min 43 s | 42 min 36 s |
| decode, tok/s | 39.1 | 42.2 | 65.0 |
| tokens written | 35,110 | 38,451 | 156,983 |
| of them thinking | 62 % | 61 % | 54 % |
| agent steps | 8 | 13 | 98 |
| first answer cut off at 32,768 tokens | no | no | yes |
| page size | 34.6 KB | 32.6 KB | 60.3 KB |
| name it gave the garden | Kasumiga-en | Yūgiri-en | Yūgure-en |
| links | video · page source | video · page source | video · page source |
Hy4 3.56 and 3.08 finished 17 s apart. Neither ran into the limit, and each wrote the whole page in one write and then edited it, 3 and 7 times. Flash-Next's first answer ran into the limit again, after 9 min 07 s. It then built the page from an 11.2 KB start in 98 steps and finished 25 min 53 s after the slower Hy4 run. It decoded 54 to 66 % faster than the Hy4 packs and wrote 4.1 to 4.5 times their tokens.
What the examples show, and what they don't
On both prompts Flash-Next decoded fastest and finished last. It wrote the most tokens and the biggest page each time, and it took 100 and 98 steps where the Hy4 packs took 6 to 13. The two Hy4 packs swapped places: 3.08 was 7 min 03 s faster on the gas station and 17 s slower on the pagoda.
These are two prompts, with one run per quant on each. A rerun can come out in a different order, and we did not rerun. The Hy4 3.08 gas station run finished on its third start: the first two stopped after 9 min 03 s and 5 min 39 s, when our SSH tunnel between opencode and the DGX Spark dropped. The engine logged no error either time. Nor do the numbers say which page is better. Open the pages and judge for yourself.
The decode figures here are not the ones in "Speed on a DGX Spark" above, which are 22.75 to 28.08 tok/s for this pack. That section counts 600 greedy tokens of prose with thinking off, from token 50 on. Here we count every token the engine committed in a coding run with thinking on and tools, over its decode time. We have not tested where the gap between the two comes from.
The two packs side by side
| EXL3 3.5 (this one) | EXL3 3.0 | |
|---|---|---|
| bits per weight | 3.56 | 3.08 |
| weights in memory, GiB | 67.17 | 58.52 |
| KL, chat2048 / conv2048 | 0.065 / 0.073 | 0.099 / 0.111 |
| gas station: time, steps, tokens | 20 min 28 s, 8, 47,753 | 13 min 25 s, 6, 31,393 |
| pagoda garden: time, steps, tokens | 16 min 26 s, 8, 35,110 | 16 min 43 s, 13, 38,451 |
| decode in the examples, tok/s | 42.1 and 39.1 | 43.1 and 42.2 |
| first answer cut off at 32,768 tokens | on the gas station | no |
Each KL figure averages 32,768 positions, and on both sets this pack is closer to the unquantized model. The examples are one run each. There the two packs came out close, and they swapped places between the two prompts. From these runs we would not call either one the faster or the better pack. The 3.0 pack is 9.3 GB smaller to download and its weights take 8.65 GiB less memory.
Size and memory
| EXL3 3.5 | EXL3 3.0 | |
|---|---|---|
| download, GB | 112.4 | 103.1 |
| of it Engram tables, GB | 40.9 | 40.9 |
| weights in memory, GiB | 67.17 | 58.52 |
| allocated after a start with the full window and the drafter, GiB | 72.67 | 64.02 |
The Engram tables stay on the SSD. TandemEngine reads the rows a token needs straight from the files and keeps only a 2 GiB cache of hot rows in memory. The context state takes 16,896 bytes a token, about 4.1 GiB at 262,144 tokens. With this pack loaded the Spark had 38.9 and 38.1 GiB of MemAvailable left, and 34.4 and 35.5 GiB after the two requests. The engine took its memory limits from the pack: 85 GiB between requests and a peak of 92 GiB during a prompt.
How to run it
TandemEngine runs this pack from release 0.17.0 on. On a DGX Spark with that TandemEngine installed (setup guide):
bash ~/TandemLLM/run/ops/use-profile.sh hy4-3.56
use-profile.sh downloads this repository at a pinned commit, checks every weight file against the hub's own sha256 and starts the engine on port 8000. With the other pack already beside it, it hard-links the four table files instead of downloading them again. SHA256SUMS lists the same hashes for a check by hand. It needs no Hugging Face token. TandemApp lists the same profile in its Setup Guide.
Know these limits before you start:
- Up to eight chats at once, on eight lanes that take turns on the GPU.
- Text only. The vision tower is in the files at 5 bits, but TandemEngine does not serve it.
- The chat template is not optional. Every prompt opens with the template's system turn, which carries the reasoning effort. Without it the model scores far worse: on one technical text the unquantized model's perplexity went from 7.25 to 21.0.
- The template takes three reasoning efforts:
no_think,highandmax. TandemEngine maps thinking off tono_think,xhighandmaxtomax, and every other effort tohigh.
How we made it
convert/exllamav3-1.6.7-hy4-flash.patch applies to exllamav3 v1.6.7 (commit 8c593e4), and convert/README.md has the commands. This pack used the flags -b 3.5 -hq -hb 5 -mb 3 -vb 5 -ngb 5 and the mul1 codebook, on one H200 at patch commit 2ab782c2, the same commit as the patch here. At 3.5 bits each expert tensor is one trellis with 56 words a tile of 16 by 16 weights, not a mix of 3 and 4 bits. We quantized DFly2's layers without calibration. quality/audit.txt checks every tensor's name, kind and size against the source and ends with 0 problems. It prints the 3.5-bit experts as K 3: it takes K as the words a tile divided by 16, rounded down, and these tensors hold 56. quality/versions.json lists the versions.
Calibration was our own set instead of exllamav3's built-in one: 350 rows of up to 2,048 tokens, 557,079 tokens in all. 200 rows are chat turns in the model's template with thinking off, 100 are reasoning turns at effort high with the thinking text, and 50 are not in the template. None of the calibration text shares a 12-word run with the wikitext-2 test split, and the conv2048 rows come from a split the calibration did not use.
We encoded the four Engram tables once, at 5 bits a value with util/convert_hy4_engram.py from the patch, and both packs carry the same four files. Each file is named for the layer index that reads it: engram.layers.1.safetensors holds the table of Engram layer id 2, read ahead of layer index 1, and so on for 12, 22 and 32. The tables target the FP8 rounding the model applies to its rows. Their relative error is 3.2 % against those rounded rows and 4.1 % against the stored BF16 rows (engram_quant.json). Table 31's encode was resumed, so its figure covers only the rows of the last pass.
License
These weights are a quantization of Tencent's model and carry its license, the Tencent Hy License 1.0, unchanged in LICENSE. The license counts quantized weights as Derivative Works. NOTICE says where the files come from and what we changed. Section 10 of the license, the extra terms for large model-as-a-service businesses, still applies to everyone who uses these files. The patch in convert/ changes exllamav3, which is MIT-licensed. Everything else about the model, including its intended use and its benchmarks, is in Tencent's model card.
Credits
Tencent made Hy4-flash, its BF16 checkpoint and the DFly2 drafter inside it. turboderp made exllamav3 and the EXL3 format. TandemEngine and TandemApp are ours.
- Downloads last month
- 81
Model tree for 0xBakeer/TandemLLM-Hy4-flash-EXL3-3.5
Base model
tencent/Hy4-flash


