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

gemma-4-e2b-it-qat-OptiQ-4bit

Date: 2026-11-15Commit: 6bf302fSigned: 2DC28CC7B26A283B ✓

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

4.6B params5.25GBgemma-4-e2b-it-qat-OptiQ-4bitsafetensorspermissive
FactsParams4.6BSize5.25 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get mlx-community/gemma-4-e2b-it-qat-OptiQ-4bit
# manifest sha256 1e212c3e28e4… · 5.25 GB · 13 files
$ fw verify ./gemma-4-e2b-it-qat-OptiQ-4bit mlx-community/gemma-4-e2b-it-qat-OptiQ-4bit
From sourceHosted (signed)mlx-community/gemma-4-e2b-it-qat-OptiQ-4bitLast check: 2026-11-15 05:11 UTC

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

Quantized of gemma-4-E2B-it-qat-q4_0-unquantized.

Works with

Overview

Size
5.25 GB
Weights
5.22 GB (safetensors)
Parameters
4.6B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
13, each with a sha256
Publisher
mlx-community
Added
2026-11-15
Section
alt.freeweights.gemma
Lineage

Original release from the publisher.

Base model: google/gemma-4-E2B-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-15 05:11 UTCpassed

Model card

From the publisher at commit 6bf302f. Shown as plain text with links; images open at the publisher.

mlx-community/gemma-4-e2b-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 +2.09 Capability Score points.

This is a quant of google/gemma-4-E2B-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-E2B-it-qat-q4_0-unquantized (QAT)
Predominant precision4-bit
Components at 8-bit (sensitive)144
Components at 4-bit (robust)132
Total quantized components276
Achieved bits-per-weight5.24
Group size64
Reference for sensitivitybf16
Calibration mixsix-domain mix
Visionbf16 sidecar (optiq_vision.safetensors), image+text via optiq
Speculative draftergoogle/gemma-4-E2B-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)48.5%46.7%+1.8
GSM8K (1000)58.6%56.2%+2.4
IFEval (full, strict)66.0%67.7%-1.7
BFCL-V3 simple (200)89.5%88.5%+1.0
HumanEval (pass@1, 164)62.8%59.8%+3.0
HashHop (long-context)18.0%12.0%+6.0
Capability Score (mean)57.2355.14+2.09

OptiQ adds +2.09 points over uniform 4-bit on this QAT base, close to the +2.12 it adds on the vanilla gemma-4-e2b-it base, so the per-layer allocation keeps paying off even after QAT has made the weights more quantization-robust. The mixed quant is 5.24 bits-per-weight (about 4.9 GB on disk) versus 4.0 bits-per-weight (about 2.4 GB) for uniform 4-bit: the gain comes from spending the extra budget on the layers that need it.

Usage#

mlx-lm loads it directly for text:

from mlx_lm import load, generate
model, tokenizer = load("mlx-community/gemma-4-e2b-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-e2b-it-qat-OptiQ-4bit \
            --drafter google/gemma-4-E2B-it-qat-q4_0-unquantized-assistant

The same repo loads text-only under stock mlx-lm and image+text under 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.

Quantize your own#

This quant was produced by mlx-optiq. Point it at any Hugging Face model to get the same sensitivity-aware mixed precision:

pip install mlx-optiq
optiq convert <hf-model-id> --target-bpw 5.0 --candidate-bits 4,8
optiq lab   # or open the full local workbench: chat, compare, quantize, fine-tune

License#

Gemma Terms of Use. Built on google/gemma-4-E2B-it-qat-q4_0-unquantized.

Files

13 files · 5.25 GBWeights 5.22 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 13 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md4.59 KBad941428463e9f1e5fc3e1a1099f137136deef3a60c7348e37c677ec1634510f
chat_template.jinja18.6 KB0a2c8073c878ab1da004bee933a998606537bbb62016310352c7285c3f01c5b5
config.json62.7 KB7247e85fe05f31d06ccb4261c4b94838bb2fdb19e2cad5c268cc61ff6c2e7a56
generation_config.json203 Bb69207f9be617e982d13cc273cce6fd88c98dda99a4bdc5e2d52ffe0a0d9f0a9
kv_config.json982 B98143409eab7d95ca7b5d43af130e7c81eca8e897799508017043ff94e533fc6
model.safetensors4.27 GBfd6e9b685b208c8f7a6b2be2cfab1f9ce0319d803c2395db533006e2d1cdf979
model.safetensors.index.json218 KB57ae5472e1051b999aadab194d505462d74cbcf5956b896a0bb5229dae167163
optiq_metadata.json28.8 KB149130d7e548b0bc535a1ec130fb4e36f6946d60e46c5d5a0a986996cac6f0fd
optiq_vision.safetensors952 MB06968ae7623621d2ec290f48eceacae3c8f5570fb6f07227c50cdd4e3128cfc6
processor_config.json1.69 KB32bdf45d2ad4cc29a0822ddd157a182de76644f0419a6228d151495256e9813c
tokenizer.json32.2 MBcc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0f
tokenizer_config.json2.77 KB8155d42e19a25623e76fc0460ce24ddfd34a7c85b496456684249c68e5f93fc5
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
6bf302fd09 pinned now2026-11-15 05:11 UTC13 files · 5.25 GB

Use it

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

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-15
Text in
README.md
Text sha256
ad941428463e9f1e5fc3e1a1099f137136deef3a60c7348e37c677ec1634510f
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-e2b-it-qat-OptiQ-4bitDate: 2026-11-15Commit: 6bf302fSigned: 2DC28CC7B26A283B ✓
Upstream
mlx-community/gemma-4-e2b-it-qat-OptiQ-4bit
Pinned commit
6bf302fd09388a30f56fa96789166a9349fd0f51
Manifest
gemma-4-e2b-it-qat-OptiQ-4bit.json · .minisig
Manifest sha256
1e212c3e28e46c574a55650b9fa284deb4092d4c353659f302c67094bc75e14f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:11 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/mlx-community/gemma-4-e2b-it-qat-OptiQ-4bit.json $ curl -O https://freeweights.allternit.com/manifests/mlx-community/gemma-4-e2b-it-qat-OptiQ-4bit.json.minisig $ minisign -Vm gemma-4-e2b-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-E2B-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-e2b-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-e2b-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