Llama 3.3 70B Instruct (Q4_K_M) (Q4_K_M) — Exact VRAM, KV Cache & Tensor X-Ray
70B dense reference (80 layers, ~39.8 GiB): requires 48 GB VRAM (dual 24 GB GPUs) or 64 GB unified memory.
⚡ 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)42.84 GiB32k w/ Q8_0 KV: 45.86 GiB
Binary .GGUF Weights39.59 GiB4.82 effective bits/weight
Parameters (Active / Total)70.55 / 70.55 B724 parsed tensors
KV Cache Growth320.0 MiB/1kQ8_0 KV: 170.0 MiB / 1k tok
1. HuggingFace Binary Provenance
| Repository | bartowski/Llama-3.3-70B-Instruct-GGUF |
|---|---|
| Inspected File | Llama-3.3-70B-Instruct-Q4_K_M.gguf (39.60 GiB) |
| HF Commit SHA | b6c5c9f176f3 |
| Harvested UTC | 2026-11-29 15:28:43 UTC |
| Parsed Header | 7 867 082 bytes (SHA-256 39f0e9fbc36ed65b928b…) |
2. Transformer & GQA Architecture
| GGUF Architecture | llama (Dense) |
|---|---|
| Transformer Layers | 80 layers (~489.5 MiB / layer) |
| Dimensions (d_model / FFN) | 8192 / 28672 |
| Attention Heads (Q / KV) | 64 Q / 8 KV (GQA 8.0:1, dim 128) |
| 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 | 441 | 31.14 GiB | 78.6% | |
Q6_K | 81 | 8.24 GiB | 20.8% | |
Q5_K | 40 | 0.21 GiB | 0.5% | |
F32 | 162 | 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.63 GiB | 0.33 GiB | 0.18 GiB | 40.97 GiB | 40.67 GiB |
| 4k (4 096) | 1.25 GiB | 0.66 GiB | 0.35 GiB | 41.59 GiB | 41.00 GiB |
| 8k (8 192) | 2.50 GiB | 1.33 GiB | 0.70 GiB | 42.84 GiB | 41.67 GiB |
| 16k (16 384) | 5.00 GiB | 2.66 GiB | 1.41 GiB | 45.34 GiB | 43.00 GiB |
| 32k (32 768) | 10.00 GiB | 5.31 GiB | 2.81 GiB | 50.34 GiB | 45.65 GiB |
| 64k (65 536) | 20.00 GiB | 10.63 GiB | 5.63 GiB | 60.34 GiB | 50.97 GiB |
| 128k (131 072) | 40.00 GiB | 21.25 GiB | 11.25 GiB | 80.34 GiB | 61.59 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 | 10 / 80 | 7.05 GiB | 35.36 GiB | Out of Memory |
| 8 GB GPU + 16 GB RAM | 32k · KV FP16 | 8 / 80 | 7.15 GiB | 43.19 GiB | Out of Memory |
| 8 GB GPU + 16 GB RAM | 32k · KV Q8_0 | 9 / 80 | 7.25 GiB | 38.39 GiB | Out of Memory |
| 12 GB GPU + 32 GB RAM | 8k · KV FP16 | 18 / 80 | 11.01 GiB | 31.40 GiB | Out of Memory |
| 12 GB GPU + 32 GB RAM | 32k · KV FP16 | 14 / 80 | 10.76 GiB | 39.57 GiB | Out of Memory |
| 12 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 16 / 80 | 11.03 GiB | 34.61 GiB | Out of Memory |
| 16 GB GPU + 32 GB RAM | 8k · KV FP16 | 26 / 80 | 15.03 GiB | 27.38 GiB | Out of Memory |
| 16 GB GPU + 32 GB RAM | 32k · KV FP16 | 21 / 80 | 14.90 GiB | 35.43 GiB | Out of Memory |
| 16 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 23 / 80 | 14.76 GiB | 30.89 GiB | Out of Memory |
| 24 GB GPU + 64 GB RAM | 8k · KV FP16 | 41 / 80 | 22.52 GiB | 19.89 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 32k · KV FP16 | 34 / 80 | 22.65 GiB | 27.68 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 38 / 80 | 22.78 GiB | 22.86 GiB | RAM Spillover |
| 32 GB GPU + 64 GB RAM | 8k · KV FP16 | 57 / 80 | 30.50 GiB | 11.91 GiB | RAM Spillover |
| 32 GB GPU + 64 GB RAM | 32k · KV FP16 | 47 / 80 | 30.35 GiB | 19.99 GiB | RAM Spillover |
| 32 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 52 / 80 | 30.29 GiB | 15.36 GiB | RAM Spillover |
| 48 GB Dual-GPU + 128 GB RAM | 8k · KV FP16 | 80 / 80 | 42.41 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV FP16 | 74 / 80 | 46.54 GiB | 3.79 GiB | RAM Spillover |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV Q8_0 | 80 / 80 | 45.65 GiB | — | 100% VRAM |
| 64 GB Unified Memory | 8k · KV FP16 | 80 / 80 | 42.41 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV FP16 | 80 / 80 | 50.33 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV Q8_0 | 80 / 80 | 45.65 GiB | — | Unified Memory |
6. Ready-to-Run Local CLI Commands
With Ollama:
ollama run llama3.3:70b
With
llama-server (Flash Attention + Q8_0 KV Cache sized for 16 GB VRAM):llama-server -m Llama-3.3-70B-Instruct-Q4_K_M.gguf -ngl 23 -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!