Hy4-Flash-MATE-3b

MATE 3-bit MoE (3.00 bpw, 100.14 GB) | 64-96 GB VRAM (or 24-32 GB with 3-tier offload)

Base: tencent/Hy4-flash-FP8 Honkware: MATE Collection: MATE Quants

At a Glance

Spec Value
Base model tencent/Hy4-flash-FP8
Parameters 219.5B total / 6.2B active (512 experts, top-8 + 1 shared + 63.5B Engram)
Quantization 3-bit CPTC-TQIR trellis
Effective bpw / Size 3.00 bpw / 100.14 GB
Attention & KV Multi-Head Latent Attention (RAQ-MLA, 512 B/tok)
Offload support 3-tier VRAM / RAM / NVMe offload on 24-32 GB GPUs
Min GPU VRAM (32K context) 64-96 GB
Quality (WT-2 PPL / KLD / Top-1) -

GPU Fit & Offload

Variant Min GPU (32K context) When to Pick
3b (this repo) 64-96 GB 3-bit CPTC-TQIR + NGQ2 Engram for 64-96 GB resident VRAM (or 24-32 GB with offload)

On 24-32 GB GPUs (L4 / RTX 4090 / RTX 5090), run mate fit hy4-flash --ctx 32768 --vram-gb 24 --ram-gb 64 to plan 3-tier VRAM/RAM/NVMe MoE offload automatically.

Memory Breakdown (32K Context)

Component (32K ctx) FP16 KV RAQ-MLA (512 B/tok)
Quantized weights (+ NGQ2 Engram) 58.71 GB 58.71 GB
32K MLA latent KV FP16 latent cache 512 B/tok per attention layer (~0.19 GB across 12 attention layers at 32K)

Quickstart

One-Command Launch (mate run)

mate run inspects your GPU/RAM, configures KV compression, offload, and speculative decoding automatically, and loads the checkpoint:

pip install mate-llm[hf]
mate run Honkware/Hy4-Flash-MATE-3b --ctx 32768
mate run Honkware/Hy4-Flash-MATE-3b --ctx 32768 --serve --port 8000

Query the running server via OpenAI (/v1/chat/completions) or Anthropic (/v1/messages, ANTHROPIC_BASE_URL=http://127.0.0.1:8000):

curl http://127.0.0.1:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"Honkware/Hy4-Flash-MATE-3b","messages":[{"role":"user","content":"Write a C++20 lock-free ring buffer."}]}'

Python API

import json
from pathlib import Path
from huggingface_hub import snapshot_download

local_dir = Path(snapshot_download("Honkware/Hy4-Flash-MATE-3b"))
mate_index = json.loads((local_dir / "mate_index.json").read_text(encoding="utf-8"))
# Load sharded CPTC-TQIR MoE shards + engram.ngq2 via mate.stream_quant and mate.hybrid_decode.

Sampling & Chat Template

Mode Temperature Top-P Notes
General chat / coding 0.6 0.95 Compatible with lossless speculative rejection sampling (--speculative auto)
Greedy verification 0.0 1.0 Exact token identity match under MATE speculative verification

Variants & Benchmarks

Quality is evaluated on wikitext-2-raw-v1:test (seq_len=2048) from the FP8 base checkpoint (tencent/Hy4-flash-FP8).

Variant bpw Size WT-2 PPL KLD Top-1
3b 3.00 100.14 GB - - -
Architecture & selective precision
  • Selective mixed-bit 42-layer LatentMoE + MLA + IHC4 + NGQ2 Engram (mate-sharded-v1) with GateRQ Engram quantization and 12-CTA IHC4 CUDA-Graph decode.
  • RAQ-MLA rank-aligned quantized MLA latent KV cache (512 B/tok) with split-K MLA attention and fused FWHT.
  • Ostinato MoE dispatch (with 3-tier VRAM/RAM/NVMe offload fallback) and MLI / DFly2 speculative drafter hooks.
Hardware backends
Target Compute Path Notes
NVIDIA Blackwell (sm_120a) Native CUDA (trellis_gemv_v3, raq_mla, ngq2) Full DP4A, PDL, Stream-K, split-K RAQ-MLA
NVIDIA Ada / Hopper (sm_89 / sm_90) Native CUDA (trellis_gemv_v3, raq_mla, ngq2) CUDA-Graph decode, compressed KV, 3-tier VRAM/RAM/NVMe MoE offload
NVIDIA Ampere (sm_80 / sm_86) Native CUDA (trellis_gemv_v3, raq_mla, e8_v3) DP4A GEMV and compressed KV
CPU x86-64 / ARM64 (AVX-512 VNNI, AVX2, NEON) Mojo 1.2 / MAX 26.7 ops (mate/libmate.so) Zero libmax.so runtime dependency; optional on CUDA hosts
Quantization recipe & reproduction
Field Value
Method CPTC-TQIR trellis quantization with weight-space MSE, analytical scale alignment, and architecture-specific MoE/Engram packing (mode="mse").
Base model tencent/Hy4-flash-FP8
Bitwidth & precision 3-bit CPTC-TQIR MoE (trellis_depth=10) + GateRQ/NGQ2 Engram (mate-sharded-v1)
KV cache runtime RAQ-MLA (512 B/tok)
Engine commit mate-llm 2b937d0
Raw results eval.json
mate quantize tencent/Hy4-flash-FP8 -o Hy4-Flash-MATE-3b.safetensors --bits 3 --routed-bits 3 --depth 10
Downloads last month
264
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Honkware/Hy4-Flash-MATE-3b

Quantized
(8)
this model

Collection including Honkware/Hy4-Flash-MATE-3b