alt.freeweights.gemma / gemma-4-26B-A4B-it-qat-OptiQ-4bit
From: mlx-community <huggingface.co/mlx-community>Newsgroups: alt.freeweights.gemmaSubject:

gemma-4-26B-A4B-it-qat-OptiQ-4bit

Date: 2026-11-14Commit: 0d71c5eSigned: 2DC28CC7B26A283B ✓

Text generation model with 25.2B parameters. Safetensors weights, 21.9 GB in all. Published by mlx-community under Apache-2.0.

25.2B params21.9GBgemma-4-26B-A4B-it-qat-OptiQ-4bitsafetensorspermissive
FactsParams25.2BSize21.9 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit
# manifest sha256 ace9aceb46e1… · 21.9 GB · 16 files
$ fw verify ./gemma-4-26B-A4B-it-qat-OptiQ-4bit mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit
From sourceHosted (signed)mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bitLast check: 2026-11-14 21:30 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of gemma-4-26B-A4B-it-qat-q4_0-unquantized.

Works with

Overview

Size
21.9 GB
Weights
21.9 GB (safetensors)
Parameters
25.2B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
16, each with a sha256
Publisher
mlx-community
Added
2026-11-14
Section
alt.freeweights.gemma
Lineage

Original release from the publisher.

Base model: google/gemma-4-26B-A4B-it-qat-q4_0-unquantized

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:30 UTCpassed

Model card

From the publisher at commit 0d71c5e. Shown as plain text with links; images open at the publisher.

mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit#

Built with mlx-optiq, the MLX-native toolkit to quantize, fine-tune, and serve LLMs locally on Apple Silicon, no PyTorch and no cloud. Try the Lab · All OptiQ quants · Docs

A 4-bit mixed-precision MLX quant produced by mlx-optiq, built on Google's quantization-aware-trained (QAT) Gemma-4 base. This is the sparse-MoE member of the family: 26B total parameters with 128 routed experts (about 4B active per token). OptiQ's sensitivity-guided per-layer bit allocation is applied on top of weights already trained to survive low-bit quantization, and it still beats a uniform 4-bit quant of the same QAT base on the Capability Score.

This is a quant of google/gemma-4-26B-A4B-it-qat-q4_0-unquantized. Per-layer bit-widths come from a KL-divergence sensitivity pass on a six-domain calibration mix (prose, reasoning, code, agent, tool-call, constraint-bearing instructions). On this MoE the sensitivity pass identifies the routed experts as where precision matters most, so the allocation puts 8-bit on the experts that need it (42 of 90 expert tensors) plus the sensitive attention and router layers, and keeps the robust ones at 4-bit.

Quantization details#

PropertyValue
Basegoogle/gemma-4-26B-A4B-it-qat-q4_0-unquantized (QAT, MoE)
Architecturegemma4 · 128 experts, ~4B active per token
Predominant precision4-bit
Components at 8-bit (sensitive)275
Components at 4-bit (robust)50
Total quantized components325
Expert tensors at 8-bit42 / 90
Achieved bits-per-weight6.01
Group size64
Reference for sensitivityuniform 4-bit (streamed)
Calibration mixsix-domain mix
Visionbf16 sidecar (optiq_vision.safetensors), image+text via optiq
Speculative draftergoogle/gemma-4-26B-A4B-it-qat-q4_0-unquantized-assistant via optiq serve --drafter

Capability Score#

Six-metric mean (MMLU, GSM8K, IFEval, BFCL, HumanEval, HashHop), scored against a uniform 4-bit quant of the same QAT base. That comparison isolates what the mixed-precision allocation adds, holding the base fixed.

BenchmarkThis model (OptiQ, QAT base)Uniform-4 (QAT base)Delta
MMLU (5-shot, 1000)65.9%64.3%+1.6
GSM8K (1000)90.3%89.2%+1.1
IFEval (full, strict)74.1%73.6%+0.5
BFCL-V3 simple (200)92.0%93.0%-1.0
HumanEval (pass@1, 164)89.0%90.2%-1.2
HashHop (long-context)35.0%35.0%0.0
Capability Score (mean)74.4074.21+0.19

The gain concentrates in the reasoning-heavy benchmarks (MMLU +1.6, GSM8K +1.1, IFEval +0.5), which is where the routed experts carry the most signal. On this sparse-MoE base, where most of the parameters live in 128 experts, the precision has to reach the experts to move capability, and the per-layer allocation puts it there. The mixed quant is 6.01 bits-per-weight (about 19 GB on disk) versus 4.0 bits-per-weight (about 14.5 GB) for uniform 4-bit.

Usage#

This is a Gemma-4 MoE (model_type: gemma4, gemma4_text experts), so it needs mlx-lm from main and import optiq (the MoE text tower is not in the 0.31.3 PyPI release; the main build also reports 0.31.3, so install from git, not a version pin):

pip install -U mlx-optiq "mlx-lm @ git+https://github.com/ml-explore/mlx-lm.git"
import optiq  # registers the OptiQ model paths
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit")
print(generate(model, tokenizer, "Explain mixed-precision quantization.", max_tokens=256))

Image+text input and the speculative drafter run through mlx-optiq:

