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

google_gemma-4-31B-it-GGUF

Date: 2026-11-14Commit: 619aca7Signed: 2DC28CC7B26A283B ✓

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

gemma538GBgoogle_gemma-4-31B-it-GGUFggufpermissive
FactsParamsnot statedSize538 GBFormatsggufTaskimage text to textLicenseApache-2.0From sourcepermissive
$ fw get bartowski/google_gemma-4-31B-it-GGUF
# manifest sha256 cb19b4809705… · 538 GB · 36 files
$ fw verify ./google_gemma-4-31B-it-GGUF bartowski/google_gemma-4-31B-it-GGUF
From sourceHosted (signed)bartowski/google_gemma-4-31B-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-31B-it.

Works with

Convert with

Overview

Size
538 GB
Weights
13.8 MB (smallest of 31 GGUF variants)
Parameters
not stated
Formats
gguf
Task
image text to text
License
Apache-2.0 (permissive)
Files
36, 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-31B-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 619aca7. Shown as plain text with links; images open at the publisher.

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

Using llama.cpp release b8746 for quantization.

Original model: https://huggingface.co/google/gemma-4-31B-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.

Prompt format#

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

What's new:#

Latest fixes and chat template

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

FilenameQuant typeFile SizeSplitDescription
gemma-4-31B-it-bf16.ggufbf1661.41GBtrueFull BF16 weights.
gemma-4-31B-it-Q8_0.ggufQ8_032.64GBfalseExtremely high quality, generally unneeded but max available quant.
gemma-4-31B-it-Q6_K_L.ggufQ6_K_L27.07GBfalseUses Q8_0 for embed and output weights. Very high quality, near perfect, recommended.
gemma-4-31B-it-Q6_K.ggufQ6_K26.73GBfalseVery high quality, near perfect, recommended.
gemma-4-31B-it-Q5_K_L.ggufQ5_K_L22.95GBfalseUses Q8_0 for embed and output weights. High quality, recommended.
gemma-4-31B-it-Q5_K_M.ggufQ5_K_M22.61GBfalseHigh quality, recommended.
gemma-4-31B-it-Q5_K_S.ggufQ5_K_S21.50GBfalseHigh quality, recommended.
gemma-4-31B-it-Q4_K_L.ggufQ4_K_L19.94GBfalseUses Q8_0 for embed and output weights. Good quality, recommended.
gemma-4-31B-it-Q4_1.ggufQ4_119.77GBfalseLegacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon.
gemma-4-31B-it-Q4_K_M.ggufQ4_K_M19.60GBfalseGood quality, default size for most use cases, recommended.
gemma-4-31B-it-Q4_K_S.ggufQ4_K_S18.20GBfalseSlightly lower quality with more space savings, recommended.
gemma-4-31B-it-Q4_0.ggufQ4_018.08GBfalseLegacy format, offers online repacking for ARM and AVX CPU inference.
gemma-4-31B-it-IQ4_NL.ggufIQ4_NL18.03GBfalseSimilar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference.
gemma-4-31B-it-IQ4_XS.ggufIQ4_XS17.16GBfalseDecent quality, smaller than Q4_K_S with similar performance, recommended.
gemma-4-31B-it-Q3_K_XL.ggufQ3_K_XL17.15GBfalseUses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability.
gemma-4-31B-it-Q3_K_L.ggufQ3_K_L16.81GBfalseLower quality but usable, good for low RAM availability.
gemma-4-31B-it-Q3_K_M.ggufQ3_K_M15.92GBfalseLow quality.
gemma-4-31B-it-IQ3_M.ggufIQ3_M15.13GBfalseMedium-low quality, new method with decent performance comparable to Q3_K_M.
gemma-4-31B-it-Q3_K_S.ggufQ3_K_S14.33GBfalseLow quality, not recommended.
gemma-4-31B-it-IQ3_XS.ggufIQ3_XS13.84GBfalseLower quality, new method with decent performance, slightly better than Q3_K_S.
gemma-4-31B-it-IQ3_XXS.ggufIQ3_XXS12.98GBfalseLower quality, new method with decent performance, comparable to Q3 quants.
gemma-4-31B-it-Q2_K_L.ggufQ2_K_L12.97GBfalseUses Q8_0 for embed and output weights. Very low quality but surprisingly usable.
gemma-4-31B-it-IQ2_M.ggufIQ2_M12.65GBfalseRelatively low quality, uses SOTA techniques to be surprisingly usable.
gemma-4-31B-it-Q2_K.ggufQ2_K12.63GBfalseVery low quality but surprisingly usable.
gemma-4-31B-it-IQ2_S.ggufIQ2_S12.08GBfalseLow quality, uses SOTA techniques to be usable.
gemma-4-31B-it-IQ2_XS.ggufIQ2_XS11.50GBfalseLow quality, uses SOTA techniques to be usable.
gemma-4-31B-it-IQ2_XXS.ggufIQ2_XXS10.83GBfalseVery low quality, uses SOTA techniques to be usable.
gemma-4-31B-it-IQ1_M.ggufIQ1_M10.11GBfalseExtremely low quality, not recommended.

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/google_gemma-4-31B-it-GGUF --include "google_gemma-4-31B-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/google_gemma-4-31B-it-GGUF --include "google_gemma-4-31B-it-Q8_0/*" --local-dir ./

You can either specify a new local-dir (google_gemma-4-31B-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

36 files · 538 GBWeights 13.8 MB (smallest of 31 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 36 files with their sha256
FileSizesha256
.gitattributes3.98 KB08e48763822f64646bdfeb0772604f10b3f9020e426345b07f98f36e507168a6
README.md14.8 KBde9e3b03bf2c26af54cfd09ef59681820fe80e48d95d51ea6ac04d09f06a432a
google_gemma-4-31B-it-IQ1_M.gguf10.1 GB99870ee4aeeab03532bbb72f0af7332d6f2e3f9de4a4ba26c6aff8b906a8a201
google_gemma-4-31B-it-IQ2_M.gguf12.6 GB3f98b832e1a097356f55fc40a44c6193a877ce0467eea38e7001fb96e9cd9a8f
google_gemma-4-31B-it-IQ2_S.gguf12.1 GB26c268ebddd0c4315dc57a0846e74bee8cb99836f186b4ce561eaae9e8755066
google_gemma-4-31B-it-IQ2_XS.gguf11.5 GB8c4abed66c765ff6ebb96ee257a65018f3d800351cc6e0db288735bc05919d43
google_gemma-4-31B-it-IQ2_XXS.gguf10.8 GB3023b2dc6f8719ada9536c22a5b57408ddb1f18d4377de8efa7997237329ec3f
google_gemma-4-31B-it-IQ3_M.gguf15.1 GB34fee56068a087c32e753ac1c25d45e329bc3e5c6a768279e20ff4f107ca7802
google_gemma-4-31B-it-IQ3_XS.gguf13.8 GB9919f8d192412bad9161890a3c5ac748d553b9018e6856de47bc2a4fe91401e1
google_gemma-4-31B-it-IQ3_XXS.gguf13.0 GBc9f34994715a016cd0bcd7ff4c1f5710718bbcc25d40796302db0a89b6d0d8ea
google_gemma-4-31B-it-IQ4_NL.gguf18.0 GB95cf739e546a1c8ade9b84ce4cd0358a5c87f69c450e04d768126acbd2f17723
google_gemma-4-31B-it-IQ4_XS.gguf17.2 GB05e0fa1452e73e1b43bdfd378b82b488f57eb63db2bc5e4209f458e08d0542a7
google_gemma-4-31B-it-Q2_K.gguf12.6 GB0c9ac8f56177147f30a8845b3637e119ee5c0ba528af73cd363fb486f05ef0c7
google_gemma-4-31B-it-Q2_K_L.gguf13.0 GBa0ca05763da9239a8ac4b4c267a43a1abd8dbfe3e373181d6f4ad837b81578fb
google_gemma-4-31B-it-Q3_K_L.gguf16.8 GBa61e2576c8d95ee021f162462555e17b4b02c1f72691e69edc85c01e81151e70
google_gemma-4-31B-it-Q3_K_M.gguf15.9 GBeafa3499f35610f0c71af7b688328692f710d01283e140b5089991cf6478f486
google_gemma-4-31B-it-Q3_K_S.gguf14.3 GB99398bdab6241b3e513c129a4c24e8047bee51026585bfaa9eee80f656154789
google_gemma-4-31B-it-Q3_K_XL.gguf17.2 GB0831a19763d76da64f15cd2448ab881a9058cc47cdeb778116bbf3794853725d
google_gemma-4-31B-it-Q4_0.gguf18.1 GB4591e5ee10527739514d6db436b51169c882949e3858d30285aa997b0b253554
google_gemma-4-31B-it-Q4_1.gguf19.8 GB567d744757d575d84c0a42278091223aa2351cdae8f375d4962eec44272659be
google_gemma-4-31B-it-Q4_K_L.gguf19.9 GB805ecb7f3d6b2cca58f31a6bc3579716173ec21f310e3af62c2b728c51488057
google_gemma-4-31B-it-Q4_K_M.gguf19.6 GB2959c1b0a4f792493bb0092846ea06aec54547e47be979c282634d938d501b75
google_gemma-4-31B-it-Q4_K_S.gguf18.2 GBa8f81e34d3720884355b3b220ae58c8f8cbf7d1f5bdab0f073a681fb768c9d52
google_gemma-4-31B-it-Q5_K_L.gguf23.0 GBca773a604cd05507c95d671119a83a010ba0bda42e4c715b542be32ed68ad649
google_gemma-4-31B-it-Q5_K_M.gguf22.6 GB9f6882d4780880c96f2292c7daf5d5f18fa7e3678cecc47fc22649e93ce6f693
google_gemma-4-31B-it-Q5_K_S.gguf21.5 GB7761c1ff2f0ec42fb5aa510f0c6b172d9042e94b289d9a9b73ce63ea5f6f7b0d
google_gemma-4-31B-it-Q6_K.gguf26.7 GB3ddedb5dbd39acced499c489181983f27bd6e6bd3cd5d4a367696eeda3d1e397
google_gemma-4-31B-it-Q6_K_L.gguf27.1 GBf77819db7b83a145425084048efec024b5efbc175bc0fdc4bc4bfe7d4b5802df
google_gemma-4-31B-it-Q8_0.gguf32.6 GBb2021742dad920260eea1a2fe3f7ebacc6f4963b4242ea3211f6bdb46e494a8e
google_gemma-4-31B-it-bf16/google_gemma-4-31B-it-bf16-00001-of-00002.gguf40.0 GB00d6ab955e63cde6d0306adb99455c3fab96c3254b2fbfe750b65e8e4543485a
google_gemma-4-31B-it-bf16/google_gemma-4-31B-it-bf16-00002-of-00002.gguf21.4 GBed3ed48c668ef6b7a14ec06a56554deea9f3af5d2f245560f450ab7f25756e29
google_gemma-4-31B-it-imatrix.gguf13.8 MBf749aac429f5a1fd6fda4bc10823682669b8f45a10805230442a7a648ac70620
mmproj-google_gemma-4-31B-it-bf16.gguf1.20 GB21487ff26d08f7ddd1d654d3bbfc1ae1020aab3119f5bf654742ce4697732e4e
mmproj-google_gemma-4-31B-it-f16.gguf1.20 GB3e3f3f593b34bb4f518ada3e7999e4cbcd2a5864fa86ebc23fad3cbc4fbeba40
mtp-google_gemma-4-31B-it-Q4_0.gguf349 MB3103d6e845443e3a6156704aa84feeb43bb7ffef96a47a522ad6449c342b6809
mtp-google_gemma-4-31B-it-Q8_0.gguf515 MB743b2b719e448f9a06e774b4f33dd7a391a73e94d32297c7590256484562eb52
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
619aca7589 pinned now manifest updated, same commit2026-11-14 21:27 UTC36 files · 538 GB
619aca75892026-11-14 21:27 UTC36 files · 538 GB

Use it

$ fw get bartowski/google_gemma-4-31B-it-GGUF
# manifest sha256 cb19b4809705… · 538 GB · 36 files
$ fw verify ./google_gemma-4-31B-it-GGUF bartowski/google_gemma-4-31B-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/google_gemma-4-31B-it-GGUF.json --dir ./google_gemma-4-31B-it-GGUF $ python3 fw.py verify ./google_gemma-4-31B-it-GGUF ./bartowski__google_gemma-4-31B-it-GGUF.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/google_gemma-4-31B-it-GGUF --revision 619aca7589c72be65dd968de8602ad23d68b5c14 --local-dir ./google_gemma-4-31B-it-GGUF
llama.cppDownload one GGUF variant (google_gemma-4-31B-it-imatrix, 13.8 MB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/google_gemma-4-31B-it-GGUF --include "google_gemma-4-31B-it-imatrix*" --local-dir ./google_gemma-4-31B-it-GGUF $ llama-server -m ./google_gemma-4-31B-it-GGUF/google_gemma-4-31B-it-imatrix.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./google_gemma-4-31B-it-GGUF/google_gemma-4-31B-it-imatrix.gguf\n' > Modelfile $ ollama create google-gemma-4-31b-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
de9e3b03bf2c26af54cfd09ef59681820fe80e48d95d51ea6ac04d09f06a432a
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: google_gemma-4-31B-it-GGUFDate: 2026-11-14Commit: 619aca7Signed: 2DC28CC7B26A283B ✓
Upstream
bartowski/google_gemma-4-31B-it-GGUF
Pinned commit
619aca7589c72be65dd968de8602ad23d68b5c14
Manifest
google_gemma-4-31B-it-GGUF.json · .minisig
Manifest sha256
cb19b4809705ad580d335fdf7e362c6f63dd53972ec687003838f663fbc6a1e1
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/google_gemma-4-31B-it-GGUF.json $ curl -O https://freeweights.allternit.com/manifests/bartowski/google_gemma-4-31B-it-GGUF.json.minisig $ minisign -Vm google_gemma-4-31B-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-31B-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/google_gemma-4-31B-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. google_gemma-4-31B-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