DeepSeek-R1 0528 Qwen3 8B (Q4_K_M) — Exact VRAM, KV Cache & Tensor X-Ray
DeepSeek-R1 0528 reasoning distillation on Qwen3 8B base: built for long chain-of-thought runs on 12 GB VRAM.
⚡ 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)6.55 GiB32k w/ Q8_0 KV: 8.02 GiB
Binary .GGUF Weights4.68 GiB4.90 effective bits/weight
Parameters (Active / Total)8.19 / 8.19 B399 parsed tensors
KV Cache Growth144.0 MiB/1kQ8_0 KV: 76.5 MiB / 1k tok
1. HuggingFace Binary Provenance
| Repository | bartowski/deepseek-ai_DeepSeek-R1-0528-Qwen3-8B-GGUF |
|---|---|
| Inspected File | deepseek-ai_DeepSeek-R1-0528-Qwen3-8B-Q4_K_M.gguf (4.68 GiB) |
| HF Commit SHA | 75b8e3d4ecaf |
| Harvested UTC | 2026-11-29 15:28:22 UTC |
| Parsed Header | 5 955 946 bytes (SHA-256 88b2c7d3c05a4e68df51…) |
2. Transformer & GQA Architecture
| GGUF Architecture | qwen3 (Dense) |
|---|---|
| Transformer Layers | 36 layers (~110.2 MiB / layer) |
| Dimensions (d_model / FFN) | 4096 / 12288 |
| Attention Heads (Q / KV) | 32 Q / 8 KV (GQA 4.0:1, dim 128) |
| Native Context & Vocab | 131 072 tokens · vocab 151 936 |
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 | 217 | 3.45 GiB | 73.8% | |
Q6_K | 37 | 1.23 GiB | 26.2% | |
F32 | 145 | 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.28 GiB | 0.15 GiB | 0.08 GiB | 5.71 GiB | 5.58 GiB |
| 4k (4 096) | 0.56 GiB | 0.30 GiB | 0.16 GiB | 5.99 GiB | 5.73 GiB |
| 8k (8 192) | 1.13 GiB | 0.60 GiB | 0.32 GiB | 6.56 GiB | 6.03 GiB |
| 16k (16 384) | 2.25 GiB | 1.20 GiB | 0.63 GiB | 7.68 GiB | 6.63 GiB |
| 32k (32 768) | 4.50 GiB | 2.39 GiB | 1.27 GiB | 9.93 GiB | 7.82 GiB |
| 64k (65 536) | 9.00 GiB | 4.78 GiB | 2.53 GiB | 14.43 GiB | 10.21 GiB |
| 128k (131 072) | 18.00 GiB | 9.56 GiB | 5.06 GiB | 23.43 GiB | 14.99 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 | 36 / 36 | 6.05 GiB | — | 100% VRAM |
| 8 GB GPU + 16 GB RAM | 32k · KV FP16 | 26 / 36 | 7.28 GiB | 2.35 GiB | RAM Spillover |
| 8 GB GPU + 16 GB RAM | 32k · KV Q8_0 | 34 / 36 | 7.17 GiB | 0.36 GiB | RAM Spillover |
| 12 GB GPU + 32 GB RAM | 8k · KV FP16 | 36 / 36 | 6.05 GiB | — | 100% VRAM |
| 12 GB GPU + 32 GB RAM | 32k · KV FP16 | 36 / 36 | 9.64 GiB | — | 100% VRAM |
| 12 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 36 / 36 | 7.53 GiB | — | 100% VRAM |
| 16 GB GPU + 32 GB RAM | 8k · KV FP16 | 36 / 36 | 6.05 GiB | — | 100% VRAM |
| 16 GB GPU + 32 GB RAM | 32k · KV FP16 | 36 / 36 | 9.64 GiB | — | 100% VRAM |
| 16 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 36 / 36 | 7.53 GiB | — | 100% VRAM |
| 24 GB GPU + 64 GB RAM | 8k · KV FP16 | 36 / 36 | 6.05 GiB | — | 100% VRAM |
| 24 GB GPU + 64 GB RAM | 32k · KV FP16 | 36 / 36 | 9.64 GiB | — | 100% VRAM |
| 24 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 36 / 36 | 7.53 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 8k · KV FP16 | 36 / 36 | 6.05 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 32k · KV FP16 | 36 / 36 | 9.64 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 36 / 36 | 7.53 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 8k · KV FP16 | 36 / 36 | 6.05 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV FP16 | 36 / 36 | 9.64 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV Q8_0 | 36 / 36 | 7.53 GiB | — | 100% VRAM |
| 64 GB Unified Memory | 8k · KV FP16 | 36 / 36 | 6.05 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV FP16 | 36 / 36 | 9.64 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV Q8_0 | 36 / 36 | 7.53 GiB | — | Unified Memory |
6. Ready-to-Run Local CLI Commands
With Ollama:
ollama run deepseek-r1:8b
With
llama-server (Flash Attention + Q8_0 KV Cache sized for 16 GB VRAM):llama-server -m deepseek-ai_DeepSeek-R1-0528-Qwen3-8B-Q4_K_M.gguf -ngl 36 -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!