Gemma 3 · Q4_K_M · Dense · GGUF v3

Gemma 3 12B IT (Q4_K_M) — Exact VRAM, KV Cache & Tensor X-Ray

Sized specifically for 12 GB GPUs (RTX 3060 / 4070): strong multilingual and French writing quality.

⚡ Simulate on Your GPU in Browser (WASM) Benchmark & Sign Ed25519 in Local Cockpit 0.4.0 View File on HuggingFace
Min VRAM (8k · FP16 KV)10.54 GiB32k w/ Q8_0 KV: 14.12 GiB
Binary .GGUF Weights6.79 GiB4.96 effective bits/weight
Parameters (Active / Total)11.77 / 11.77 B626 parsed tensors
KV Cache Growth384.0 MiB/1kQ8_0 KV: 204.0 MiB / 1k tok

1. HuggingFace Binary Provenance

Repositorybartowski/google_gemma-3-12b-it-GGUF
Inspected Filegoogle_gemma-3-12b-it-Q4_K_M.gguf (6.80 GiB)
HF Commit SHA648e3a36a77c
Harvested UTC2026-11-29 15:28:23 UTC
Parsed Header6 550 543 bytes (SHA-256 8f0fcb38a2b5048dd5bf…)

2. Transformer & GQA Architecture

GGUF Architecturegemma3 (Dense)
Transformer Layers48 layers (~128.5 MiB / layer)
Dimensions (d_model / FFN)3840 / 15360
Attention Heads (Q / KV)16 Q / 8 KV (GQA 2.0:1, dim 256)
Native Context & Vocab131 072 tokens · vocab 262 144

3. Exact GGML Quantization Mix Inside This Binary

Rather than quantizing every tensor identically, Q4_K_M keeps sensitive embedding, output and attention tensors at higher precision:

GGML TypeTensor CountVolumeWeight ShareDistribution
Q4_K2884.80 GiB70.6%
Q6_K491.99 GiB29.4%
F322890.00 GiB0.0%

4. KV-Cache Context Cliff from 2k to 128k Tokens (FP16 vs Q8_0 vs Q4_0)

Enabling Flash Attention with a Q8_0 KV cache cuts context memory nearly in half without altering model weights:

Context Length KV Only (FP16) KV Only (Q8_0) KV Only (Q4_0) Total VRAM (FP16) Total VRAM (Q8_0)
2k (2 048)0.75 GiB0.40 GiB0.21 GiB8.29 GiB7.94 GiB
4k (4 096)1.50 GiB0.80 GiB0.42 GiB9.04 GiB8.34 GiB
8k (8 192)3.00 GiB1.59 GiB0.84 GiB10.54 GiB9.13 GiB
16k (16 384)6.00 GiB3.19 GiB1.69 GiB13.54 GiB10.73 GiB
32k (32 768)12.00 GiB6.38 GiB3.38 GiB19.54 GiB13.92 GiB
64k (65 536)24.00 GiB12.75 GiB6.75 GiB31.54 GiB20.29 GiB
128k (131 072)48.00 GiB25.50 GiB13.50 GiB55.54 GiB33.04 GiB

5. Layer-by-Layer GPU Offload Matrix Across Hardware Tiers

Deterministic memory placement including OS display VRAM reserve and compute buffers:

Hardware Tier Context & KV Layers in VRAM VRAM Used RAM Spillover Memory Verdict
8 GB GPU + 16 GB RAM8k · KV FP1633 / 487.19 GiB2.84 GiBRAM Spillover
8 GB GPU + 16 GB RAM32k · KV FP1616 / 487.24 GiB12.00 GiBRAM Spillover
8 GB GPU + 16 GB RAM32k · KV Q8_023 / 487.14 GiB6.47 GiBRAM Spillover
12 GB GPU + 32 GB RAM8k · KV FP1648 / 4810.04 GiB—100% VRAM
12 GB GPU + 32 GB RAM32k · KV FP1626 / 4810.96 GiB8.28 GiBRAM Spillover
12 GB GPU + 32 GB RAM32k · KV Q8_038 / 4810.98 GiB2.63 GiBRAM Spillover
16 GB GPU + 32 GB RAM8k · KV FP1648 / 4810.04 GiB—100% VRAM
16 GB GPU + 32 GB RAM32k · KV FP1637 / 4815.06 GiB4.17 GiBRAM Spillover
16 GB GPU + 32 GB RAM32k · KV Q8_048 / 4813.61 GiB—100% VRAM
24 GB GPU + 64 GB RAM8k · KV FP1648 / 4810.04 GiB—100% VRAM
24 GB GPU + 64 GB RAM32k · KV FP1648 / 4819.24 GiB—100% VRAM
24 GB GPU + 64 GB RAM32k · KV Q8_048 / 4813.61 GiB—100% VRAM
32 GB GPU + 64 GB RAM8k · KV FP1648 / 4810.04 GiB—100% VRAM
32 GB GPU + 64 GB RAM32k · KV FP1648 / 4819.24 GiB—100% VRAM
32 GB GPU + 64 GB RAM32k · KV Q8_048 / 4813.61 GiB—100% VRAM
48 GB Dual-GPU + 128 GB RAM8k · KV FP1648 / 4810.04 GiB—100% VRAM
48 GB Dual-GPU + 128 GB RAM32k · KV FP1648 / 4819.24 GiB—100% VRAM
48 GB Dual-GPU + 128 GB RAM32k · KV Q8_048 / 4813.61 GiB—100% VRAM
64 GB Unified Memory8k · KV FP1648 / 4810.04 GiB—Unified Memory
64 GB Unified Memory32k · KV FP1648 / 4819.24 GiB—Unified Memory
64 GB Unified Memory32k · KV Q8_048 / 4813.61 GiB—Unified Memory

6. Ready-to-Run Local CLI Commands

With Ollama:
ollama run gemma3:12b
With llama-server (Flash Attention + Q8_0 KV Cache sized for 16 GB VRAM):
llama-server -m google_gemma-3-12b-it-Q4_K_M.gguf -ngl 48 -c 32768 -fa --cache-type-k q8_0 --cache-type-v q8_0

7. Ed25519 Certified Real Hardware Benchmarks

No certified Ed25519 passport recorded for this exact quantization yet (zero synthetic tok/s are ever invented). Run this model in Local Cockpit 0.4.0 to publish the first signed /b/lc-… passport!

8. Related Quantizations & Comparable Models