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

gemma-4-e4b-it-qat-OptiQ-4bit

Date: 2026-11-15Commit: a78078fSigned: 2DC28CC7B26A283B ✓

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

7.5B params7.51GBgemma-4-e4b-it-qat-OptiQ-4bitsafetensorspermissive
FactsParams7.5BSize7.51 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get mlx-community/gemma-4-e4b-it-qat-OptiQ-4bit
# manifest sha256 cd58e5b8eae7… · 7.51 GB · 14 files
$ fw verify ./gemma-4-e4b-it-qat-OptiQ-4bit mlx-community/gemma-4-e4b-it-qat-OptiQ-4bit
From sourceHosted (signed)mlx-community/gemma-4-e4b-it-qat-OptiQ-4bitLast check: 2026-11-15 05:00 UTC

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

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

Works with

Overview

Size
7.51 GB
Weights
7.48 GB (safetensors)
Parameters
7.5B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
14, 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-E4B-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:00 UTCpassed

Model card

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

mlx-community/gemma-4-e4b-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.19 Capability Score points.

This is a quant of google/gemma-4-E4B-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-E4B-it-qat-q4_0-unquantized (QAT)
Predominant precision4-bit
Components at 8-bit (sensitive)221
Components at 4-bit (robust)122
Total quantized components343
Achieved bits-per-weight5.17
Group size64
Reference for sensitivityuniform-4-bit baseline (bf16 does not fit in RAM at this size)
Calibration mixsix-domain mix
Visionbf16 sidecar (optiq_vision.safetensors), image+text via optiq
Speculative draftergoogle/gemma-4-E4B-it-qat-q4_0-unquantized-assistant via optiq serve --drafter

Capability Score#

Six-metric mean (MMLU, GSM8K, IFEval, BFCL, HumanEval, HashHop), scored against the published uniform 4-bit quant of the same QAT base (mlx-community/gemma-4-E4B-it-qat-4bit). 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)57.7%57.4%+0.3
GSM8K (1000)80.0%79.5%+0.5
IFEval (full, strict)69.1%67.8%+1.3
BFCL-V3 simple (200)87.5%87.5%+0.0
HumanEval (pass@1, 164)81.7%78.7%+3.0
HashHop (long-context)36.0%34.0%+2.0
Capability Score (mean)68.6767.48+1.19

The mixed-precision allocation adds +1.19 points over uniform 4-bit on the QAT base, with the largest gains on HumanEval and the long-context HashHop task. The mixed quant is 5.17 bits-per-weight (about 7.0 GB on disk) versus 4.0 bits-per-weight (about 6.3 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-e4b-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-e4b-it-qat-OptiQ-4bit \
            --drafter google/gemma-4-E4B-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-E4B-it-qat-q4_0-unquantized.

Files

14 files · 7.51 GBWeights 7.48 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md4.69 KB78c2ef89a4d42459783d4b3a70af401fa37c7fde1c1319d7ebaa2cd09a886e42
chat_template.jinja18.6 KB0a2c8073c878ab1da004bee933a998606537bbb62016310352c7285c3f01c5b5
config.json76.8 KB9dbfa78ee3c642651fdcaa29c4430cb3550ba4381944e7b5153a3aff4af47396
generation_config.json203 Bb69207f9be617e982d13cc273cce6fd88c98dda99a4bdc5e2d52ffe0a0d9f0a9
kv_config.json1.58 KBba7f2d5d20ed53ab28bb4c2cf7da3ec1bc2f4b16693283717d230e43ab05b6f0
model-00001-of-00002.safetensors3.50 GB1f36fca9e86a6caab0c1722a4c8d3921289e8486e129dada21f6e68c69336f9f
model-00002-of-00002.safetensors3.02 GBc9e780e20cf5fc2c694483a7145d655620f7b91fe934afd80220441e580559e3
model.safetensors.index.json260 KB9b218ba06bbc262983c577167067805371392249ead6c2a70c74d1242e8d058d
optiq_metadata.json35.7 KB3b3ef0ab99926d61363ef1c1ff633ba2e7653f6379431b5f7b167efdb245ae65
optiq_vision.safetensors956 MB1b6dad4f39975dc7c86e7a7d1d3ad4f89b5eb1f1bd5ca5307a7c07fcaa40bf82
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
a78078f40a pinned now2026-11-15 05:00 UTC14 files · 7.51 GB

Use it

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

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
78c2ef89a4d42459783d4b3a70af401fa37c7fde1c1319d7ebaa2cd09a886e42
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-e4b-it-qat-OptiQ-4bitDate: 2026-11-15Commit: a78078fSigned: 2DC28CC7B26A283B ✓
Upstream
mlx-community/gemma-4-e4b-it-qat-OptiQ-4bit
Pinned commit
a78078f40a3046b66cde60ee4c564393ccc595b8
Manifest
gemma-4-e4b-it-qat-OptiQ-4bit.json · .minisig
Manifest sha256
cd58e5b8eae78003a7eedcb298e6ea04fabb483689d44a74e877eeab73539598
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:00 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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