alt.freeweights.gemma / gemma-4-12B-it-GGUF
From: bartowski <huggingface.co/bartowski>Newsgroups: alt.freeweights.gemmaSubject:

gemma-4-12B-it-GGUF

Date: 2026-11-14Commit: 2ae7d41Signed: 2DC28CC7B26A283B ✓

Image text to text model. Gguf weights, 198 GB in all. Published by bartowski under Apache-2.0.

gemma198GBgemma-4-12B-it-GGUFggufpermissive
FactsParamsnot statedSize198 GBFormatsggufTaskimage text to textLicenseApache-2.0From sourcepermissive
$ fw get bartowski/gemma-4-12B-it-GGUF
# manifest sha256 46255aa9e653… · 198 GB · 32 files
$ fw verify ./gemma-4-12B-it-GGUF bartowski/gemma-4-12B-it-GGUF
From sourceHosted (signed)bartowski/gemma-4-12B-it-GGUFLast check: 2026-11-14 21:27 UTC

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

Quantized of gemma-4-12B-it.

Works with

Convert with

Overview

Size
198 GB
Weights
7.48 MB (smallest of 28 GGUF variants)
Parameters
not stated
Formats
gguf
Task
image text to text
License
Apache-2.0 (permissive)
Files
32, each with a sha256
Publisher
bartowski
Added
2026-11-14
Section
alt.freeweights.gemma
Lineage

Original release from the publisher.

Base model: google/gemma-4-12B-it

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:27 UTCpassed

Model card

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

Llamacpp imatrix Quantizations of gemma-4-12B-it by google#

Using llama.cpp release b9496 for quantization.

Original model: https://huggingface.co/google/gemma-4-12B-it

All quants made using imatrix option with dataset from here

Run them in your choice of tools:

Note: if it's a newly supported model, you may need to wait for an update from the developers.

What's new#

Updated to latest model release from Google

Prompt format#

<bos><|turn>system
{system_prompt}<turn|>
<|turn>user
{prompt}<turn|>
<|turn>model
<|channel>thought
<channel|>

Download a file (not the whole branch) from below:#

FilenameQuant typeFile SizeSplitDescription
gemma-4-12B-it-bf16.ggufbf1623.83GBfalseFull BF16 weights.
gemma-4-12B-it-Q8_0.ggufQ8_012.67GBfalseExtremely high quality, generally unneeded but max available quant.
gemma-4-12B-it-Q6_K_L.ggufQ6_K_L10.48GBfalseUses Q8_0 for embed and output weights. Very high quality, near perfect, recommended.
gemma-4-12B-it-Q6_K.ggufQ6_K10.24GBfalseVery high quality, near perfect, recommended.
gemma-4-12B-it-Q5_K_L.ggufQ5_K_L9.02GBfalseUses Q8_0 for embed and output weights. High quality, recommended.
gemma-4-12B-it-Q5_K_M.ggufQ5_K_M8.77GBfalseHigh quality, recommended.
gemma-4-12B-it-Q5_K_S.ggufQ5_K_S8.41GBfalseHigh quality, recommended.
gemma-4-12B-it-Q4_K_L.ggufQ4_K_L7.91GBfalseUses Q8_0 for embed and output weights. Good quality, recommended.
gemma-4-12B-it-Q4_1.ggufQ4_17.76GBfalseLegacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon.
gemma-4-12B-it-Q4_K_M.ggufQ4_K_M7.66GBfalseGood quality, default size for most use cases, recommended.
gemma-4-12B-it-Q4_K_S.ggufQ4_K_S7.17GBfalseSlightly lower quality with more space savings, recommended.
gemma-4-12B-it-Q4_0.ggufQ4_07.13GBfalseLegacy format, offers online repacking for ARM and AVX CPU inference.
gemma-4-12B-it-IQ4_NL.ggufIQ4_NL7.11GBfalseSimilar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference.
gemma-4-12B-it-Q3_K_XL.ggufQ3_K_XL6.90GBfalseUses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability.
gemma-4-12B-it-IQ4_XS.ggufIQ4_XS6.78GBfalseDecent quality, smaller than Q4_K_S with similar performance, recommended.
gemma-4-12B-it-Q3_K_L.ggufQ3_K_L6.65GBfalseLower quality but usable, good for low RAM availability.
gemma-4-12B-it-Q3_K_M.ggufQ3_K_M6.30GBfalseLow quality.
gemma-4-12B-it-IQ3_M.ggufIQ3_M5.97GBfalseMedium-low quality, new method with decent performance comparable to Q3_K_M.
gemma-4-12B-it-Q3_K_S.ggufQ3_K_S5.72GBfalseLow quality, not recommended.
gemma-4-12B-it-IQ3_XS.ggufIQ3_XS5.53GBfalseLower quality, new method with decent performance, slightly better than Q3_K_S.
gemma-4-12B-it-Q2_K_L.ggufQ2_K_L5.32GBfalseUses Q8_0 for embed and output weights. Very low quality but surprisingly usable.
gemma-4-12B-it-IQ3_XXS.ggufIQ3_XXS5.15GBfalseLower quality, new method with decent performance, comparable to Q3 quants.
gemma-4-12B-it-Q2_K.ggufQ2_K5.08GBfalseVery low quality but surprisingly usable.
gemma-4-12B-it-IQ2_M.ggufIQ2_M4.94GBfalseRelatively low quality, uses SOTA techniques to be surprisingly usable.
gemma-4-12B-it-IQ2_S.ggufIQ2_S4.71GBfalseLow quality, uses SOTA techniques to be usable.

