size experts base license

Hy4-flash EXL3 4 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: 203.07 GiB, 28 safetensors shards. The routed experts are EXL3 4 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 4 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.json quantization_config.bits is an integer for transformers compatibility; the exact per-module K (including half steps) is in quantization_config.json under tensor_storage.*.bits_per_weight.

Hardware

One 128 GB GB10 holds the trunk with comfortable headroom. A single 96 GB card is not recommended at 4.0 bpw (85 GiB of weights); use two 96 GB cards with -gs. A 3.5 / 3.0 / 2.5 bpw variant is the single-96 GB option.

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-4bpw --local-dir ~/models/Hy4-flash-EXL3-4bpw
python run_smoke.py --model ~/models/Hy4-flash-EXL3-4bpw --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 trellis I16 + suh/svh F16 + mul1 marker; no expert .weight leftovers.
  • 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.999926, 100 % argmax agreement.
  • Run run_smoke.py on 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

  • 4.0 bpw — best quality, 128 GB GB10 / 2×96 GB
  • 3.5 bpw — single 96 GB
  • 3.0 bpw — more KV headroom
  • 2.5 bpw — smallest trunk; prefer 3.0/3.5 when KV headroom allows
Downloads last month
196
Safetensors
Model size
109B params
Tensor type
F32
·
BF16
·
I32
·
I16
·
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for LibertAIDAI/Hy4-flash-EXL3-4bpw

Quantized
(78)
this model

Collection including LibertAIDAI/Hy4-flash-EXL3-4bpw