ScoreZenith
FR Downloads

Desktop Rust Apps

Browser Lab & Open Data

All Apps & Downloads
Qwen 2.5 · Q4_K_M · Dense · GGUF v3

Qwen2.5 7B Instruct (Q4_K_M) — Exact VRAM, KV Cache & Tensor X-Ray

Versatile 7B with ultra-lean 4-KV-head GQA (56 MiB/1k) enabling full 32k context inside 8 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)5.54 GiB32k w/ Q8_0 KV: 6.24 GiB
Binary .GGUF Weights4.36 GiB4.91 effective bits/weight
Parameters (Active / Total)7.62 / 7.62 B339 parsed tensors
KV Cache Growth56.0 MiB/1kQ8_0 KV: 29.8 MiB / 1k tok

1. HuggingFace Binary Provenance

RepositoryQwen/Qwen2.5-7B-Instruct-GGUF
Inspected Fileqwen2.5-7b-instruct-q4_k_m-00001-of-00002.gguf (4.36 GiB)
HF Commit SHAbb5d59e06d95
Harvested UTC2026-12-01 15:04:48 UTC
Parsed Header5 950 142 bytes (SHA-256 88dddc9e2022af0df8f4…)

2. Transformer & GQA Architecture

GGUF Architectureqwen2 (Dense)
Transformer Layers28 layers (~133.6 MiB / layer)
Dimensions (d_model / FFN)3584 / 18944
Attention Heads (Q / KV)28 Q / 4 KV (GQA 7.0:1, dim 128)
Native Context & Vocab131 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 TypeTensor CountVolumeWeight ShareDistribution
Q4_K1693.19 GiB73.3%
Q6_K291.16 GiB26.7%
F321410.00 GiB0.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.11 GiB0.06 GiB0.03 GiB5.22 GiB5.17 GiB
4k (4 096)0.22 GiB0.12 GiB0.06 GiB5.33 GiB5.23 GiB
8k (8 192)0.44 GiB0.23 GiB0.12 GiB5.55 GiB5.34 GiB
16k (16 384)0.88 GiB0.46 GiB0.25 GiB5.99 GiB5.57 GiB
32k (32 768)1.75 GiB0.93 GiB0.49 GiB6.86 GiB6.04 GiB
64k (65 536)3.50 GiB1.86 GiB0.98 GiB8.61 GiB6.97 GiB
128k (131 072)7.00 GiB3.72 GiB1.97 GiB12.11 GiB8.83 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 RAM8k · KV FP1628 / 285.03 GiB—100% VRAM
8 GB GPU + 16 GB RAM32k · KV FP1628 / 286.53 GiB—100% VRAM
8 GB GPU + 16 GB RAM32k · KV Q8_028 / 285.71 GiB—100% VRAM
12 GB GPU + 32 GB RAM8k · KV FP1628 / 285.03 GiB—100% VRAM
12 GB GPU + 32 GB RAM32k · KV FP1628 / 286.53 GiB—100% VRAM
12 GB GPU + 32 GB RAM32k · KV Q8_028 / 285.71 GiB—100% VRAM
16 GB GPU + 32 GB RAM8k · KV FP1628 / 285.03 GiB—100% VRAM
16 GB GPU + 32 GB RAM32k · KV FP1628 / 286.53 GiB—100% VRAM
16 GB GPU + 32 GB RAM32k · KV Q8_028 / 285.71 GiB—100% VRAM
24 GB GPU + 64 GB RAM8k · KV FP1628 / 285.03 GiB—100% VRAM
24 GB GPU + 64 GB RAM32k · KV FP1628 / 286.53 GiB—100% VRAM
24 GB GPU + 64 GB RAM32k · KV Q8_028 / 285.71 GiB—100% VRAM
32 GB GPU + 64 GB RAM8k · KV FP1628 / 285.03 GiB—100% VRAM
32 GB GPU + 64 GB RAM32k · KV FP1628 / 286.53 GiB—100% VRAM
32 GB GPU + 64 GB RAM32k · KV Q8_028 / 285.71 GiB—100% VRAM
48 GB Dual-GPU + 128 GB RAM8k · KV FP1628 / 285.03 GiB—100% VRAM
48 GB Dual-GPU + 128 GB RAM32k · KV FP1628 / 286.53 GiB—100% VRAM
48 GB Dual-GPU + 128 GB RAM32k · KV Q8_028 / 285.71 GiB—100% VRAM
64 GB Unified Memory8k · KV FP1628 / 285.03 GiB—Unified Memory
64 GB Unified Memory32k · KV FP1628 / 286.53 GiB—Unified Memory
64 GB Unified Memory32k · KV Q8_028 / 285.71 GiB—Unified Memory

6. Ready-to-Run Local CLI Commands

With Ollama:
ollama run qwen2.5:7b
With llama-server (Flash Attention + Q8_0 KV Cache sized for 16 GB VRAM):
llama-server -m qwen2.5-7b-instruct-q4_k_m-00001-of-00002.gguf -ngl 28 -c 32768 -fa --cache-type-k q8_0 --cache-type-v q8_0

7. Ed25519 Certified Real Hardware Benchmarks

lc-bcec724ebfNVIDIA GeForce RTX 4080 SUPER · OLLAMA · 2026-12-01115.2 tok/s

8. Related Quantizations & Comparable Models

Qwen2.5 7B vs Llama 3.1 8B: Double-Certified KV-Cache ShowdownCompare this model side-by-side →