ScoreZenith
FR Downloads

Desktop Rust Apps

Browser Lab & Open Data

All Apps & Downloads
Gemma 3 · Q4_K_M · Dense · GGUF v3

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

Ultra-compact 1B Google model (< 1 GiB) suited for integrated graphics laptops and Raspberry Pi nodes.

⚡ 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)1.70 GiB32k w/ Q8_0 KV: 2.13 GiB
Binary .GGUF Weights0.74 GiB6.40 effective bits/weight
Parameters (Active / Total)1.00 / 1.00 B340 parsed tensors
KV Cache Growth26.0 MiB/1kQ8_0 KV: 13.8 MiB / 1k tok

1. HuggingFace Binary Provenance

Repositorybartowski/google_gemma-3-1b-it-GGUF
Inspected Filegoogle_gemma-3-1b-it-Q4_K_M.gguf (0.75 GiB)
HF Commit SHA116f76234503
Harvested UTC2026-12-01 15:04:39 UTC
Parsed Header6 533 370 bytes (SHA-256 63f2f755093c0a3db177…)

2. Transformer & GQA Architecture

GGUF Architecturegemma3 (Dense)
Transformer Layers26 layers (~17.6 MiB / layer)
Dimensions (d_model / FFN)1152 / 6912
Attention Heads (Q / KV)4 Q / 1 KV (GQA 4.0:1, dim 256)
Native Context & Vocab32 768 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
Q8_0140.30 GiB40.6%
Q5_01170.29 GiB39.2%
Q6_K130.08 GiB10.6%
Q4_K390.07 GiB9.4%
F321570.00 GiB0.1%

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.05 GiB0.03 GiB0.01 GiB1.54 GiB1.52 GiB
4k (4 096)0.10 GiB0.05 GiB0.03 GiB1.59 GiB1.54 GiB
8k (8 192)0.20 GiB0.11 GiB0.06 GiB1.69 GiB1.60 GiB
16k (16 384)0.41 GiB0.22 GiB0.11 GiB1.90 GiB1.71 GiB
32k (32 768)0.81 GiB0.43 GiB0.23 GiB2.30 GiB1.92 GiB
64k (65 536)1.63 GiB0.86 GiB0.46 GiB3.12 GiB2.35 GiB
128k (131 072)3.25 GiB1.73 GiB0.91 GiB4.74 GiB3.22 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 FP1626 / 261.11 GiB—100% VRAM
8 GB GPU + 16 GB RAM32k · KV FP1626 / 261.78 GiB—100% VRAM
8 GB GPU + 16 GB RAM32k · KV Q8_026 / 261.40 GiB—100% VRAM
12 GB GPU + 32 GB RAM8k · KV FP1626 / 261.11 GiB—100% VRAM
12 GB GPU + 32 GB RAM32k · KV FP1626 / 261.78 GiB—100% VRAM
12 GB GPU + 32 GB RAM32k · KV Q8_026 / 261.40 GiB—100% VRAM
16 GB GPU + 32 GB RAM8k · KV FP1626 / 261.11 GiB—100% VRAM
16 GB GPU + 32 GB RAM32k · KV FP1626 / 261.78 GiB—100% VRAM
16 GB GPU + 32 GB RAM32k · KV Q8_026 / 261.40 GiB—100% VRAM
24 GB GPU + 64 GB RAM8k · KV FP1626 / 261.11 GiB—100% VRAM
24 GB GPU + 64 GB RAM32k · KV FP1626 / 261.78 GiB—100% VRAM
24 GB GPU + 64 GB RAM32k · KV Q8_026 / 261.40 GiB—100% VRAM
32 GB GPU + 64 GB RAM8k · KV FP1626 / 261.11 GiB—100% VRAM
32 GB GPU + 64 GB RAM32k · KV FP1626 / 261.78 GiB—100% VRAM
32 GB GPU + 64 GB RAM32k · KV Q8_026 / 261.40 GiB—100% VRAM
48 GB Dual-GPU + 128 GB RAM8k · KV FP1626 / 261.11 GiB—100% VRAM
48 GB Dual-GPU + 128 GB RAM32k · KV FP1626 / 261.78 GiB—100% VRAM
48 GB Dual-GPU + 128 GB RAM32k · KV Q8_026 / 261.40 GiB—100% VRAM
64 GB Unified Memory8k · KV FP1626 / 261.15 GiB—Unified Memory
64 GB Unified Memory32k · KV FP1626 / 261.82 GiB—Unified Memory
64 GB Unified Memory32k · KV Q8_026 / 261.44 GiB—Unified Memory

6. Ready-to-Run Local CLI Commands

With Ollama:
ollama run gemma3:1b
With llama-server (Flash Attention + Q8_0 KV Cache sized for 16 GB VRAM):
llama-server -m google_gemma-3-1b-it-Q4_K_M.gguf -ngl 26 -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

Compare this model side-by-side →