GraySoft
Projects Models Compare Cloud benchmarks FAQ Download guIDE →
Model Intelligence Sheet

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 …

ggufimatrixgemma4local-llmllama.cppollamalm-studioquantizedsub-4-bitlow-vramtext-generationbase_model:google/gemma-4-12B-itbase_model:quantized:google/gemma-4-12B-itlicense:apache-2.0endpoints_compatibleregion:usconversational

Runs locally from ~4.07 GB disk (8 GB VRAM class GPUs with llama.cpp / guIDE).

Downloads
1,432
Likes
1
Pipeline
text-generation
Author

Repository Files & Downloads

9 GGUF files detected
Direct downloads for local inference
FileTypeQuantizationSizeLink
gemma4-12B-IQ2_M.ggufGGUFIQ2_M4.07 GBDownload
gemma4-12B-IQ3_M.ggufGGUFIQ3_M5.34 GBDownload
gemma4-12B-IQ4_XS.ggufGGUFIQ4_XS6.18 GBDownload
gemma4-12B-Q2_K.ggufGGUFQ2_K4.50 GBDownload
gemma4-12B-Q3_K_M.ggufGGUFQ3_K_M5.67 GBDownload
gemma4-12B-Q4_K_M.ggufGGUFQ4_K_M6.87 GBDownload
gemma4-12B-Q5_K_M.ggufGGUFQ5_K_M7.96 GBDownload
gemma4-12B-Q6_K.ggufGGUFQ6_K9.11 GBDownload
gemma4-12B-Q8_0.ggufGGUFQ8_011.80 GBDownload

Model Details

Model IDliodon-ai/gemma-4-12B-it-imatrix-GGUF
Authorliodon-ai
Pipelinetext-generation
Licenseapache-2.0
Base modelgoogle/gemma-4-12B-it
Last modified2026-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:

  1. Run a calibration text through the full-precision model
  2. Measure which weights activate most during inference (the "importance matrix")
  3. 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.

Download guIDE → · Browse 524k+ models · Compare models

Source: Hugging Face · Compare models