Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
1–10 of 10 posts
Re: Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
#2Re: Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
#3Re: Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
#4Where 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.
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
#5Where 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.
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
#6Re: Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
#7Huh, yeah it repros. Java is faster 159s vs 203s for the 256 tokens on my intel i9 12 gen
This is still extremly slow for that CPU, compared to the quantized model.
IIRC the llama.cpp f32 code is basically a placeholder.
BUT the threading overhead is a known performance issue, and I'm sure Java handles that better.
Re: Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
#8Huh, yeah it repros. Java is faster 159s vs 203s for the 256 tokens on my intel i9 12 gen
> 159s for the 256 This is still extremly slow for that CPU, compared to the quantized model. IIRC the llama.cpp f32 code is basically a placeholder. BUT the threading overhead is a known performance issue, and I'm sure Java handles that better.
I didn't know about it, I should have... are there any "edge" frameworks as complete as ggml/llama.cpp that you know of that are faster now? Ggml is still very easy to use which I like, but I'd always thought of it as the fastest, in particular for CPU, I hadn't noticed there were known performance issues.
Re: Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
#9Earlier quoted context omitted.
> 159s for the 256 This is still extremly slow for that CPU, compared to the quantized model. IIRC the llama.cpp f32 code is basically a placeholder. BUT the threading overhead is a known performance issue, and I'm sure Java handles that better.
> threading overhead is a known performance issue I didn't know about it, I should have... are there any "edge" frameworks as complete as ggml/llama.cpp that you know of that are faster now? Ggml is still very easy to use which I like, but I'd always thought of it as the fastest, in particular for CPU, I hadn't noticed there were known performance issues.
Llama.cpp is still SOTA on CPU, as far as I know, especially with a small discrete GPU to help with long prompt ingestion. And it has tons of features (like grammar, context extending and good quant) that other frameworks are still missing.
Re: Jlama (Java) outperforms llama.cpp in F32 Llama 7B Model
#10Where 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.
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.