Hy4-flash EXL3 3 bpw — routed experts, text-only
EXL3 quantization of tencent/Hy4-flash: 220 B total,
12 B active, hybrid sparse/sliding MLA, LatentMoE, iHC and 63.5 B Engram parameters.
This build: 185.77 GiB, 23 safetensors shards. The routed experts are EXL3
3 bpw (mul1, 62,976 modules); every other tensor — attention/indexer, shared
expert, LatentMoE projections, router, dense layer 0, iHC, Engram projections and the four
Engram tables — is BF16 and byte-identical to the base checkpoint. Text-only: the vision
tower and DFly2 tensors are carried but not wired by the current runtime.
Choose a build
| build | repository | experts | trunk | total | 1×96 GB | 1×128 GB | 2×96 GB |
|---|---|---|---|---|---|---|---|
| 4 bpw | Hy4-flash-EXL3-4bpw | 69.5 GiB | 84.87 GiB | 203.07 GiB | no | yes | yes |
| 3.5 bpw | Hy4-flash-EXL3-3.5bpw | 60.9 GiB | 76.22 GiB | 194.42 GiB | yes, tight KV | yes | yes |
| 3 bpw ← | Hy4-flash-EXL3-3bpw | 52.2 GiB | 67.57 GiB | 185.77 GiB | yes | yes | yes |
| 2.5 bpw | Hy4-flash-EXL3-2.5bpw | 43.6 GiB | 58.92 GiB | 177.12 GiB | yes | yes | yes |
All variants keep the full 118 GiB of Engram tables in the repository; the runtime streams rows from disk, so the tables do not need to be resident in GPU memory. The trunk column is what must fit on the GPU(s).
Model family: Hy4-flash EXL3 collection — all builds in one place.
What is where
| component | storage |
|---|---|
| routed experts (41 × 512 × gate/up/down) | EXL3 3 bpw, mul1 codebook |
| attention + compressed indexer + shared expert + LatentMoE + router + dense 0 + iHC | BF16 |
| Engram projections, per-head norms, lookup table | BF16 |
| Engram embedding tables (4 × 164–165 M × 96) | BF16, unquantized, row-streamed at runtime |
| token embedding / lm_head | BF16 |
| vision tower / DFly2 | carried, unused by this build |
The top-level
config.jsonquantization_config.bitsis an integer for transformers compatibility; the exact per-module K (including half steps) is inquantization_config.jsonundertensor_storage.*.bits_per_weight.
Hardware
A single 96 GB card fits this build; 3.5 bpw leaves a tight KV budget, 3.0 / 2.5 leave progressively more. One 128 GB GB10 is comfortable. Keep the 118 GiB of Engram tables on an SSD: they are row-streamed and do not need to stay resident.
On two GPUs use exllamav3's layer split (-gs), not tensor parallelism: the custom
attention/Engram modules are not TP-sharded.
Quickstart
git clone https://github.com/moshemalawach/exllamav3
cd exllamav3 && git checkout hy4-flash && pip install -e .
hf download LibertAIDAI/Hy4-flash-EXL3-3bpw --local-dir ~/models/Hy4-flash-EXL3-3bpw
python run_smoke.py --model ~/models/Hy4-flash-EXL3-3bpw --tokens 32
run_smoke.py is included in this repository. It renders the checkpoint's Jinja chat template,
prefills with a paged cache and decodes greedily. The fork adds the hy_v4_flash architecture
(commit 1af65c4); a patch copy (hy4-exllamav3.patch) is included for existing installs.
Chat template
The checkpoint ships chat_template.jinja and the matching hy_start / hy_middle / hy_end
special tokens. Use the tokenizer's HF chat template (tokenizer.hf_chat_template(..., reasoning_effort="no_think") for direct answers, or the default high-effort thinking mode).
The model's fallback prompt uses the same format.
Verification
- Byte-identical non-expert tensors and Engram table rows, checked against the base.
- 62,976 expert modules, each a
trellisI16 +suh/svhF16 +mul1marker; no expert.weightleftovers. - A 3-layer slice of this exact artifact (layers 0–2, including the layer-1 31.7 GB Engram table) loads and forwards finite logits. Against the BF16 3-layer slice: corr 0.999910, 92 % argmax agreement.
- Run
run_smoke.pyon the target device for the first full-model load; the 42-layer model needs a 96–128 GB device or a layer split. - No throughput or quality benchmark is claimed here.
License
The base model is released under the Tencent Hy License, Version 1.0 (Apache-2.0-derived, with the MaaS terms in §10). This quantized derivative is distributed under the same license; the license text and notices are included. Base model © Tencent.
Variants
- Downloads last month
- 110
Model tree for LibertAIDAI/Hy4-flash-EXL3-3bpw
Base model
tencent/Hy4-flash