Hy4-oQ4h-mtp

This is an oQh checkpoint. It needs an oMLX version with Hy4 support (jundot/omlx#5463). oMLX 0.8.0 and earlier cannot load it.

This model was quantized using oQ mixed-precision quantization in the oQh format (jundot/omlx#5317).

A mixed-precision MLX checkpoint of tencent/Hy4, the Tencent Hy team's flagship mixture-of-experts model with 770B total parameters and 49B active per token. It uses Gated DeepSeek Sparse Attention with IndexCache and identity Hyper-Connections. It includes the language model, the vision encoder and the built-in DFly2 drafter, which oMLX runs as Lightning MTP. The weights were quantized from the FP8 release tencent/Hy4-FP8. oMLX supports text and image input.

The effective average is 4.633 bits/weight for the language backbone and 4.668 bits/weight for the complete checkpoint.

What oQh changes

oQe already gives high quality and is the recommended setting in oMLX. It uses the standard MLX format, so any MLX engine that supports the model can run it. oQh is built for oMLX to push quality further at low bits.

oQh rotates the expert weights with a Hadamard transform before quantizing them. Rotated weights need fewer scales, and oQh spends the saved space on extra bits where they help most. The file stays the same size as oQe.

Quantization and Bit Distribution

oQ4h starts from the oQ4 budget and spends the bytes saved on group scales on 5-bit codes for the routed-expert down projections in 57 of the 77 MoE layers. Attention, the indexer, the shared expert, the dense first-layer MLP, the token embedding, the output head and the DFly2 drafter stay in 8-bit affine groups. The routers and the vision encoder stay in BF16, and the hyper-connection mixes in FP32.

Storage format Logical weights Share of total Tensor storage Effective bits/weight
oQh 4-bit, group 128 560.493B 72.375% 277.314 GiB 4.25
oQh 5-bit, group 128 183.610B 23.709% 112.219 GiB 5.25
Affine 8-bit, group 64 28.867B 3.728% 28.565 GiB 8.50
BF16 1.433B 0.185% 2.669 GiB 16.00
FP32 0.031B 0.004% 0.115 GiB 32.00
Total 774.434B 100% 420.882 GiB 4.668

Storage Breakdown

Component Logical weights Storage
Language backbone 769.907B 445.880 GB / 415.258 GiB
Vision encoder 1.235B 2.470 GB / 2.301 GiB
DFly2 drafter 3.291B 3.568 GB / 3.323 GiB
Total 774.434B 451.919 GB / 420.882 GiB

License

Tencent Hy License, following the source model. See LICENSE.

Downloads last month
548
Safetensors
Model size
141B params
Tensor type
BF16
·
U32
·
F32
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Jundot/Hy4-oQ4h-mtp

Base model

tencent/Hy4
Quantized
(15)
this model