pip install mlx-optiq
optiq serve --model mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit \
            --drafter google/gemma-4-26B-A4B-it-qat-q4_0-unquantized-assistant

The language and image+text paths both run through optiq. The bf16 vision tower rides in optiq_vision.safetensors, which mlx-lm ignores (it globs model*.safetensors), so both paths work from one artifact.

Files

16 files · 21.9 GBWeights 21.9 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 16 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md4.92 KBf1cbb0197a5dd13d0e7a7b481a742d478511a253b516ad4eeda37d4821a6dcdf
chat_template.jinja18.7 KBae53464bf3be25802b3a5b37def7fd89667067d7577049b3b2d74c4d8de4c6d4
config.json72.8 KB7cea332b1c55e32cd7c832b2791d36671da6b12226715db81c20d6bfa42d2aa7
generation_config.json203 Bb69207f9be617e982d13cc273cce6fd88c98dda99a4bdc5e2d52ffe0a0d9f0a9
kv_config.json1.97 KB30142ce21caa43eb4c3e51477f710797f74baff1cb0fdb18981d73ac737ab3fe
model-00001-of-00004.safetensors5.18 GB3c00c1990155a449d28ca59971d44f12fac62f956eaeee824fc5f2de70b2aa1e
model-00002-of-00004.safetensors5.21 GB8841f78fe138e952b8306b0b8337b6932ff34bd38b23a6dcee0b5874b490cc04
model-00003-of-00004.safetensors5.28 GB45814691bea809a3a00afb4581f4b062831216e697fee0f5bef0c2775bf08621
model-00004-of-00004.safetensors5.04 GB13d5c18f659d373de50baed41b30cd7d678b301c80b794da52787a84e9b82b5a
model.safetensors.index.json167 KB9ceb63d8c3556cb64b9f89a5074b175ae8ebc3219d456c0dc391eeedcad3548c
optiq_metadata.json34.5 KBeca9b88d0997b0463376f9a023c0de327a5ff7807442a6beb1cea906cb204c7e
optiq_vision.safetensors1.15 GB3ec8c5c8058ecde1926ac5c196ce421a98348b3d81fe63b801da606a6b6c0cf9
processor_config.json1.69 KB32bdf45d2ad4cc29a0822ddd157a182de76644f0419a6228d151495256e9813c
tokenizer.json32.2 MBcc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0f
tokenizer_config.json2.77 KBe40cb5c9e039f9f63ed42cd44273bd969130270e7e63ee50ac0001869917f8f6
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
0d71c5e2ed pinned now manifest updated, same commit2026-11-14 21:30 UTC16 files · 21.9 GB
0d71c5e2ed2026-11-14 21:30 UTC16 files · 21.9 GB

Use it

$ fw get mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit
# manifest sha256 ace9aceb46e1… · 21.9 GB · 16 files
$ fw verify ./gemma-4-26B-A4B-it-qat-OptiQ-4bit mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit.json --dir ./gemma-4-26B-A4B-it-qat-OptiQ-4bit $ python3 fw.py verify ./gemma-4-26B-A4B-it-qat-OptiQ-4bit ./mlx-community__gemma-4-26B-A4B-it-qat-OptiQ-4bit.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit --revision 0d71c5e2edc2a95391106a6cf6a328694f2420c8 --local-dir ./gemma-4-26B-A4B-it-qat-OptiQ-4bit
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit", revision="0d71c5e2edc2a95391106a6cf6a328694f2420c8") model = AutoModelForCausalLM.from_pretrained("mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit", revision="0d71c5e2edc2a95391106a6cf6a328694f2420c8", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit --revision 0d71c5e2edc2a95391106a6cf6a328694f2420c8

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
f1cbb0197a5dd13d0e7a7b481a742d478511a253b516ad4eeda37d4821a6dcdf
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: mlx-community <huggingface.co/mlx-community>Newsgroups: alt.freeweights.gemmaSubject: gemma-4-26B-A4B-it-qat-OptiQ-4bitDate: 2026-11-14Commit: 0d71c5eSigned: 2DC28CC7B26A283B ✓
Upstream
mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit
Pinned commit
0d71c5e2edc2a95391106a6cf6a328694f2420c8
Manifest
gemma-4-26B-A4B-it-qat-OptiQ-4bit.json · .minisig
Manifest sha256
ace9aceb46e17eb4a998e006a3a972ceb49a3bbd19f64077a800f4a2ad6b11e8
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:30 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit.json $ curl -O https://freeweights.allternit.com/manifests/mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit.json.minisig $ minisign -Vm gemma-4-26B-A4B-it-qat-OptiQ-4bit.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

google/gemma-4-26B-A4B-it-qat-q4_0-unquantized · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mlx-community/gemma-4-26B-A4B-it-qat-OptiQ-4bit
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. gemma-4-26B-A4B-it-qat-OptiQ-4bit.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-12B-it-Ornith9-Summaries-LoRA-r128
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-12B-it-Ornith9-Summaries-LoRA-r64
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-12B-it-Qwen27-Knowledge-Units-LoRA-r128
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-12B-it-Qwen27-Summaries-LoRA-r128
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-12B-it-Qwen27-Summaries-LoRA-r64
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-E4B-it-Qwen27-Knowledge-Units-LoRA-r128