Re:Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
by version_five on Monday August 14, 2023 @10:56AM
(#37121758)
Where does the performance difference come from? And in what kind of processor & gpu? I didn't even know llama.cpp had a 32 bit option. For now I'm pretty suspicious it's a fair comparison.
[ Parent
| on HN ]
Re:Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
by tjake on Monday August 14, 2023 @11:02AM
(#37121843)
The default for `convert.py` is F32. This is just SIMD CPU comparison.
Jlama uses the vector api in java20 but also better thread scheduling with work stealing and zero allocation.
Re:Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
by version_five on Monday August 14, 2023 @11:11AM
(#37121936)
Very interesting, I'll watch for the quantized version.
Re:Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
by belfthrow on Tuesday August 15, 2023 @11:50PM
(#37142666)
Could you link to some of the examples in your repo where you enforce the zero allocation? I don't see much reuse of the buffers, eg float buffers and there is quite a lot of array based heap allocation. Just for my own interest. Many thanks. Cool to see the use of the new vector api also.