Downloads · 30 days
201
25% of all-time downloads
Myric/granite-4.0-h-small-APEX-GGUF
granite-4.0-h-small-APEX-GGUF is a text generation model from Myric. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as apache-2.0.
MoE-aware, mixed-precision APEX quantizations of ibm-granite/granite-4.0-h-small — IBM's hybrid Mamba-2 / Transformer MoE (granitemoehybrid): 40 layers (36 Mamba-2 + 4 attention), 64-routed + shared-expert MoE, ~32B t…
Downloads · 30 days
201
25% of all-time downloads
All-time downloads
809
Public
Repo size
74.4 GB
Likes
1
Public
Click a slice to open those files.
.gguf74.3 GB · 100%
From the Hugging Face model README
MoE-aware, mixed-precision APEX quantizations of
ibm-granite/granite-4.0-h-small
— IBM's hybrid Mamba-2 / Transformer MoE (granitemoehybrid): 40 layers
(36 Mamba-2 + 4 attention), 64-routed + shared-expert MoE, ~32B total / ~9B active,
Apache-2.0. To my knowledge the first APEX quant of a 32B Granite hybrid.
Perplexity on wikitext-2-raw (test, 200×512-token windows), llama-perplexity.
All quants are imatrix-guided (diverse calibration).
| File | Size | BPW | PPL | Δ vs bf16 | Fits (VRAM) |
|---|---|---|---|---|---|
| bf16 (reference) | 61 GB | 16.0 | 5.752 | — | — |
| APEX-i-quality | 21 GB | 5.44 | 5.781 | +0.50% | 24 GB — best quality |
| APEX-i-compact | 16 GB | 4.13 | 5.998 | +4.28% | 24 GB |
| APEX-i-mini | 13 GB | 3.34 | 6.471 | +12.49% | 16 GB — smallest, quality trade |
Note on minimum size: Granite's routed-expert dim is 640 (not 256-divisible), so i-quants can't apply to the
ffn_down_exps— they fall back to ~Q4_K. That floors the practical minimum around ~13 GB (i-mini) and, as a bonus, protects the down projections' quality. Going below that (nano/IQ1) buys little here.
llama-cli -m granite-4.0-h-small-APEX-i-quality.gguf -ngl 999 -p "Hello"
llama-server -m granite-4.0-h-small-APEX-i-compact.gguf -ngl 999 --host 0.0.0.0 --port 8080
Requires a llama.cpp build supporting the granitemoehybrid architecture.
APEX = per-tensor-role, per-layer precision over stock llama-quantize --tensor-type-file.
Granite-H needed its Mamba-2 mixer tensors added to the map (the stock generator omits them):
ssm_in, ssm_conv1d, ssm_out at mixer precision; 1-D state
(ssm_a/d/dt/norm) left F32.attn_q/k/v/output.ffn_*_exps on a depth gradient; shared ffn_*_shexp at Q8_0/Q6_K.Baseline: IBM's own f16 GGUF. imatrix from Bartowski calibration_datav3.
Config gen + patcher: configs/, patch_granite_config.py, REPRODUCE.md.
A hand-roll pinning ssm_in/out/conv1d to Q8_0 (22 GB, PPL 5.779) was within noise of
i-quality — the SSM/recurrence tensors aren't precision-sensitive. Consistent with the
same finding on Kimi-Linear's KDA and Granite-4.0-H-Tiny.
It is shipped here as granite-4.0-h-small-APEX-handroll.gguf for transparency and
reproduction, but there's no reason to use it — it's slightly larger than i-quality
(22 GB vs 21 GB) for no measurable quality gain (PPL 5.779 vs 5.781). Use i-quality.
See LICENSE (Apache-2.0) and NOTICE.
Unofficial community quantization; not affiliated with or endorsed by IBM.