Gemma 3 27B IT (Q8_0) (Q8_0) — Exact VRAM, KV Cache & Tensor X-Ray
8-bit Gemma 3 27B (~26.7 GiB): leverages 32 GB RTX 5090 and 48–64 GB workstation memory pools.
⚡ 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)31.35 GiB32k w/ Q8_0 KV: 35.91 GiB
Binary .GGUF Weights26.73 GiB8.50 effective bits/weight
Parameters (Active / Total)27.01 / 27.01 B808 parsed tensors
KV Cache Growth496.0 MiB/1kQ8_0 KV: 263.5 MiB / 1k tok
1. HuggingFace Binary Provenance
| Repository | bartowski/google_gemma-3-27b-it-GGUF |
|---|---|
| Inspected File | google_gemma-3-27b-it-Q8_0.gguf (26.74 GiB) |
| HF Commit SHA | 4a05c54413bd |
| Harvested UTC | 2026-12-01 15:05:10 UTC |
| Parsed Header | 6 561 407 bytes (SHA-256 587ea255d9a544deeeae…) |
2. Transformer & GQA Architecture
| GGUF Architecture | gemma3 (Dense) |
|---|---|
| Transformer Layers | 62 layers (~418.4 MiB / layer) |
| Dimensions (d_model / FFN) | 5376 / 21504 |
| Attention Heads (Q / KV) | 32 Q / 16 KV (GQA 2.0:1, dim 128) |
| 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 | 435 | 26.72 GiB | 100.0% | |
F32 | 373 | 0.01 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.97 GiB | 0.51 GiB | 0.27 GiB | 28.45 GiB | 27.99 GiB |
| 4k (4 096) | 1.94 GiB | 1.03 GiB | 0.54 GiB | 29.42 GiB | 28.51 GiB |
| 8k (8 192) | 3.88 GiB | 2.06 GiB | 1.09 GiB | 31.36 GiB | 29.54 GiB |
| 16k (16 384) | 7.75 GiB | 4.12 GiB | 2.18 GiB | 35.23 GiB | 31.60 GiB |
| 32k (32 768) | 15.50 GiB | 8.23 GiB | 4.36 GiB | 42.98 GiB | 35.71 GiB |
| 64k (65 536) | 31.00 GiB | 16.47 GiB | 8.72 GiB | 58.48 GiB | 43.95 GiB |
| 128k (131 072) | 62.00 GiB | 32.94 GiB | 17.44 GiB | 89.48 GiB | 60.42 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 | 11 / 62 | 6.85 GiB | 24.03 GiB | Out of Memory |
| 8 GB GPU + 16 GB RAM | 32k · KV FP16 | 8 / 62 | 7.21 GiB | 35.57 GiB | Out of Memory |
| 8 GB GPU + 16 GB RAM | 32k · KV Q8_0 | 9 / 62 | 6.82 GiB | 28.70 GiB | Out of Memory |
| 12 GB GPU + 32 GB RAM | 8k · KV FP16 | 20 / 62 | 11.09 GiB | 19.79 GiB | RAM Spillover |
| 12 GB GPU + 32 GB RAM | 32k · KV FP16 | 14 / 62 | 11.16 GiB | 31.61 GiB | Out of Memory |
| 12 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 17 / 62 | 11.15 GiB | 24.37 GiB | RAM Spillover |
| 16 GB GPU + 32 GB RAM | 8k · KV FP16 | 28 / 62 | 14.86 GiB | 16.02 GiB | RAM Spillover |
| 16 GB GPU + 32 GB RAM | 32k · KV FP16 | 19 / 62 | 14.46 GiB | 28.32 GiB | Out of Memory |
| 16 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 24 / 62 | 14.94 GiB | 20.58 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 8k · KV FP16 | 44 / 62 | 22.40 GiB | 8.48 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 32k · KV FP16 | 31 / 62 | 22.36 GiB | 20.42 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 38 / 62 | 22.52 GiB | 12.99 GiB | RAM Spillover |
| 32 GB GPU + 64 GB RAM | 8k · KV FP16 | 61 / 62 | 30.41 GiB | 0.47 GiB | RAM Spillover |
| 32 GB GPU + 64 GB RAM | 32k · KV FP16 | 43 / 62 | 30.26 GiB | 12.51 GiB | RAM Spillover |
| 32 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 52 / 62 | 30.10 GiB | 5.41 GiB | RAM Spillover |
| 48 GB Dual-GPU + 128 GB RAM | 8k · KV FP16 | 62 / 62 | 30.88 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV FP16 | 62 / 62 | 42.78 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV Q8_0 | 62 / 62 | 35.51 GiB | — | 100% VRAM |
| 64 GB Unified Memory | 8k · KV FP16 | 62 / 62 | 30.88 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV FP16 | 62 / 62 | 42.78 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV Q8_0 | 62 / 62 | 35.51 GiB | — | Unified Memory |
6. Ready-to-Run Local CLI Commands
With Ollama:
ollama run gemma3:27b-it-q8_0
With
llama-server (Flash Attention + Q8_0 KV Cache sized for 16 GB VRAM):llama-server -m google_gemma-3-27b-it-Q8_0.gguf -ngl 24 -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!