Views
No views yet
q4_0 KV cache quantization, it allows pushing the context length up to 110k tokens.Note: This model is designed exclusively for nVidia GPUs and is based on the advanced KS and KT quants developed by ikawrakow from the ik_llama.cpp repository.
1llama-server" \
2 -m "$MODEL_PATH" \
3 -a Qwen3.8-27B \
4 --ctx-size 105000 \
5 --n-gpu-layers 99 \
6 --cache-type-k q4_0 \
7 --cache-type-v q4_0 \
8 --spec-type ngram-mod:n_max=2 \
9 --batch-size 512 \
10 --ubatch-size 128 \
11 --flash-attn on \
12 --host 0.0.0.0 \
13 --port 8081 \
14 --reasoning on \
15 --reasoning-format deepseek \
16 --reasoning-budget 32000 \
17 -t 8 \
18 -tb 8 \
19 --parallel 1 \
20 --metrics \
21 --merge-qkv \
22 -khad \
23 -vhad \
24 --chat-template-kwargs '{"preserve_thinking": true, "reasoning_effort": "medium"}' \
25 --defrag-thold 0.4 \
26 --jinja \
27 --cont-batching \
28 --temp 1.0 \
29 --top-k 20 \
30 --min-p 0.00 \
31 --top-p 0.95 \
32 --presence-penalty 0.0 \
33 --repeat-last-n 512 \
34 --repeat-penalty 1.0wget [https://www.gutenberg.org/files/2600/2600-0.txt](https://www.gutenberg.org/files/2600/2600-0.txt) -O pg19.txt1./llama-perplexity \
2 -m Qwen3.8-27B.i1-IQ4_XS.gguf \
3 -f pg19.txt \
4 -c 65536 \
5 --chunks 32 \
6 -ngl 99 \
7 -ctk q4_0 \
8 -ctv q4_0 \
9 -khad \
10 -vhad \
11 --merge-qkv \
12 -fa 1 \
13 -b 512 \
14 -ub 128 \
15 -t 81perplexity: calculating perplexity over 12 chunks, n_ctx=65536, batch_size=512, n_seq=1
2perplexity: 77.21 seconds per pass - ETA 15.43 minutes
3[1]7.7001,[2]8.0855,[3]8.2723,[4]8.3528,[5]8.5027,[6]8.3485,[7]8.3948,[8]8.3789,[9]8.4068,[10]8.4465,[11]8.4932,[12]8.2955,
4Final estimate: PPL over 12 chunks for n_ctx=65536 = 8.2955 +/- 0.03221
5
6llama_print_timings: load time = 2522.03 ms
7llama_print_timings: sample time = 0.00 ms / 1 runs ( 0.00 ms per token, inf tokens per second)
8llama_print_timings: prompt eval time = 750310.64 ms / 786432 tokens ( 0.95 ms per token, 1048.14 tokens per second)
9llama_print_timings: eval time = 0.00 ms / 1 runs ( 0.00 ms per token, inf tokens per second)
10llama_print_timings: total time = 1360215.26 ms / 786433 tokens1./llama-perplexity \
2 -m Qwen3.8-27B.i1-IQ4_KT-attn_qkv-IQ4_KS.gguf \
3 -f pg19.txt \
4 -c 65536 \
5 --chunks 32 \
6 -ngl 99 \
7 -ctk q4_0 \
8 -ctv q4_0 \
9 -khad \
10 -vhad \
11 --merge-qkv \
12 -fa 1 \
13 -b 512 \
14 -ub 128 \
15 -t 81perplexity: calculating perplexity over 12 chunks, n_ctx=65536, batch_size=512, n_seq=1
2perplexity: 84.14 seconds per pass - ETA 16.82 minutes
3[1]7.6895,[2]8.0682,[3]8.2542,[4]8.3333,[5]8.4853,[6]8.3416,[7]8.3890,[8]8.3734,[9]8.3999,[10]8.4386,[11]8.4857,[12]8.2890,
4Final estimate: PPL over 12 chunks for n_ctx=65536 = 8.2890 +/- 0.03224
5
6llama_print_timings: load time = 9369.56 ms
7llama_print_timings: sample time = 0.00 ms / 1 runs ( 0.00 ms per token, inf tokens per second)
8llama_print_timings: prompt eval time = 783243.61 ms / 786432 tokens ( 1.00 ms per token, 1004.07 tokens per second)
9llama_print_timings: eval time = 0.00 ms / 1 runs ( 0.00 ms per token, inf tokens per second)
10llama_print_timings: total time = 2323646.53 ms / 786433 tokens1llama-server \
2 -m "$MODEL_PATH" \
3 -a Qwen3.6-27B \
4 --ctx-size 110000 \
5 --n-gpu-layers 99 \
6 --cache-type-k q4_0 \
7 --cache-type-v q4_0 \
8 --batch-size 512 \
9 --ubatch-size 128 \
10 --flash-attn on \
11 --host 0.0.0.0 \
12 --port 8081 \
13 --reasoning on \
14 --reasoning-format none \
15 --reasoning-budget 32000 \
16 -t 8 \
17 -tb 8 \
18 --parallel 1 \
19 --metrics \
20 --merge-qkv \
21 -khad \
22 -vhad \
23 --chat-template-kwargs '{"preserve_thinking": true, "reasoning_effort": "medium"}' \
24 --defrag-thold 0.1 \
25 --jinja \
26 --cont-batching \
27 --temp 1.0 \
28 --top-k 20 \
29 --min-p 0.00 \
30 --top-p 0.95 \
31 --presence-penalty 0.0 \
32 --repeat-last-n 512 \
33 --repeat-penalty 1.001python3 ctx-cliff.py --file tests/code_4M.py --start 2000 --end 109000 --step 2000 --n-predict 512
2
3 ctx | prefill| decode| MTP| wall| status
4-------------------------------------------------
5 1999 | 1021.1 | 46.72| 0/0| 11.4s| OK
6 3925 | 1320.9 | 46.06| 0/0| 12.6s| OK
7 6017 | 1261.5 | 45.12| 0/0| 13.0s| OK
8 8065 | 1293.4 | 44.20| 0/0| 13.2s| OK
9 10218 | 1191.9 | 43.36| 0/0| 13.6s| OK
10 12489 | 1184.3 | 42.39| 0/0| 14.0s| OK
11 14525 | 1228.9 | 41.66| 0/0| 15.9s| OK
12 16108 | 1258.8 | 41.16| 0/0| 17.6s| OK
13 18976 | 1237.8 | 40.13| 0/0| 20.8s| OK
14 20476 | 1058.4 | 39.67| 0/0| 15.0s| OK
15 22574 | 1091.4 | 39.22| 0/0| 15.8s|STOP@463
16 24950 | 1082.3 | 38.15| 0/0| 16.3s| OK
17 26551 | 1060.3 | 37.79| 0/0| 18.0s| OK
18 29197 | 1058.8 | 37.16| 0/0| 20.7s| OK
19 30559 | 1059.6 | 36.81| 0/0| 22.1s| OK
20 32691 | 1048.1 | 36.17| 0/0| 24.5s| OK
21 34235 | 1046.3 | 35.75| 0/0| 26.2s| OK
22 36569 | 1037.3 | 35.22| 0/0| 28.7s| OK
23 38356 | 1027.6 | 34.94| 0/0| 30.7s| OK
24 40912 | 1014.6 | 34.14| 0/0| 33.8s| OK
25 42569 | 1010.3 | 34.00| 0/0| 35.6s| OK
26 44532 | 1002.9 | 33.27| 0/0| 32.1s|STOP@316
27 47017 | 994.5 | 32.53| 0/0| 44.2s| OK
28 48257 | 997.5 | 32.83| 0/0| 47.7s| OK
29 51210 | 996.4 | 32.06| 0/0| 53.1s| OK
30 52481 | 826.8 | 31.97| 0/0| 18.4s| OK
31 54608 | 803.1 | 31.43| 0/0| 18.9s| OK
32 56263 | 775.9 | 31.16| 0/0| 18.6s| OK
33 58871 | 847.3 | 30.54| 0/0| 24.2s| OK
34 60014 | 795.5 | 30.38| 0/0| 21.1s| OK
35 62496 | 825.7 | 29.95| 0/0| 26.7s| OK
36 64364 | 780.5 | 29.67| 0/0| 23.2s| OK
37 65843 | 775.2 | 29.08| 0/0| 25.5s| OK
38 67130 | 746.5 | 28.85| 0/0| 22.2s| OK
39 68719 | 757.5 | 28.73| 0/0| 24.3s| OK
40 70803 | 753.8 | 28.45| 0/0| 27.3s| OK
41 72826 | 712.6 | 28.20| 0/0| 22.2s| OK
42 74889 | 723.3 | 27.72| 0/0| 25.3s| OK
43 76819 | 725.8 | 27.43| 0/0| 28.1s| OK
44 78975 | 723.9 | 27.09| 0/0| 31.4s| OK
45 81045 | 678.9 | 26.81| 0/0| 23.4s| OK
46 83184 | 755.7 | 26.48| 0/0| 36.9s| OK
47 85162 | 712.9 | 26.14| 0/0| 41.0s| OK
48 87191 | 684.5 | 25.90| 0/0| 31.5s| OK
49 89098 | 728.9 | 25.66| 0/0| 44.9s| OK
50 90969 | 706.3 | 25.30| 0/0| 50.0s| OK
51 93074 | 696.8 | 25.12| 0/0| 53.6s| OK
52 95132 | 654.1 | 24.84| 0/0| 34.1s| OK
53 97250 | 614.2 | 24.56| 0/0| 25.3s| OK
54 99301 | 680.1 | 24.27| 0/0| 40.2s| OK
55101183 | 629.1 | 24.14| 0/0| 31.9s| OK
56103237 | 668.2 | 23.83| 0/0| 46.8s| OK
57105209 | 624.7 | 23.64| 0/0| 38.8s| OK
58107265 | 655.6 | 23.37| 0/0| 53.9s| OK