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

google_gemma-4-E4B-it-GGUF

Date: 2026-11-14Commit: 029e941Signed: 2DC28CC7B26A283B ✓

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

gemma138GBgoogle_gemma-4-E4B-it-GGUFggufpermissive
FactsParamsnot statedSize138 GBFormatsggufTaskimage text to textLicenseApache-2.0From sourcepermissive
$ fw get bartowski/google_gemma-4-E4B-it-GGUF
# manifest sha256 ebaa626a150a… · 138 GB · 28 files
$ fw verify ./google_gemma-4-E4B-it-GGUF bartowski/google_gemma-4-E4B-it-GGUF
From sourceHosted (signed)bartowski/google_gemma-4-E4B-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-E4B-it.

Works with

Convert with

Overview

Size
138 GB
Weights
4.43 MB (smallest of 24 GGUF variants)
Parameters
not stated
Formats
gguf
Task
image text to text
License
Apache-2.0 (permissive)
Files
28, 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-E4B-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 029e941. Shown as plain text with links; images open at the publisher.

Llamacpp imatrix Quantizations of gemma-4-E4B-it by google#

Using llama.cpp release b8746 for quantization.

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

What's new:#

Latest fixes and chat template

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

FilenameQuant typeFile SizeSplitDescription
gemma-4-E4B-it-bf16.ggufbf1615.05GBfalseFull BF16 weights.
gemma-4-E4B-it-Q8_0.ggufQ8_08.03GBfalseExtremely high quality, generally unneeded but max available quant.
gemma-4-E4B-it-Q6_K_L.ggufQ6_K_L7.18GBfalseUses Q8_0 for embed and output weights. Very high quality, near perfect, recommended.
gemma-4-E4B-it-Q5_K_L.ggufQ5_K_L6.67GBfalseUses Q8_0 for embed and output weights. High quality, recommended.
gemma-4-E4B-it-Q6_K.ggufQ6_K6.33GBfalseVery high quality, near perfect, recommended.
gemma-4-E4B-it-Q4_K_L.ggufQ4_K_L6.25GBfalseUses Q8_0 for embed and output weights. Good quality, recommended.
gemma-4-E4B-it-Q3_K_XL.ggufQ3_K_XL5.88GBfalseUses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability.
gemma-4-E4B-it-Q5_K_M.ggufQ5_K_M5.82GBfalseHigh quality, recommended.
gemma-4-E4B-it-Q5_K_S.ggufQ5_K_S5.70GBfalseHigh quality, recommended.
gemma-4-E4B-it-Q4_1.ggufQ4_15.46GBfalseLegacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon.
gemma-4-E4B-it-Q4_K_M.ggufQ4_K_M5.41GBfalseGood quality, default size for most use cases, recommended.
gemma-4-E4B-it-Q2_K_L.ggufQ2_K_L5.30GBfalseUses Q8_0 for embed and output weights. Very low quality but surprisingly usable.
gemma-4-E4B-it-Q4_K_S.ggufQ4_K_S5.24GBfalseSlightly lower quality with more space savings, recommended.
gemma-4-E4B-it-IQ4_NL.ggufIQ4_NL5.23GBfalseSimilar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference.
gemma-4-E4B-it-Q4_0.ggufQ4_05.22GBfalseLegacy format, offers online repacking for ARM and AVX CPU inference.
gemma-4-E4B-it-IQ4_XS.ggufIQ4_XS5.11GBfalseDecent quality, smaller than Q4_K_S with similar performance, recommended.
gemma-4-E4B-it-Q3_K_L.ggufQ3_K_L5.03GBfalseLower quality but usable, good for low RAM availability.
gemma-4-E4B-it-Q3_K_M.ggufQ3_K_M4.90GBfalseLow quality.
gemma-4-E4B-it-IQ3_M.ggufIQ3_M4.77GBfalseMedium-low quality, new method with decent performance comparable to Q3_K_M.
gemma-4-E4B-it-Q3_K_S.ggufQ3_K_S4.70GBfalseLow quality, not recommended.
gemma-4-E4B-it-IQ3_XS.ggufIQ3_XS4.63GBfalseLower quality, new method with decent performance, slightly better than Q3_K_S.
gemma-4-E4B-it-Q2_K.ggufQ2_K4.46GBfalseVery low quality but surprisingly usable.
gemma-4-E4B-it-IQ2_M.ggufIQ2_M3.96GBfalseRelatively low quality, uses SOTA techniques to be surprisingly 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/google_gemma-4-E4B-it-GGUF --include "google_gemma-4-E4B-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-E4B-it-GGUF --include "google_gemma-4-E4B-it-Q8_0/*" --local-dir ./

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

28 files · 138 GBWeights 4.43 MB (smallest of 24 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 28 files with their sha256
FileSizesha256
.gitattributes3.34 KBea915ea03e711adbe0b20f32401bbf54c8b32b6b80f827c4ed1ee478d622dfa0
README.md13.6 KB22e384678e6beb232adbd7fe8d8092ef9d3a2a4b8cc08cede132afc414955067
google_gemma-4-E4B-it-IQ2_M.gguf3.96 GB190322506e26415013651e5023fe744b0501a81d4ad37aa7017bb81214cbdbb5
google_gemma-4-E4B-it-IQ3_M.gguf4.77 GB6d54d6921059d70e140b164b9e5968e2328d9a9cb0933b5a8c87b82c1bdda53a
google_gemma-4-E4B-it-IQ3_XS.gguf4.63 GB80b0047ff8508575c6ad408798331f4dd7a5242b33111cc7818b94b774ab32de
google_gemma-4-E4B-it-IQ4_NL.gguf5.23 GBb56f70624694ca5f2362cdafe6acffe35c5e0f44693c568f3f09fa83b968fb74
google_gemma-4-E4B-it-IQ4_XS.gguf5.11 GBa24429604e6f680e7bdf087b863a6cecc90f80b3d908f95d888f4f05003fdee3
google_gemma-4-E4B-it-Q2_K.gguf4.46 GBf4346a0965c793a99afd787d5f1c88afe8f75e6235ffcc35f043ed546c9d7bf4
google_gemma-4-E4B-it-Q2_K_L.gguf5.30 GB8126ce4d0ce855795cd5195bdcf1e50c1c7a8e5fdcd64d55bb7dff3db11d53a7
google_gemma-4-E4B-it-Q3_K_L.gguf5.03 GB488ade6a569eaef44abbd0312ae7b34c924026d94cb6a0eb41fb2bd2be73ceb5
google_gemma-4-E4B-it-Q3_K_M.gguf4.90 GBf60327936976524fbb9119a20e72819ea2369e0811de2b572eb0a2a21ecad71e
google_gemma-4-E4B-it-Q3_K_S.gguf4.70 GB19a50462126b053de22a9cc9085aad3cc2241c9de55129f12bde7924a67e48ef
google_gemma-4-E4B-it-Q3_K_XL.gguf5.88 GB00c50656f4b16b98ff9e07199e3c9fb5e776c159a62aaae9f56628b375f689f7
google_gemma-4-E4B-it-Q4_0.gguf5.22 GB604e903d29d2e0bbcee3dad449adc3e022299bf8a2d1dc7bc0166470e88d2203
google_gemma-4-E4B-it-Q4_1.gguf5.46 GBbe1bb39dbacc2e3c151f214970edb2a4524fb7a1fa9d8e4f6869e9c0b7d25849
google_gemma-4-E4B-it-Q4_K_L.gguf6.25 GB675f1326a7bc3e3971d7cc1b9003bd14e41a5c6c733ac0f1833fc993188fc92e
google_gemma-4-E4B-it-Q4_K_M.gguf5.41 GBd35a3aa7a6d47de237fd488bb6f7f3efd62908d828f85a63da0ee93acdbefe9f
google_gemma-4-E4B-it-Q4_K_S.gguf5.24 GB81508a92a401ccd81292b0da59f43af7360b7b2215a67bc7901830d58bfdf260
google_gemma-4-E4B-it-Q5_K_L.gguf6.67 GB847e2dc03edd61b6a3a05e0c25c858e971ac897f53aad0351b282897d2ab1db4
google_gemma-4-E4B-it-Q5_K_M.gguf5.82 GB1c57b87a06a7c0fd1b9fa8f5d5e505b720c15099648e0dcdc78acd857f72a7cc
google_gemma-4-E4B-it-Q5_K_S.gguf5.70 GBad6dfecd1d11c18e62047d6c93777d927ce8cfff7de99289773d3a197887a140
google_gemma-4-E4B-it-Q6_K.gguf6.33 GBbea1c94443c91fff61a722d9da5cd3f1cf0196d1e914798ee89d3c00ea365df9
google_gemma-4-E4B-it-Q6_K_L.gguf7.18 GBd31cc5eb279a992932e3cbde4d3ba9a3ba9b8cb41c16087561e5dadb88c0e4dc
google_gemma-4-E4B-it-Q8_0.gguf8.03 GB6a6eba0d36a051b5d924211a889c1436717006e7c5d413830c47caa1d46cb598
google_gemma-4-E4B-it-bf16.gguf15.1 GBaf40178d97d8d083836ef3db24ee48cbb705710e7292d870d0233d91fba0b6ac
google_gemma-4-E4B-it-imatrix.gguf4.43 MBd7419858304e589b410a20e6343e8065eed9a8064f64b73eb689c6a488d699a9
mmproj-google_gemma-4-E4B-it-bf16.gguf992 MBffa64aebf7144bbadd5a1e143b77794d88e76a81cc0168d91de0770eb49e88e0
mmproj-google_gemma-4-E4B-it-f16.gguf990 MBfd29ffa385f51ed8df3e8f48a865c7997ff6d01ed50c11bed2ae90f0d75f104e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
029e941466 pinned now manifest updated, same commit2026-11-14 21:27 UTC28 files · 138 GB
029e9414662026-11-14 21:27 UTC28 files · 138 GB

Use it

$ fw get bartowski/google_gemma-4-E4B-it-GGUF
# manifest sha256 ebaa626a150a… · 138 GB · 28 files
$ fw verify ./google_gemma-4-E4B-it-GGUF bartowski/google_gemma-4-E4B-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-E4B-it-GGUF.json --dir ./google_gemma-4-E4B-it-GGUF $ python3 fw.py verify ./google_gemma-4-E4B-it-GGUF ./bartowski__google_gemma-4-E4B-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-E4B-it-GGUF --revision 029e94146666900b08caf49a3b47b413dfa8ec66 --local-dir ./google_gemma-4-E4B-it-GGUF
llama.cppDownload one GGUF variant (google_gemma-4-E4B-it-imatrix, 4.43 MB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/google_gemma-4-E4B-it-GGUF --include "google_gemma-4-E4B-it-imatrix*" --local-dir ./google_gemma-4-E4B-it-GGUF $ llama-server -m ./google_gemma-4-E4B-it-GGUF/google_gemma-4-E4B-it-imatrix.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./google_gemma-4-E4B-it-GGUF/google_gemma-4-E4B-it-imatrix.gguf\n' > Modelfile $ ollama create google-gemma-4-e4b-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
22e384678e6beb232adbd7fe8d8092ef9d3a2a4b8cc08cede132afc414955067
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-E4B-it-GGUFDate: 2026-11-14Commit: 029e941Signed: 2DC28CC7B26A283B ✓
Upstream
bartowski/google_gemma-4-E4B-it-GGUF
Pinned commit
029e94146666900b08caf49a3b47b413dfa8ec66
Manifest
google_gemma-4-E4B-it-GGUF.json · .minisig
Manifest sha256
ebaa626a150a1d77a3889a519d8fec209c1be70192f297d9e4bf9b8950d85dbb
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-E4B-it-GGUF.json $ curl -O https://freeweights.allternit.com/manifests/bartowski/google_gemma-4-E4B-it-GGUF.json.minisig $ minisign -Vm google_gemma-4-E4B-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-E4B-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-E4B-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-E4B-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