Gemma 3 12B IT (Q8_0) (Q8_0) — Exact VRAM, KV Cache & Tensor X-Ray
8-bit Gemma 3 12B (~11.6 GiB): sized for 16 GB RTX 4080 / 5070 Ti and 24 GB RTX 3090 cards.
⚡ 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)15.39 GiB32k w/ Q8_0 KV: 18.97 GiB
Binary .GGUF Weights11.64 GiB8.50 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
| Repository | bartowski/google_gemma-3-12b-it-GGUF |
|---|---|
| Inspected File | google_gemma-3-12b-it-Q8_0.gguf (11.65 GiB) |
| HF Commit SHA | 648e3a36a77c |
| Harvested UTC | 2026-12-01 15:04:56 UTC |
| Parsed Header | 6 550 543 bytes (SHA-256 7a7ddebb9eb3c005ce6c…) |
2. Transformer & GQA Architecture
| GGUF Architecture | gemma3 (Dense) |
|---|---|
| Transformer Layers | 48 layers (~227.2 MiB / layer) |
| Dimensions (d_model / FFN) | 3840 / 15360 |
| Attention Heads (Q / KV) | 16 Q / 8 KV (GQA 2.0:1, dim 256) |
| Native Context & Vocab | 131 072 tokens · vocab 262 144 |
3. Exact GGML Quantization Mix Inside This Binary
Rather than quantizing every tensor identically, Q8_0 keeps sensitive embedding, output and attention tensors at higher precision:
| GGML Type | Tensor Count | Volume | Weight Share | Distribution |
|---|---|---|---|---|
Q8_0 | 337 | 11.64 GiB | 100.0% | |
F32 | 289 | 0.00 GiB | 0.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 GiB | 0.40 GiB | 0.21 GiB | 13.14 GiB | 12.79 GiB |
| 4k (4 096) | 1.50 GiB | 0.80 GiB | 0.42 GiB | 13.89 GiB | 13.19 GiB |
| 8k (8 192) | 3.00 GiB | 1.59 GiB | 0.84 GiB | 15.39 GiB | 13.98 GiB |
| 16k (16 384) | 6.00 GiB | 3.19 GiB | 1.69 GiB | 18.39 GiB | 15.58 GiB |
| 32k (32 768) | 12.00 GiB | 6.38 GiB | 3.38 GiB | 24.39 GiB | 18.77 GiB |
| 64k (65 536) | 24.00 GiB | 12.75 GiB | 6.75 GiB | 36.39 GiB | 25.14 GiB |
| 128k (131 072) | 48.00 GiB | 25.50 GiB | 13.50 GiB | 60.39 GiB | 37.89 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 RAM | 8k · KV FP16 | 21 / 48 | 7.21 GiB | 7.68 GiB | RAM Spillover |
| 8 GB GPU + 16 GB RAM | 32k · KV FP16 | 12 / 48 | 7.10 GiB | 16.99 GiB | Out of Memory |
| 8 GB GPU + 16 GB RAM | 32k · KV Q8_0 | 16 / 48 | 7.11 GiB | 11.35 GiB | RAM Spillover |
| 12 GB GPU + 32 GB RAM | 8k · KV FP16 | 34 / 48 | 10.91 GiB | 3.98 GiB | RAM Spillover |
| 12 GB GPU + 32 GB RAM | 32k · KV FP16 | 20 / 48 | 10.88 GiB | 13.21 GiB | RAM Spillover |
| 12 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 27 / 48 | 11.01 GiB | 7.45 GiB | RAM Spillover |
| 16 GB GPU + 32 GB RAM | 8k · KV FP16 | 48 / 48 | 14.89 GiB | — | 100% VRAM |
| 16 GB GPU + 32 GB RAM | 32k · KV FP16 | 28 / 48 | 14.65 GiB | 9.44 GiB | RAM Spillover |
| 16 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 38 / 48 | 14.92 GiB | 3.55 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 8k · KV FP16 | 48 / 48 | 14.89 GiB | — | 100% VRAM |
| 24 GB GPU + 64 GB RAM | 32k · KV FP16 | 45 / 48 | 22.67 GiB | 1.42 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 48 / 48 | 18.46 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 8k · KV FP16 | 48 / 48 | 14.89 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 32k · KV FP16 | 48 / 48 | 24.09 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 48 / 48 | 18.46 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 8k · KV FP16 | 48 / 48 | 14.89 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV FP16 | 48 / 48 | 24.09 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV Q8_0 | 48 / 48 | 18.46 GiB | — | 100% VRAM |
| 64 GB Unified Memory | 8k · KV FP16 | 48 / 48 | 14.89 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV FP16 | 48 / 48 | 24.09 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV Q8_0 | 48 / 48 | 18.46 GiB | — | Unified Memory |
6. Ready-to-Run Local CLI Commands
With Ollama:
ollama run gemma3:12b-it-q8_0
With
llama-server (Flash Attention + Q8_0 KV Cache sized for 16 GB VRAM):llama-server -m google_gemma-3-12b-it-Q8_0.gguf -ngl 38 -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!