Nathan-Maine commited on
Commit
0b38ae6
·
verified ·
1 Parent(s): 8a7ace8

Add correction notice

Browse files
Files changed (1) hide show
  1. CORRECTION-NOTICE.md +60 -0
CORRECTION-NOTICE.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Correction Notice — KV Cache Benchmark v3
2
+
3
+ **Date:** 2026-04-01
4
+ **Original publication:** 2026-03-31
5
+ **Status:** Correcting methodology and findings
6
+
7
+ ---
8
+
9
+ ## What Changed
10
+
11
+ ### Finding 2 (Memory "Paradox") — RETRACTED
12
+
13
+ **Original claim:** "q4_0 uses MORE memory than f16 on unified memory (+6%)"
14
+ **Methodology used:** Process RSS via `ps`
15
+ **Problem:** RSS measures CPU-side process memory, not GPU/unified memory allocations. On GB10 unified memory, KV cache allocations are not visible in RSS.
16
+
17
+ **Corrected measurement (nvidia-smi + llama.cpp internals):**
18
+
19
+ | Cache Type | KV Buffer (llama.cpp) | Total GPU (nvidia-smi) | vs f16 |
20
+ |-----------|----------------------|----------------------|--------|
21
+ | f16 | 768 MiB | 23,092 MiB | baseline |
22
+ | q8_0 | 408 MiB | 22,732 MiB | **-360 MiB (saves 47%)** |
23
+ | q4_0 | 216 MiB | 22,540 MiB | **-552 MiB (saves 72%)** |
24
+
25
+ **Conclusion:** KV cache quantization DOES save memory on GB10, as expected. The "paradox" was a measurement error.
26
+
27
+ ### Finding 1 (Speed Cliff) — RETRACTED
28
+
29
+ **Original claim:** "92.5% prompt throughput collapse at 64K with q4_0"
30
+ **Corrected finding:** No prompt throughput cliff exists. q4_0 prompt processing is essentially identical to f16 at all context lengths including 110K tokens.
31
+
32
+ **What actually happens:** Generation (decode) throughput degrades ~37% at 110K context with q4_0 vs f16. This is a real effect but it is generation speed, not prompt processing, and it is 37% not 92.5%.
33
+
34
+ **Corrected throughput data (full range):**
35
+
36
+ | Context | f16 prompt | q8_0 prompt | q4_0 prompt | f16 gen | q8_0 gen | q4_0 gen |
37
+ |---------|-----------|-------------|-------------|---------|---------|---------|
38
+ | ~1.5K | 923 | 925 | 926 | 45.2 | 45.3 | 45.6 |
39
+ | ~6K | 1,211 | 1,207 | 1,206 | 44.7 | 44.9 | 45.0 |
40
+ | ~12K | 1,188 | 1,184 | 1,191 | 44.9 | 42.9 | 42.7 |
41
+ | ~24K | 1,153 | 1,149 | 1,152 | 44.6 | 39.7 | 39.3 |
42
+ | **~110K** | **815** | **810** | **813** | **38.0** | **25.0** | **24.0** |
43
+
44
+ The original 92.5% collapse was likely caused by failed completion requests returning error data, not actual throughput measurements.
45
+
46
+ ### Finding 3 (q8_0 Sweet Spot) — PARTIALLY VALID
47
+
48
+ q8_0 does offer genuine KV buffer savings (47%) with minimal throughput impact at short-to-medium context. The generation speed degradation at 24K (~10%) needs further investigation at longer contexts.
49
+
50
+ ---
51
+
52
+ ## Root Cause of Original Errors
53
+
54
+ 1. **RSS is the wrong metric** for KV cache on unified memory. RSS reflects CPU-side process allocations, not GPU-side unified memory usage.
55
+ 2. **nvidia-smi + llama.cpp verbose output** provide the correct measurements.
56
+ 3. **The original benchmark did not verify that completions actually succeeded** — some data points may have been from failed requests.
57
+
58
+ ## Credit
59
+
60
+ Community feedback from u/audioen on r/LocalLLaMA identified the RSS measurement flaw. Their critique was correct.