Embed/output weights#

Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.

Downloading using huggingface-cli#

Click to view download instructions

First, make sure you have hugginface-cli installed:

pip install -U "huggingface_hub[cli]"

Then, you can target the specific file you want:

huggingface-cli download bartowski/gemma-4-12B-it-GGUF --include "gemma-4-12B-it-Q4_K_M.gguf" --local-dir ./

If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:

huggingface-cli download bartowski/gemma-4-12B-it-GGUF --include "gemma-4-12B-it-Q8_0/*" --local-dir ./

You can either specify a new local-dir (gemma-4-12B-it-Q8_0) or download them all in place (./)

ARM/AVX information#

Previously, you would download Q4_0_4_4/4_8/8_8, and these would have their weights interleaved in memory in order to improve performance on ARM and AVX machines by loading up more data in one pass.

Now, however, there is something called "online repacking" for weights. details in this PR. If you use Q4_0 and your hardware would benefit from repacking weights, it will do it automatically on the fly.

As of llama.cpp build b4282 you will not be able to run the Q4_0_X_X files and will instead need to use Q4_0.

Additionally, if you want to get slightly better quality for , you can use IQ4_NL thanks to this PR which will also repack the weights for ARM, though only the 4_4 for now. The loading time may be slower but it will result in an overall speed incrase.

