liodon-ai/gemma-4-12B-it-imatrix-GGUF overview
Gemma 4 12B IT — iMatrix GGUF including sub 4 bit The only iMatrix GGUF repo for Gemma 4 12B that includes Q2 and Q3 quants. Most iMatrix repos for this model …
Runs locally from ~4.07 GB disk (8 GB VRAM class GPUs with llama.cpp / guIDE).
Repository Files & Downloads
| File | Type | Quantization | Size | Link |
|---|---|---|---|---|
| gemma4-12B-IQ2_M.gguf | GGUF | IQ2_M | 4.07 GB | Download |
| gemma4-12B-IQ3_M.gguf | GGUF | IQ3_M | 5.34 GB | Download |
| gemma4-12B-IQ4_XS.gguf | GGUF | IQ4_XS | 6.18 GB | Download |
| gemma4-12B-Q2_K.gguf | GGUF | Q2_K | 4.50 GB | Download |
| gemma4-12B-Q3_K_M.gguf | GGUF | Q3_K_M | 5.67 GB | Download |
| gemma4-12B-Q4_K_M.gguf | GGUF | Q4_K_M | 6.87 GB | Download |
| gemma4-12B-Q5_K_M.gguf | GGUF | Q5_K_M | 7.96 GB | Download |
| gemma4-12B-Q6_K.gguf | GGUF | Q6_K | 9.11 GB | Download |
| gemma4-12B-Q8_0.gguf | GGUF | Q8_0 | 11.80 GB | Download |
Model Details
| Model ID | liodon-ai/gemma-4-12B-it-imatrix-GGUF |
|---|---|
| Author | liodon-ai |
| Pipeline | text-generation |
| License | apache-2.0 |
| Base model | google/gemma-4-12B-it |
| Last modified | 2026-07-13T04:54:22.000Z |
Model README
---
license: apache-2.0
base_model: google/gemma-4-12B-it
base_model_relation: quantized
pipeline_tag: text-generation
library_name: gguf
tags:
- gguf
- imatrix
- gemma4
- local-llm
- llama.cpp
- ollama
- lm-studio
- quantized
- sub-4-bit
- low-vram
quantized_by: liodon-ai
---
Gemma 4 12B IT — iMatrix GGUF (including sub-4-bit)
The only iMatrix GGUF repo for Gemma 4 12B that includes Q2 and Q3 quants.
Most iMatrix repos for this model stop at Q4. This one goes all the way down to IQ2_M (4.1 GB) — making Gemma 4 12B runnable on 6 GB VRAM with iMatrix quality.
All quants produced with llama.cpp using importance matrix calibration on a 2M token wikitext corpus.
---
Quick Start
Ollama
ollama run hf.co/liodon-ai/gemma-4-12B-it-imatrix-GGUF:Q4_K_M
llama.cpp
llama-cli -hf liodon-ai/gemma-4-12B-it-imatrix-GGUF:Q4_K_M
LM Studio / Jan
Search liodon-ai/gemma-4-12B-it-imatrix-GGUF and pick your quant.
---
Available Quants
| Quant | Size | VRAM | Notes |
|-------|------|------|-------|
| IQ2_M | 4.1 GB | 6 GB | Ultra-tiny. iMatrix keeps it coherent where standard Q2 breaks down |
| IQ3_M | 5.4 GB | 7 GB | Best quality under 6 GB file size |
| Q2_K | 4.5 GB | 6 GB | Smallest standard quant — runs almost anywhere |
| Q3_K_M | 5.7 GB | 7 GB | Good balance for tight VRAM |
| IQ4_XS | 6.2 GB | 8 GB | iMatrix Q4 — rivals standard Q5 at smaller size |
| Q4_K_M | 6.9 GB | 8 GB | Recommended. Sweet spot for most setups |
| Q5_K_M | 8.0 GB | 10 GB | High quality |
| Q6_K | 9.2 GB | 12 GB | Near-lossless |
| Q8_0 | 12 GB | 16 GB | Basically full quality |
---
Why iMatrix Matters for Sub-4-bit Quants
Standard quantization at Q2/Q3 rounds weights uniformly — the model loses coherence, repeats itself, and produces broken output. Other iMatrix repos for this model have excluded sub-4-bit entirely for this reason.
iMatrix fixes this by identifying which weights actually matter during a calibration pass over real text, then protecting those weights from aggressive rounding. The result: IQ2_M and IQ3_M remain usable and coherent at sizes that standard Q2/Q3 can't match.
If you have 6-8 GB VRAM and want to run Gemma 4 12B, the iMatrix Q2/Q3 quants here are your only viable option for this model.
---
What is iMatrix?
Standard GGUF quantization: compress all weights equally → fast, but imprecise at low bit widths.
iMatrix quantization:
- Run a calibration text through the full-precision model
- Measure which weights activate most during inference (the "importance matrix")
- Quantize with higher precision on important weights, lower precision on less important ones
Same file size. Better output. Most noticeable at Q2/Q3/Q4.
---
Calibration
Importance matrix computed using a 2M token sample from wikitext-103 — diverse English text covering Wikipedia articles across topics. 128 calibration chunks.
---
Base Model
- Model: google/gemma-4-12B-it
- Params: 12B
- Context: 128K tokens
- Architecture: Gemma 4 (multimodal)
- License: Apache 2.0
- Authors: Google DeepMind
Run liodon-ai/gemma-4-12B-it-imatrix-GGUF with guIDE
Download guIDE — the AI-native code editor with local LLM inference and 69 built-in tools.
Source: Hugging Face · Compare models