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

gemma-4-12B-it-qat-OptiQ-4bit

Date: 2026-11-14Commit: 5fbb5d9Signed: 2DC28CC7B26A283B ✓

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

11.9B params9.04GBgemma-4-12B-it-qat-OptiQ-4bitsafetensorspermissive
FactsParams11.9BSize9.04 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get mlx-community/gemma-4-12B-it-qat-OptiQ-4bit
# manifest sha256 1a3ff51e4d4f… · 9.04 GB · 14 files
$ fw verify ./gemma-4-12B-it-qat-OptiQ-4bit mlx-community/gemma-4-12B-it-qat-OptiQ-4bit
From sourceHosted (signed)mlx-community/gemma-4-12B-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-12B-it-qat-q4_0-unquantized.

Works with

Overview

Size
9.04 GB
Weights
9.00 GB (safetensors)
Parameters
11.9B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
14, 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-12B-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 5fbb5d9. Shown as plain text with links; images open at the publisher.

mlx-community/gemma-4-12B-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. OptiQ's sensitivity-guided per-layer bit allocation is applied on top of weights that were trained to survive low-bit quantization, and it still beats a uniform 4-bit quant of the same QAT base by +1.37 Capability Score points.

This is a quant of google/gemma-4-12B-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). Sensitive layers go to 8-bit, robust ones stay at 4-bit.

Quantization details#

PropertyValue
Basegoogle/gemma-4-12B-it-qat-q4_0-unquantized (QAT)
Predominant precision4-bit
Components at 8-bit (sensitive)157
Components at 4-bit (robust)171
Total quantized components328
Achieved bits-per-weight5.25
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-12B-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)52.5%50.9%+1.6
GSM8K (1000)93.3%93.1%+0.2
IFEval (full, strict)73.6%72.3%+1.3
BFCL-V3 simple (200)72.0%72.5%-0.5
HumanEval (pass@1, 164)91.5%90.9%+0.6
HashHop (long-context)35.0%30.0%+5.0
Capability Score (mean)69.6468.27+1.37

OptiQ adds +1.37 points over uniform 4-bit on this QAT base, consistent with the margin on the other QAT Gemma-4 sizes (E2B +2.09, E4B +1.19): the per-layer allocation keeps paying off even after QAT has made the weights more quantization-robust. The mixed quant is 5.25 bits-per-weight (about 8.3 GB on disk) versus 4.0 bits-per-weight (about 6.2 GB) for uniform 4-bit, with the extra budget spent on the layers that need it.

Usage#

The 12B is the unified Gemma-4 (model_type: gemma4_unified), so it needs mlx-lm from main and import optiq (the unified 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 gemma4_unified model type
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/gemma-4-12B-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-12B-it-qat-OptiQ-4bit \
            --drafter google/gemma-4-12B-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

14 files · 9.04 GBWeights 9.00 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md4.45 KB6a9510e5e89ccef1c9c6002fa5b09380bd94a63f3cfbc2dd2ed3f5d730b5916c
chat_template.jinja18.7 KBae53464bf3be25802b3a5b37def7fd89667067d7577049b3b2d74c4d8de4c6d4
config.json71.9 KB7498f36fa59dedc7498d3a3dcbd827beebb30c5a06ba8a4cbeb273274411b561
generation_config.json260 Ba8349d9bd64cc5841297fcb5002f0fdc4749c473c8f1b10ea337f9ce4ee7014e
kv_config.json3.16 KB9755118a7773451be6bf66210694c7be9b0b5f1c0f6237808f6b95829dbef0cc
model-00001-of-00002.safetensors5.37 GB515896784d9237ed8545ee2668eb886f665b075abe8ae50dc70f10cf173763c1
model-00002-of-00002.safetensors3.53 GB0bea2433d5812dbb20fddc75b4adaa2d33a964420209eabefef94579048b0457
model.safetensors.index.json129 KBc51ce9064ad7c2957b0892ebe66751217cf10bfa34f707b752bea7050a79a91a
optiq_metadata.json33.8 KBe64e0271ef661b18c1d6b54c395266681be08771aa3e11804c7a206ada32dddf
optiq_vision.safetensors105 MBe8649d38ae7b79f19c0fb4d6a7b2dc2ab50da5c072a22bc7a49b1208246ccbd3
processor_config.json1.38 KB6b938e76555b3e9946890770e1abcd442a4718f34041a58e8139dc8ad34545c9
tokenizer.json32.2 MBcc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0f
tokenizer_config.json2.78 KB113b1b1773839fe736d09a3c80a63a3877c0ae1321726f56c8bb6c7cb1943710
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
5fbb5d97b1 pinned now manifest updated, same commit2026-11-14 21:30 UTC14 files · 9.04 GB
5fbb5d97b12026-11-14 21:30 UTC14 files · 9.04 GB

Use it

$ fw get mlx-community/gemma-4-12B-it-qat-OptiQ-4bit
# manifest sha256 1a3ff51e4d4f… · 9.04 GB · 14 files
$ fw verify ./gemma-4-12B-it-qat-OptiQ-4bit mlx-community/gemma-4-12B-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-12B-it-qat-OptiQ-4bit.json --dir ./gemma-4-12B-it-qat-OptiQ-4bit $ python3 fw.py verify ./gemma-4-12B-it-qat-OptiQ-4bit ./mlx-community__gemma-4-12B-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-12B-it-qat-OptiQ-4bit --revision 5fbb5d97b1219b5e12735cc0e865bae1dd8e8fce --local-dir ./gemma-4-12B-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-12B-it-qat-OptiQ-4bit", revision="5fbb5d97b1219b5e12735cc0e865bae1dd8e8fce") model = AutoModelForCausalLM.from_pretrained("mlx-community/gemma-4-12B-it-qat-OptiQ-4bit", revision="5fbb5d97b1219b5e12735cc0e865bae1dd8e8fce", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve mlx-community/gemma-4-12B-it-qat-OptiQ-4bit --revision 5fbb5d97b1219b5e12735cc0e865bae1dd8e8fce

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
6a9510e5e89ccef1c9c6002fa5b09380bd94a63f3cfbc2dd2ed3f5d730b5916c
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-12B-it-qat-OptiQ-4bitDate: 2026-11-14Commit: 5fbb5d9Signed: 2DC28CC7B26A283B ✓
Upstream
mlx-community/gemma-4-12B-it-qat-OptiQ-4bit
Pinned commit
5fbb5d97b1219b5e12735cc0e865bae1dd8e8fce
Manifest
gemma-4-12B-it-qat-OptiQ-4bit.json · .minisig
Manifest sha256
1a3ff51e4d4f03f887261ecf1a8d5afbe07f4c292b7ed6d133eb3c1d0d184fd6
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-12B-it-qat-OptiQ-4bit.json $ curl -O https://freeweights.allternit.com/manifests/mlx-community/gemma-4-12B-it-qat-OptiQ-4bit.json.minisig $ minisign -Vm gemma-4-12B-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-12B-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-12B-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-12B-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