DeepSeek-R1 Distill Qwen 32B (Q4_K_M) — Exact VRAM, KV Cache & Tensor X-Ray
32B reasoning distillation (~18.5 GiB): requires 24 GB VRAM (Q8_0 KV cache recommended above 16k tokens).
⚡ 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)21.23 GiB32k w/ Q8_0 KV: 23.68 GiB
Binary .GGUF Weights18.48 GiB4.85 effective bits/weight
Parameters (Active / Total)32.76 / 32.76 B771 parsed tensors
KV Cache Growth256.0 MiB/1kQ8_0 KV: 136.0 MiB / 1k tok
1. HuggingFace Binary Provenance
| Repository | bartowski/DeepSeek-R1-Distill-Qwen-32B-GGUF |
|---|---|
| Inspected File | DeepSeek-R1-Distill-Qwen-32B-Q4_K_M.gguf (18.49 GiB) |
| HF Commit SHA | 1dc8cf9ffa5d |
| Harvested UTC | 2026-11-29 15:28:37 UTC |
| Parsed Header | 5 978 259 bytes (SHA-256 fcb1828b0a214a08bab1…) |
2. Transformer & GQA Architecture
| GGUF Architecture | qwen2 (Dense) |
|---|---|
| Transformer Layers | 64 layers (~279.7 MiB / layer) |
| Dimensions (d_model / FFN) | 5120 / 27648 |
| Attention Heads (Q / KV) | 40 Q / 8 KV (GQA 5.0:1, dim 128) |
| Native Context & Vocab | 131 072 tokens · vocab 152 064 |
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 | 385 | 14.29 GiB | 77.3% | |
Q6_K | 65 | 4.18 GiB | 22.6% | |
F32 | 321 | 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.50 GiB | 0.27 GiB | 0.14 GiB | 19.73 GiB | 19.50 GiB |
| 4k (4 096) | 1.00 GiB | 0.53 GiB | 0.28 GiB | 20.23 GiB | 19.76 GiB |
| 8k (8 192) | 2.00 GiB | 1.06 GiB | 0.56 GiB | 21.23 GiB | 20.29 GiB |
| 16k (16 384) | 4.00 GiB | 2.13 GiB | 1.13 GiB | 23.23 GiB | 21.36 GiB |
| 32k (32 768) | 8.00 GiB | 4.25 GiB | 2.25 GiB | 27.23 GiB | 23.48 GiB |
| 64k (65 536) | 16.00 GiB | 8.50 GiB | 4.50 GiB | 35.23 GiB | 27.73 GiB |
| 128k (131 072) | 32.00 GiB | 17.00 GiB | 9.00 GiB | 51.23 GiB | 36.23 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 | 19 / 64 | 7.11 GiB | 13.64 GiB | Out of Memory |
| 8 GB GPU + 16 GB RAM | 32k · KV FP16 | 14 / 64 | 7.21 GiB | 19.80 GiB | Out of Memory |
| 8 GB GPU + 16 GB RAM | 32k · KV Q8_0 | 16 / 64 | 7.04 GiB | 16.23 GiB | Out of Memory |
| 12 GB GPU + 32 GB RAM | 8k · KV FP16 | 32 / 64 | 11.01 GiB | 9.74 GiB | RAM Spillover |
| 12 GB GPU + 32 GB RAM | 32k · KV FP16 | 24 / 64 | 11.12 GiB | 15.89 GiB | RAM Spillover |
| 12 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 28 / 64 | 11.04 GiB | 12.22 GiB | RAM Spillover |
| 16 GB GPU + 32 GB RAM | 8k · KV FP16 | 45 / 64 | 14.88 GiB | 5.87 GiB | RAM Spillover |
| 16 GB GPU + 32 GB RAM | 32k · KV FP16 | 34 / 64 | 15.03 GiB | 11.98 GiB | RAM Spillover |
| 16 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 40 / 64 | 15.04 GiB | 8.22 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 8k · KV FP16 | 64 / 64 | 20.75 GiB | — | 100% VRAM |
| 24 GB GPU + 64 GB RAM | 32k · KV FP16 | 53 / 64 | 22.51 GiB | 4.50 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 62 / 64 | 22.55 GiB | 0.71 GiB | RAM Spillover |
| 32 GB GPU + 64 GB RAM | 8k · KV FP16 | 64 / 64 | 20.75 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 32k · KV FP16 | 64 / 64 | 27.01 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 64 / 64 | 23.26 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 8k · KV FP16 | 64 / 64 | 20.75 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV FP16 | 64 / 64 | 27.01 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV Q8_0 | 64 / 64 | 23.26 GiB | — | 100% VRAM |
| 64 GB Unified Memory | 8k · KV FP16 | 64 / 64 | 20.75 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV FP16 | 64 / 64 | 27.01 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV Q8_0 | 64 / 64 | 23.26 GiB | — | Unified Memory |
6. Ready-to-Run Local CLI Commands
With Ollama:
ollama run deepseek-r1:32b
With
llama-server (Flash Attention + Q8_0 KV Cache sized for 16 GB VRAM):llama-server -m DeepSeek-R1-Distill-Qwen-32B-Q4_K_M.gguf -ngl 40 -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!