Perfect memory usage and speed.

#2
by NKding - opened

ik_llama with --defer-ple is very memory-efficient and much faster, but the quality of Q4 still doesn't match Qwen3.8-Flash-Next-Uncensored-AD-4.27-mainline, so I'm looking forward to Q5.

Thank you for the kind words!

quality of Q4 still doesn't match Qwen3.8-Flash-Next-Uncensored-AD-4.27-mainline

This repo targets English and code for agentic use. On both, the v4 IQ4_KT now has lower KLD and higher top-1 than AD-4.27-mainline, and it is 5.3 GiB smaller. The v4 IQ3_KT is 15.5 GiB smaller and within 5% of its KLD on both, with a higher top-1 for code. IQ5_KT is not (yet) implemented on ik_llama for this model.

File Size English KLD English top-1 Code KLD Code top-1
v4 IQ4_KT 82.75 GiB 0.0560 91.54% 0.0571 95.23%
v4 IQ3_KT 72.52 GiB 0.0855 89.68% 0.0817 94.35%
AD-4.27 mainline 88.03 GiB 0.0816 89.93% 0.0787 94.25%
IQ4_KT_v3 (replaced) 80.72 GiB 0.1327 86.70% 0.1260 93.24%

KLD is against the BF16 of the same weights, on ten 2048-token chunks each of held-out English and code. All four rows were measured with ik_llama.cpp's llama-perplexity, the mainline file included.

For my code, V4's quality is clearly higher than V3's, and it may be slightly better than AD4.27's. The memory usage is a bit higher than V3's (by about 1.5 GB). Thanks to Joel for the rapid iteration.

V4 is a huge quality improvement. The biggest win for me is instruction-following β€” V3 was a real pain point there, and V4 handles it very well.

My use case is subtitle text translation. From visual inspection, V4's quality exceeds AD-4.27, especially in merging and language polishing.

IQ5_KT won't run on my 96G pure 9950X machine (no GPU).

Memory: with mainline + AD-4.27, usage goes above 95%, so I have to close everything else and it barely runs. V4 sits around 80%, and V3 around 78%.

Speed (note: the V4 numbers below include MTP speculative decoding):

prompt eval time = 57701.90 ms / 11178 tokens (5.16 ms per token, 193.72 tokens per second)
eval time = 313012.47 ms / 4636 tokens (67.52 ms per token, 14.81 tokens per second)
total time = 370714.38 ms / 15814 tokens

On the same task, mainline + AD-4.27 is about 105/8.

Sign up or log in to comment