Llama 3.2 1B Instruct (Q4_K_M) — Exact VRAM, KV Cache & Tensor X-Ray
Featherweight Meta 1B instruct model (< 1 GiB) with 128k native context for instant testing and thin laptops.
⚡ 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.74 GiB32k w/ Q8_0 KV: 2.23 GiB
Binary .GGUF Weights0.74 GiB5.18 effective bits/weight
Parameters (Active / Total)1.24 / 1.24 B147 parsed tensors
KV Cache Growth32.0 MiB/1kQ8_0 KV: 17.0 MiB / 1k tok
1. HuggingFace Binary Provenance
| Repository | bartowski/Llama-3.2-1B-Instruct-GGUF |
|---|---|
| Inspected File | Llama-3.2-1B-Instruct-Q4_K_M.gguf (0.75 GiB) |
| HF Commit SHA | 067b946cf014 |
| Harvested UTC | 2026-12-01 15:04:40 UTC |
| Parsed Header | 7 831 525 bytes (SHA-256 65b8eaf8a13a640336c5…) |
2. Transformer & GQA Architecture
| GGUF Architecture | llama (Dense) |
|---|---|
| Transformer Layers | 16 layers (~34.8 MiB / layer) |
| Dimensions (d_model / FFN) | 2048 / 8192 |
| Attention Heads (Q / KV) | 32 Q / 8 KV (GQA 4.0:1, dim 64) |
| Native Context & Vocab | 131 072 tokens · vocab 128 256 |
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 Type | Tensor Count | Volume | Weight Share | Distribution |
|---|---|---|---|---|
Q4_K | 96 | 0.44 GiB | 58.4% | |
Q6_K | 17 | 0.31 GiB | 41.6% | |
F32 | 34 | 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.06 GiB | 0.03 GiB | 0.02 GiB | 1.55 GiB | 1.52 GiB |
| 4k (4 096) | 0.13 GiB | 0.07 GiB | 0.04 GiB | 1.62 GiB | 1.56 GiB |
| 8k (8 192) | 0.25 GiB | 0.13 GiB | 0.07 GiB | 1.74 GiB | 1.62 GiB |
| 16k (16 384) | 0.50 GiB | 0.27 GiB | 0.14 GiB | 1.99 GiB | 1.76 GiB |
| 32k (32 768) | 1.00 GiB | 0.53 GiB | 0.28 GiB | 2.49 GiB | 2.02 GiB |
| 64k (65 536) | 2.00 GiB | 1.06 GiB | 0.56 GiB | 3.49 GiB | 2.55 GiB |
| 128k (131 072) | 4.00 GiB | 2.13 GiB | 1.13 GiB | 5.49 GiB | 3.62 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 | 16 / 16 | 1.21 GiB | — | 100% VRAM |
| 8 GB GPU + 16 GB RAM | 32k · KV FP16 | 16 / 16 | 2.06 GiB | — | 100% VRAM |
| 8 GB GPU + 16 GB RAM | 32k · KV Q8_0 | 16 / 16 | 1.60 GiB | — | 100% VRAM |
| 12 GB GPU + 32 GB RAM | 8k · KV FP16 | 16 / 16 | 1.21 GiB | — | 100% VRAM |
| 12 GB GPU + 32 GB RAM | 32k · KV FP16 | 16 / 16 | 2.06 GiB | — | 100% VRAM |
| 12 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 16 / 16 | 1.60 GiB | — | 100% VRAM |
| 16 GB GPU + 32 GB RAM | 8k · KV FP16 | 16 / 16 | 1.21 GiB | — | 100% VRAM |
| 16 GB GPU + 32 GB RAM | 32k · KV FP16 | 16 / 16 | 2.06 GiB | — | 100% VRAM |
| 16 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 16 / 16 | 1.60 GiB | — | 100% VRAM |
| 24 GB GPU + 64 GB RAM | 8k · KV FP16 | 16 / 16 | 1.21 GiB | — | 100% VRAM |
| 24 GB GPU + 64 GB RAM | 32k · KV FP16 | 16 / 16 | 2.06 GiB | — | 100% VRAM |
| 24 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 16 / 16 | 1.60 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 8k · KV FP16 | 16 / 16 | 1.21 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 32k · KV FP16 | 16 / 16 | 2.06 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 16 / 16 | 1.60 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 8k · KV FP16 | 16 / 16 | 1.21 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV FP16 | 16 / 16 | 2.06 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV Q8_0 | 16 / 16 | 1.60 GiB | — | 100% VRAM |
| 64 GB Unified Memory | 8k · KV FP16 | 16 / 16 | 1.21 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV FP16 | 16 / 16 | 2.06 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV Q8_0 | 16 / 16 | 1.60 GiB | — | Unified Memory |
6. Ready-to-Run Local CLI Commands
With Ollama:
ollama run llama3.2:1b
With
llama-server (Flash Attention + Q8_0 KV Cache sized for 16 GB VRAM):llama-server -m Llama-3.2-1B-Instruct-Q4_K_M.gguf -ngl 16 -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!