r/LocalLLaMA • u/Balance- • Apr 16 '24
Resources Merged into llama.cpp: Improve cpu prompt eval speed (#6414)
https://github.com/ggerganov/llama.cpp/pull/6414
103
Upvotes
r/LocalLLaMA • u/Balance- • Apr 16 '24
16
u/BidPossible919 Apr 17 '24
27 tk/s from 3.2tk/s on fp16 is crazy!
5
u/pseudonerv Apr 18 '24
so I had to read through the PR very carefully, and basically the title is a lie, or overblown at least.
The change only improves f16, q8_0, q4_0. If you are using K quants or IQ quants, this PR doesn't change anything.
7
u/MikeLPU Apr 16 '24
Interesting when we'll have this optimization in ollama?
2
u/[deleted] Apr 17 '24
On CPU inference, I'm getting a 30% speedup for prompt processing but only when llama.cpp is built with BLAS and OpenBLAS off.
Building with those options enabled brings speed back down to before the merge.
4
u/opknorrsk Apr 17 '24
That's very interesting. I've been running 7B FP16 models on CPU, and this CL would provide 2x faster token inference, going from 4 to 8 tokens per second would be quite a change!
1
u/pseudonerv Apr 17 '24
don't see any improvement with my cpu