Click to view Q4_0_X_X information (deprecated

I'm keeping this section to show the potential theoretical uplift in performance from using the Q4_0 with online repacking.

Click to view benchmarks on an AVX2 system (EPYC7702)

modelsizeparamsbackendthreadstestt/s% (vs Q4_0)
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp512204.03 ± 1.03100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp1024282.92 ± 0.19100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp2048259.49 ± 0.44100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg12839.12 ± 0.27100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg25639.31 ± 0.69100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg51240.52 ± 0.03100%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp512301.02 ± 1.74147%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp1024287.23 ± 0.20101%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp2048262.77 ± 1.81101%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg12818.80 ± 0.9948%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg25624.46 ± 3.0483%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg51236.32 ± 3.5990%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp512271.71 ± 3.53133%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp1024279.86 ± 45.63100%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp2048320.77 ± 5.00124%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg12843.51 ± 0.05111%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg25643.35 ± 0.09110%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg51242.60 ± 0.31105%

Q4_0_8_8 offers a nice bump to prompt processing and a small bump to text generation

Which file should I choose?#

Click here for details

A great write up with charts showing various performances is provided by Artefact2 here

The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.

If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.

If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.

Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.

If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.

If you want to get more into the weeds, you can check out this extremely useful feature chart:

llama.cpp feature matrix

But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.

These I-quants can also be used on CPU, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.

Credits#

Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.

Thank you ZeroWw for the inspiration to experiment with embed/output.

Thank you to LM Studio for sponsoring my work.

Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski

Files

32 files · 198 GBWeights 7.48 MB (smallest of 28 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 32 files with their sha256
FileSizesha256
.gitattributes3.41 KB9868839ee6caefd977119258bab81d674829508eb90401c9c6692973f4e1d9b4
README.md13.7 KB52deaed047c46d9fc01a956f4531aee70092303fa052f2e6b0ab85fc77d18d86
gemma-4-12B-it-IQ2_M.gguf4.94 GBb0303cc3e6246838efa03a52b59d3ac7e5ed762ef6c6af69275209844f8d7b26
gemma-4-12B-it-IQ2_S.gguf4.71 GBd36d1c8f795b3a4a05ed0cd91d916523f36c5f08efbee9b4d76d9f8dad9f5140
gemma-4-12B-it-IQ3_M.gguf5.97 GBdef80efba2f976bb0c9709f06845b237ba3092bf4d68d5b47fd84b4ef23f4439
gemma-4-12B-it-IQ3_XS.gguf5.53 GBc8044dc380f470797dcd208502cd6b5c95df6dbb9e2077f1734186eb11718831
gemma-4-12B-it-IQ3_XXS.gguf5.15 GB3a85fa01d72d3f5c30c4ae723f6a42e8ad0f6d4df366776b9628e1135e06f4c3
gemma-4-12B-it-IQ4_NL.gguf7.11 GBc4e10c4f78f4bf53462dedd20005fcd0848b6795b3118f721faea34ae88302ad
gemma-4-12B-it-IQ4_XS.gguf6.78 GB60e817ec84aabab9d20ac1eeec5d0e5fc5859993eb2f234e0f0d95fef2aa87f7
gemma-4-12B-it-Q2_K.gguf5.08 GB5006b410902f522dbd71654493f567ac34b17f55815ddba56a66a1e782742d7a
gemma-4-12B-it-Q2_K_L.gguf5.32 GB3c53110642d1503085d6f51e6df58969e37efaeb9d6e20f26fa57a40696f74c0
gemma-4-12B-it-Q3_K_L.gguf6.65 GB20193af337ae2f7d6e07d7932e0629557c57f81bc1f2038333f14e92cd711b23
gemma-4-12B-it-Q3_K_M.gguf6.30 GBb3a5c0834941b18251317f7dd1096e5d6e01b12e1b06b49670fd26467de8f6b4
gemma-4-12B-it-Q3_K_S.gguf5.72 GBf55ed96f15cc02c51dea6949845045269357a5afd6811eb8f22e95748a9130f6
gemma-4-12B-it-Q3_K_XL.gguf6.90 GBdf12df42d5aa3778275517d3f0ee6508d792967539ec8e495515f03b9c7e3c91
gemma-4-12B-it-Q4_0.gguf7.13 GB3624c1b6039ceaf8bfaa92581401de40d25fab9bf914f31039a5940a0bc1ee15
gemma-4-12B-it-Q4_1.gguf7.76 GBf84a61991185be095f133158737dc9f6ce966f19f8f5d3bbce017271c656b1ea
gemma-4-12B-it-Q4_K_L.gguf7.91 GB8781f2554b862f8a7f7fea77917c3cdf8001fe538253bca6bf6fa1c93554fd40
gemma-4-12B-it-Q4_K_M.gguf7.66 GB3962624dcd25b947d889dc9ae1bf275b61db6cd4dbe694057f34fffef1671509
gemma-4-12B-it-Q4_K_S.gguf7.17 GBa9311cd87e19413f8c7edf05fb498b6092a250d73e6d796217171d7c1efe32b8
gemma-4-12B-it-Q5_K_L.gguf9.02 GB0a5b80d14cc6ab530eea4c3a0066d3dcd85d0772e4662b323c152c4caa5ec91e
gemma-4-12B-it-Q5_K_M.gguf8.77 GB24fe88d9e6bba6a1805629a09e40d4d837a894d559c7708055f7a03211e2a25e
gemma-4-12B-it-Q5_K_S.gguf8.41 GBbc2f1e378ae7e924229fdead20dbadb3dc11d6e3df90347e25d8160b45403a1e
gemma-4-12B-it-Q6_K.gguf10.2 GB53336de05c4af36dcb61daf0d984be076ddf0245e3ce7f61aa10b72cb4044e97
gemma-4-12B-it-Q6_K_L.gguf10.5 GB52766ef472857441086f70f6d1013bec7b9b5238f469c3efefde2281e1c34209
gemma-4-12B-it-Q8_0.gguf12.7 GB929bd294cbdc59e41450488bea524a174f1c6ddc43f140fdb5905a5fd1e41969
gemma-4-12B-it-bf16.gguf23.8 GBffcd84a33a1f2150cf49c950dd5aa5354bf6d78e37e7373c893c94bb8a1b98b0
gemma-4-12B-it-imatrix.gguf7.48 MBdea4496876d246cd0b5037f2a72bd0ba52ac62da478ee03684cd0e338ca18e4c
mmproj-gemma-4-12B-it-bf16.gguf175 MB92de172d87a262e4873a2a1d909b1b6082a76909957648705f00cb9feaa16535
mmproj-gemma-4-12B-it-f16.gguf122 MB563192209f002b0a13af16a4992fdb9dd61187a36919eaf65f408bb47af3d272
mtp-gemma-4-12B-it-Q4_0.gguf323 MB2fd5d63c1d303215deb0d045c6fcd34960217d3076ba1743ddcf3cf816b95590
mtp-gemma-4-12B-it-Q8_0.gguf465 MB17a8a12f732bd65910a8827dccdcc6065ec8daf34069e0d97deaa28a1d5e013c
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
2ae7d41be2 pinned now manifest updated, same commit2026-11-14 21:27 UTC32 files · 198 GB
2ae7d41be22026-11-14 21:27 UTC32 files · 198 GB

Use it

$ fw get bartowski/gemma-4-12B-it-GGUF
# manifest sha256 46255aa9e653… · 198 GB · 32 files
$ fw verify ./gemma-4-12B-it-GGUF bartowski/gemma-4-12B-it-GGUF
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/bartowski/gemma-4-12B-it-GGUF.json --dir ./gemma-4-12B-it-GGUF $ python3 fw.py verify ./gemma-4-12B-it-GGUF ./bartowski__gemma-4-12B-it-GGUF.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/gemma-4-12B-it-GGUF --revision 2ae7d41be21ca62de00a2d320ee9cec50daa3aa6 --local-dir ./gemma-4-12B-it-GGUF
llama.cppDownload one GGUF variant (gemma-4-12B-it-imatrix, 7.48 MB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/gemma-4-12B-it-GGUF --include "gemma-4-12B-it-imatrix*" --local-dir ./gemma-4-12B-it-GGUF $ llama-server -m ./gemma-4-12B-it-GGUF/gemma-4-12B-it-imatrix.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./gemma-4-12B-it-GGUF/gemma-4-12B-it-imatrix.gguf\n' > Modelfile $ ollama create gemma-4-12b-it-gguf -f Modelfile

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
52deaed047c46d9fc01a956f4531aee70092303fa052f2e6b0ab85fc77d18d86
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: bartowski <huggingface.co/bartowski>Newsgroups: alt.freeweights.gemmaSubject: gemma-4-12B-it-GGUFDate: 2026-11-14Commit: 2ae7d41Signed: 2DC28CC7B26A283B ✓
Upstream
bartowski/gemma-4-12B-it-GGUF
Pinned commit
2ae7d41be21ca62de00a2d320ee9cec50daa3aa6
Manifest
gemma-4-12B-it-GGUF.json · .minisig
Manifest sha256
46255aa9e653a70e86d5caa8a20cbaddf37b5791a0d5eac3becc76c02dfa13dd
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:27 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/bartowski/gemma-4-12B-it-GGUF.json $ curl -O https://freeweights.allternit.com/manifests/bartowski/gemma-4-12B-it-GGUF.json.minisig $ minisign -Vm gemma-4-12B-it-GGUF.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 · 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 bartowski/gemma-4-12B-it-GGUF
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-GGUF.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