DeepSeek-R1 Distill Qwen 32B (IQ4_XS) (IQ4_XS) — Exact VRAM, KV Cache & Tensor X-Ray
IQ4_XS DeepSeek-R1 32B (~16.5 GiB): keeps 32k reasoning chains 100% inside 24 GB RTX 3090 / 4090 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)19.22 GiB32k w/ Q8_0 KV: 21.67 GiB
Binary .GGUF Weights16.47 GiB4.32 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-IQ4_XS.gguf (16.48 GiB) |
| HF Commit SHA | 1dc8cf9ffa5d |
| Harvested UTC | 2026-12-01 15:05:27 UTC |
| Parsed Header | 5 978 259 bytes (SHA-256 e4c55e51b737243df460…) |
2. Transformer & GQA Architecture
| GGUF Architecture | qwen2 (Dense) |
|---|---|
| Transformer Layers | 64 layers (~247.9 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, IQ4_XS keeps sensitive embedding, output and attention tensors at higher precision:
| GGML Type | Tensor Count | Volume | Weight Share | Distribution |
|---|---|---|---|---|
IQ4_XS | 385 | 15.66 GiB | 95.1% | |
Q6_K | 1 | 0.59 GiB | 3.6% | |
Q5_K | 64 | 0.21 GiB | 1.3% | |
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 | 17.72 GiB | 17.49 GiB |
| 4k (4 096) | 1.00 GiB | 0.53 GiB | 0.28 GiB | 18.22 GiB | 17.75 GiB |
| 8k (8 192) | 2.00 GiB | 1.06 GiB | 0.56 GiB | 19.22 GiB | 18.28 GiB |
| 16k (16 384) | 4.00 GiB | 2.13 GiB | 1.13 GiB | 21.22 GiB | 19.35 GiB |
| 32k (32 768) | 8.00 GiB | 4.25 GiB | 2.25 GiB | 25.22 GiB | 21.47 GiB |
| 64k (65 536) | 16.00 GiB | 8.50 GiB | 4.50 GiB | 33.22 GiB | 25.72 GiB |
| 128k (131 072) | 32.00 GiB | 17.00 GiB | 9.00 GiB | 49.22 GiB | 34.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 RAM | 8k · KV FP16 | 22 / 64 | 7.26 GiB | 11.48 GiB | RAM Spillover |
| 8 GB GPU + 16 GB RAM | 32k · KV FP16 | 15 / 64 | 7.02 GiB | 17.99 GiB | Out of Memory |
| 8 GB GPU + 16 GB RAM | 32k · KV Q8_0 | 18 / 64 | 7.06 GiB | 14.19 GiB | Out of Memory |
| 12 GB GPU + 32 GB RAM | 8k · KV FP16 | 36 / 64 | 11.09 GiB | 7.65 GiB | RAM Spillover |
| 12 GB GPU + 32 GB RAM | 32k · KV FP16 | 26 / 64 | 11.05 GiB | 13.95 GiB | RAM Spillover |
| 12 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 31 / 64 | 11.07 GiB | 10.18 GiB | RAM Spillover |
| 16 GB GPU + 32 GB RAM | 8k · KV FP16 | 50 / 64 | 14.91 GiB | 3.83 GiB | RAM Spillover |
| 16 GB GPU + 32 GB RAM | 32k · KV FP16 | 36 / 64 | 14.72 GiB | 10.28 GiB | RAM Spillover |
| 16 GB GPU + 32 GB RAM | 32k · KV Q8_0 | 43 / 64 | 14.77 GiB | 6.48 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 8k · KV FP16 | 64 / 64 | 18.74 GiB | — | 100% VRAM |
| 24 GB GPU + 64 GB RAM | 32k · KV FP16 | 58 / 64 | 22.80 GiB | 2.20 GiB | RAM Spillover |
| 24 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 64 / 64 | 21.25 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 8k · KV FP16 | 64 / 64 | 18.74 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 32k · KV FP16 | 64 / 64 | 25.00 GiB | — | 100% VRAM |
| 32 GB GPU + 64 GB RAM | 32k · KV Q8_0 | 64 / 64 | 21.25 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 8k · KV FP16 | 64 / 64 | 18.74 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV FP16 | 64 / 64 | 25.00 GiB | — | 100% VRAM |
| 48 GB Dual-GPU + 128 GB RAM | 32k · KV Q8_0 | 64 / 64 | 21.25 GiB | — | 100% VRAM |
| 64 GB Unified Memory | 8k · KV FP16 | 64 / 64 | 18.74 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV FP16 | 64 / 64 | 25.00 GiB | — | Unified Memory |
| 64 GB Unified Memory | 32k · KV Q8_0 | 64 / 64 | 21.25 GiB | — | Unified Memory |
6. Ready-to-Run Local CLI Commands
With Ollama:
ollama run hf.co/bartowski/DeepSeek-R1-Distill-Qwen-32B-GGUF:IQ4_XS
With
llama-server (Flash Attention + Q8_0 KV Cache sized for 16 GB VRAM):llama-server -m DeepSeek-R1-Distill-Qwen-32B-IQ4_XS.gguf -ngl 43 -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!