witcheer commited on
Commit
934d3cc
·
verified ·
1 Parent(s): 65ba8dd

initial upload: turboquant KV cache benchmarks on RTX 4060 Ti 8GB

Browse files
Files changed (2) hide show
  1. README.md +108 -0
  2. benchmark.csv +19 -0
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: config
5
+ dtype: string
6
+ - name: runtime
7
+ dtype: string
8
+ - name: kv_cache_k
9
+ dtype: string
10
+ - name: kv_cache_v
11
+ dtype: string
12
+ - name: context_k
13
+ dtype: int64
14
+ - name: np_slots
15
+ dtype: int64
16
+ - name: graph_splits
17
+ dtype: int64
18
+ - name: kv_vram_mib
19
+ dtype: int64
20
+ - name: checkpoint_mode
21
+ dtype: string
22
+ - name: agent
23
+ dtype: string
24
+ - name: system_prompt_tokens
25
+ dtype: int64
26
+ - name: context_depth_k
27
+ dtype: float64
28
+ - name: decode_tok_s
29
+ dtype: float64
30
+ - name: prompt_eval_tok_s
31
+ dtype: float64
32
+ - name: test_type
33
+ dtype: string
34
+ - name: notes
35
+ dtype: string
36
+ license: mit
37
+ tags:
38
+ - benchmark
39
+ - local-llm
40
+ - 8gb-vram
41
+ - turboquant
42
+ - moe-offload
43
+ - kv-cache
44
+ - rtx-4060-ti
45
+ - qwen
46
+ - practitioner-tested
47
+ size_categories:
48
+ - n<1K
49
+ ---
50
+
51
+ # RTX 4060 Ti 8GB — turboquant KV cache benchmark (Qwen3.6-35B-A3B)
52
+
53
+ practitioner-tested benchmarks of turboquant KV cache types vs standard llama.cpp on an RTX 4060 Ti 8GB with 32GB DDR5-6000 RAM.
54
+
55
+ ## hardware
56
+
57
+ | component | spec |
58
+ |-----------|------|
59
+ | GPU | NVIDIA RTX 4060 Ti, 8 GB VRAM |
60
+ | CPU | AMD Ryzen 5 7600X (6c/12t) |
61
+ | RAM | 32 GB DDR5-6000 dual-channel |
62
+ | OS | Windows 11 + WSL2 Ubuntu 26.04 |
63
+
64
+ ## model
65
+
66
+ Qwen3.6-35B-A3B-UD-Q4_K_M (22.1 GB). hybrid SSM+attention architecture — 10/40 layers use attention, 30/40 use Gated Delta Net (recurrent). MoE with partial offload: -ncmoe 30 (10 layers experts on GPU, 30 on CPU).
67
+
68
+ ## what this dataset covers
69
+
70
+ 1. **turboquant KV cache types** — turbo2, turbo3, turbo4 vs standard q4_0 and q8_0. turboquant is a llama.cpp fork (github.com/TheTom/llama-cpp-turboquant) that adds aggressive KV cache compression with auto-asymmetric behaviour (K stays q8_0 for high GQA ratios, only V is compressed).
71
+
72
+ 2. **graph splits** — the hidden speed determinant on 8GB VRAM. standard llama.cpp V q4_0 at 64K context produces 82 graph splits (GPU-CPU transfers per step) vs 62 at 32K. turboquant turbo2/turbo3 keep 62 splits at 64K. the split count matters more than raw VRAM usage at this boundary.
73
+
74
+ 3. **context checkpoint impact** — llama.cpp creates context checkpoints every 8192 tokens during prefill (~63 MiB each in VRAM). at 26K context, 5 checkpoints = 315 MiB, pushing past the 7 GB VRAM cliff. disabling with --checkpoint-every-n-tokens -1 eliminates the cliff entirely. this is a novel finding — I have not seen it documented elsewhere.
75
+
76
+ 4. **agent harness overhead** — Hermes Agent v0.13.0 (~13.5K token system prompt) vs Pi coding agent v0.74.0 (~1.9K tokens). same decode speed, 7x smaller system prompt = 13K more usable context.
77
+
78
+ 5. **speed curve at depth** — decode speed from 3.5K to 50K context with checkpoints disabled. smooth degradation (~2 tok/s per 10K tokens) from attention scaling on the 10 attention layers. no cliff.
79
+
80
+ ## key findings
81
+
82
+ - **turbo3 is the sweet spot for 8GB VRAM.** same speed as turbo2 (35 tok/s) with better V cache compression. turbo4 is too aggressive (13.93 tok/s — decompression overhead kills it).
83
+ - **graph splits > raw VRAM** as the speed determinant at this boundary. 62 splits = fast, 82 splits = broken.
84
+ - **context checkpoints are a hidden VRAM eater.** disabling them is free on Qwen3.6 (hybrid architecture invalidates them anyway).
85
+ - **final config:** 64K context, 28-34 tok/s across all depths, no cliff.
86
+
87
+ ## recommended config
88
+
89
+ ```
90
+ -ngl 999 -ncmoe 30 -c 65536 -np 1 -fa on --cache-type-k q8_0 --cache-type-v turbo3 --no-cache-prompt --checkpoint-every-n-tokens -1
91
+ ```
92
+
93
+ ## methodology
94
+
95
+ - all tests on same hardware, same Q4_K_M quant, same -ncmoe 30 partial offload
96
+ - curl tests: single 300-token completion request (warm run)
97
+ - agent tests: real multi-step tasks via Hermes or Pi
98
+ - decode speed from llama-server slot print_timing logs
99
+ - tested 2026-05-11 and 2026-05-12
100
+
101
+ ## related datasets
102
+
103
+ - [witcheer/windows-rtx-4060ti-8gb-bench-2026-05](https://huggingface.co/datasets/witcheer/windows-rtx-4060ti-8gb-bench-2026-05) — dense model benchmarks
104
+ - [witcheer/windows-rtx-4060ti-8gb-moe-offload-bench-2026-05](https://huggingface.co/datasets/witcheer/windows-rtx-4060ti-8gb-moe-offload-bench-2026-05) — MoE offload benchmarks
105
+
106
+ ## collection
107
+
108
+ [8GB VRAM local LLMs — practitioner-tested](https://huggingface.co/collections/witcheer/8gb-vram-local-llms-practitioner-tested)
benchmark.csv ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ config,runtime,kv_cache_k,kv_cache_v,context_k,np_slots,graph_splits,kv_vram_mib,checkpoint_mode,agent,system_prompt_tokens,context_depth_k,decode_tok_s,prompt_eval_tok_s,test_type,notes
2
+ baseline_hermes,llama.cpp,q8_0,q8_0,32768,4,62,1360,default,hermes,13500,3.5,31.4,,hermes_round,original smoke test config
3
+ phase1_np1,llama.cpp,q8_0,q8_0,32768,1,62,340,default,none,,3.5,34.94,,curl,added -np 1
4
+ phase2_q4v_64k,llama.cpp,q8_0,q4_0,65536,1,82,520,default,none,,3.5,31.22,,curl,V cache q4_0 at 64K
5
+ phase2_q4v_64k,llama.cpp,q8_0,q4_0,65536,1,82,520,default,hermes,13500,14.0,9.0,,hermes_round,82 splits killed Hermes speed
6
+ phase2_q4v_48k,llama.cpp,q8_0,q4_0,49152,1,82,390,default,none,,3.5,30.52,,curl,48K still has 82 splits
7
+ turboquant_turbo4,turboquant,q8_0_auto,turbo4,65536,1,62,510,default,none,,3.5,13.93,,curl,auto-asymmetric upgraded K to q8_0; turbo4 decompression too aggressive
8
+ turboquant_turbo2,turboquant,q8_0,turbo2,65536,1,62,510,default,none,,3.5,35.13,,curl,turbo2 keeps 62 splits at 64K
9
+ turboquant_turbo2,turboquant,q8_0,turbo2,65536,1,62,510,default,hermes,13500,14.3,33.59,,hermes_round,confirmed speed holds in Hermes
10
+ turboquant_turbo2,turboquant,q8_0,turbo2,65536,1,62,510,default,hermes,13500,14.3,35.76,,hermes_round,second call same session
11
+ turboquant_turbo3,turboquant,q8_0,turbo3,65536,1,62,510,default,none,,3.5,35.17,,curl,turbo3 matches turbo2 speed with better compression
12
+ turboquant_turbo3,turboquant,q8_0,turbo3,65536,1,62,510,default,pi,1900,3.5,34.18,,pi_round,Pi system prompt 7x smaller than Hermes
13
+ turboquant_turbo3,turboquant,q8_0,turbo3,65536,1,62,510,default,pi,1900,17.2,31.17,,pi_round,speed holds at 17K context
14
+ turboquant_turbo3,turboquant,q8_0,turbo3,65536,1,62,510,default,pi,1900,26.5,14.64,88,pi_round,VRAM cliff from checkpoint accumulation
15
+ turboquant_turbo3,turboquant,q8_0,turbo3,65536,1,62,510,disabled,none,,3.5,34.25,370,curl,checkpoints disabled via --checkpoint-every-n-tokens -1
16
+ turboquant_turbo3,turboquant,q8_0,turbo3,65536,1,62,510,disabled,none,,20.0,31.54,461,curl,no cliff at 20K
17
+ turboquant_turbo3,turboquant,q8_0,turbo3,65536,1,62,510,disabled,none,,26.0,30.26,443,curl,no cliff at 26K — was 14.64 with checkpoints
18
+ turboquant_turbo3,turboquant,q8_0,turbo3,65536,1,62,510,disabled,none,,35.0,29.62,455,curl,smooth degradation continues
19
+ turboquant_turbo3,turboquant,q8_0,turbo3,65536,1,62,510,disabled,none,,50.0,27.71,450,curl,50K context at 28 tok/s — no cliff