This is a community release of Google DeepMind’s instruction-tuned Gemma 4 26B A4B, a mixture-of-experts model with about 4B active parameters per token. It contains a recalibrated mixed-precision GGUF and its matching packed safetensors checkpoint. The original Gemma weights are distributed under Apache 2.0. Original model and model card
| File | Size | Use |
|---|---|---|
gemma-4-26B-A4B-it-Heretic-ARA-IQ2S.gguf |
8.11 GB | Text inference with Gemma 4, Q2_0, and Q4_0 support. |
safetensors/ |
9.25 GB | 11 packed shards, tensor index, quantization manifest, original model configuration, tokenizer, and chat template. |
IQ2_S in the release name denotes the target size class. The GGUF contains 56 Q2_0 tensors and 210 Q4_0 tensors, alongside tensors kept at higher precision. The packed checkpoint averages 2.559 bits per text weight, including scale storage and higher-precision text tensors.
We applied Heretic’s Arbitrary-Rank Ablation (ARA) to the original BF16 weights before quantization. The selected trial modified 32 text-model attention output and dense MLP down projections across layers 14–29, reducing refusals while scoring changes to the original output distribution on a separate set of prompts. Heretic
| BF16 checkpoint | Refusals on the Heretic evaluation set |
|---|---|
| Original Gemma 4 26B A4B IT | 32 / 32 (100%) |
| Selected ARA trial | 5 / 32 (15.6%) |
The selected trial had a first-token KL divergence of 0.0457 on the evaluation prompts used for that metric. These scores describe the BF16 trial before quantization and are specific to that evaluation set.
Gumbel-Softmax Quantization (GSQ) fits scalar weight codes and group scales against calibration activations. Riemannian Constrained Optimization (RCO) provides a method for choosing mixed-precision assignments under a size budget. This build uses the ISTA DASLab reference methods with local calibration of the merged ARA checkpoint. The recalibrated expert pass compared retained GSQ codes with activation-weighted signed-scale candidates, then selected the final 2-bit and 4-bit expert assignments under the budget using held-out calibration error. GSQ paper and code · RCO paper and code
All 266 quantized GGUF tensors were checked against the packed safetensors and matched byte for byte after conversion to the GGUF block layout. The recalibrated build also passed four local Korean text smoke checks covering arithmetic, a drone ESC question, salt water, and a greeting.
Use a recent llama.cpp build with Gemma 4, Q2_0, and Q4_0 support.
hf download RoundRobin237/Gemma4-26B-A4B-Heretic-ARA-GSQ-RCO-IQ2_S gemma-4-26B-A4B-it-Heretic-ARA-IQ2S.gguf --local-dir .
llama-cli -m gemma-4-26B-A4B-it-Heretic-ARA-IQ2S.gguf -cnv
GGUF SHA-256
d6d513b85227dc1c4650ebe0905181b94648e0ea7dbcc573133235153228d48e
quantization.json describes each packed weight’s original shape, group size, bit width, and associated code and scale tensors. The companion script reconstructs a loadable BF16-layout directory from those values. Reconstruction uses the quantized values stored in this release.
hf download RoundRobin237/Gemma4-26B-A4B-Heretic-ARA-GSQ-RCO-IQ2_S --include 'safetensors/*' 'restore_safetensors.py' --local-dir .
python -m pip install torch safetensors
python restore_safetensors.py safetensors restored-bf16
Allow about 54 GB of additional disk space for reconstruction. The GGUF is the direct text-inference download. The packed safetensors retain the vision encoder and projection tensors.
safetensors/model-00011-of-00011.safetensors 1.3 GiBsafetensors/model-00001-of-00011.safetensors 868 MiBsafetensors/model-00005-of-00011.safetensors 775 MiBsafetensors/model-00007-of-00011.safetensors 775 MiBsafetensors/model-00003-of-00011.safetensors 775 MiBsafetensors/model-00008-of-00011.safetensors 767 MiBsafetensors/model-00009-of-00011.safetensors 707 MiBsafetensors/model-00006-of-00011.safetensors 699 MiBsafetensors/model-00010-of-00011.safetensors 699 MiBsafetensors/model-00004-of-00011.safetensors 699 MiBsafetensors/model-00002-of-00011.safetensors 699 MiBgoogle/gemma-4-26B-A4B-it