KleidiBenchQwen2.5-3B-Instruct Arm Neoverse N24 cores15.6 GBllama.cpp d4cff114c2026-07-04T01:35:54

Arm optimization gains

Performance impact of Arm repack and KleidiAI kernels across quantization levels. Reproduce with kleidibench run <model>.

Q4_0 quantization

vs naive (no Arm repack)
2.55×Prefill
vs naive (no Arm repack)
1.41×Decode
Prefill (tok/s)70.17 → 70.85 (1.01×)
Decode (tok/s)19.32 → 19.37 (1.0×)
KleidiAI vs llama.cpp default@ 4 threads

Q8_0 quantization

vs naive (no Arm repack)
3.25×Prefill
vs naive (no Arm repack)
1.58×Decode
Prefill (tok/s)62.22 → 107.72 (1.73×)
Decode (tok/s)20.27 → 23.28 (1.15×)
KleidiAI vs llama.cpp default@ 4 threads
Decode tok/s (KleidiAI on, 4 threads)Q4_K_M17.57Q4_019.37Q8_023.28
Thread scaling — decode tok/s (Q4_0)repack-offkleidiai-offkleidiai-on3.985.725.961 thr7.1710.2810.492 thr13.7419.3219.374 thr
QuantBuildThreads Size GBPrefill t/sDecode t/sTTFT ms Peak RAM GBPerplexity
F16kleidiai-off45.75423.4310.8621849.15.91816.8845
Q4_0kleidiai-off11.69817.85.7228760.23.53620.2735
Q4_0kleidiai-off21.69835.4710.2814435.63.53620.2735
Q4_0kleidiai-off41.69870.1719.327296.13.53620.2735
Q4_0kleidiai-on11.69817.945.9628535.13.53620.2735
Q4_0kleidiai-on21.69835.7310.4914327.73.53620.2735
Q4_0kleidiai-on41.69870.8519.377226.83.53620.2735
Q4_0repack-off11.6986.893.9874298.71.85720.2735
Q4_0repack-off21.69813.967.1736667.81.85720.2735
Q4_0repack-off41.69827.813.7418420.21.85620.2735
Q4_K_Mkleidiai-off11.79711.755.0943582.23.73118.1105
Q4_K_Mkleidiai-off21.79723.299.3721979.13.73118.1105
Q4_K_Mkleidiai-off41.79746.2317.5911076.13.73118.1105
Q4_K_Mkleidiai-on11.79711.674.9443858.43.73118.1105
Q4_K_Mkleidiai-on21.79723.369.3721920.13.73118.1105
Q4_K_Mkleidiai-on41.79746.0917.5711108.83.73118.1105
Q4_K_Mrepack-off11.7977.324.3269964.71.95218.1105
Q4_K_Mrepack-off21.79714.67.8835066.81.95218.1105
Q4_K_Mrepack-off41.79729.0515.1717624.21.95218.1105
Q8_0kleidiai-off13.0615.695.7832622.66.2517.1097
Q8_0kleidiai-off23.0631.3710.9716322.46.2517.1097
Q8_0kleidiai-off43.0662.2220.278228.86.2517.1097
Q8_0kleidiai-on13.0626.496.5319327.86.08517.1097
Q8_0kleidiai-on23.0654.1912.519448.06.08517.1097
Q8_0kleidiai-on43.06107.7223.284752.96.08517.1097
Q8_0repack-off13.068.254.3262057.53.21917.1097
Q8_0repack-off23.0616.617.7430822.53.21417.1097
Q8_0repack-off43.0633.1314.7415452.63.21917.1097

Generated by kleidibench · benchmarked on a free GitHub Actions arm64 runner · github.com/yannan000/kleidibench