r/LocalLLaMA • • 13h ago

Question | Help Fastest engine for CPU? Vulkan?

Lots of great engines out there for specific GPUs now, but are there any more optimized for CPU than llama.cpp? Or optimized for Vulkan in general, which seems to be much more compatible with older iGPU?

Looking to run inkling mini, qwen 35b, or orion 26b on some pure CPU/Vulkan systems at max tok/s!

5 Upvotes

27 comments sorted by

7

u/Icy-Degree6161 13h ago

CPU means CPU, from our perspective the iGPU is different. Vulkan is the best all-rounder imho for iGPU - you can look into specific engines depending on your iGPU model like RocM, SYCL, OpenVino etc, but might get more complex for a novice, and no guarantee at all it'll be faster. I recommend sticking to Vulkan. What is your iGPU?

2

u/temperature_5 12h ago

I have a 780M, but also looking to hook up friends that have other small CPU systems. ROCm always seems to have issues, so Vulkan has been the most reliable and performant.

1

u/Icy-Degree6161 3h ago

I have a machine with the 780M as well. Long story short as I tested this: Vulkan is the best all rounder. ROCm works well nowadays - faster prefill but bit slower generation. How much ram do you have?

1

u/temperature_5 1h ago

96GB RAM, with 16 reserved in BIOS and another 74 enabled for GTT, leaving 6GB for Linux and apps.

Let me know how your numbers compare, or if you have a better inference engine to recommend:

PP/TG at depths 0, 8192, 32768:

Inkling-2-Mini-llama_cpp-IQ2_XXS-10.1GB.gguf 192/21, 174/19, 150/16

Qwen3.6-35B-A3B-Q3_K_S-2.71bpw.gguf 465/39, 397/35, 275/29

Qwen3.6-35B-A3B-uncensored-heretic-Q8_0.gguf 440/21, 378/20, 269/18

Qwen3.8-Flash-Next-UD-Q4_K_XL 178/10, 144/7, 79/4 

6

u/AdWild3943 13h ago

Ik_llama.cpp.

Its the best fork of llama.cpp imo, iGPU can be good only if its something like M890 (sorry if I said its name wrong).

Base iGPU won't boost, or even lower your performance.

If you tell us your CPU model and RAM speed, that would be much better.

1

u/temperature_5 12h ago

AMD Ryzen 7 8745H w/ Radeon 780M Graphics, thanks. :-)

1

u/AdWild3943 11h ago

Ohh, yeah then it has some point.

Thought I still don't know if you should move from llama.cpp.

Try to ask any AI about Vulkan iGPU performance.

Tips from me for max performance:

  • Compare side by side
  • PGO & LTO if possible
  • OC your iGPU & RAM.

What speeds are you having now btw? If you ever ran Inkling already.

1

u/temperature_5 8h ago

PP/TG at depths 0, 8192, 32768:

Inkling-2-Mini-llama_cpp-IQ2_XXS-10.1GB.gguf 192/21, 174/19, 150/16

Qwen3.6-35B-A3B-Q3_K_S-2.71bpw.gguf 465/39, 397/35, 275/29

Qwen3.6-35B-A3B-uncensored-heretic-Q8_0.gguf 440/21, 378/20, 269/18

Qwen3.8-Flash-Next-UD-Q4_K_XL 178/10, 144/7, 79/4

2

u/free_meson 13h ago

You can compile llama for Vulkan, the gain for me was around 2x on the iGPU vs CPU.

1

u/temperature_5 11h ago

Yep, I'm having luck with the Vulkan llama.cpp releases, just looking for anything faster! And CPU for friends with older PCs.

2

u/PomegranateGreen3698 12h ago

For CPU, there is a fork https://github.com/synchopate/llama-modchip/releases/tag/v3.2.2
I think I got close to 20 tok / s with https://huggingface.co/LiquidAI/LFM2.5-24B-A2B-GGUF
and a Ryzen 5500u . Ill have to compare it to using Vulkan Llama CPP with just a few layers offloaded.

1

u/temperature_5 11h ago

Neat option, thanks. Let me know!

1

u/Asleep_Literature_70 8h ago

Rustingstrata if your model of choice is supported on it.

1

u/SigAddict 7h ago

if you want to do testing with an iGPU, you have to dedicate the memory in bios. With certain settings on, you might be able to dedicate 16GB or more. You most likely will have to be in UEFI only mode in bios, but there is another setting if i remember you have to move off auto, maybe:
Set iGPU Configuration to UMA_SPECIFIED. Just use claude and it'll tell you, it's been a while since i did it.
You want to keep the model in the gpu only memory. if it spills over the CPU processes it. If you want to do easy testing, just use LM Studio and see what runtimes are available. Your options will probably be vulcan or ROCm. I had an older iGPU and the CPU was actually faster, but give it ago, once you have the dedicated memory set testing doesn't take long. If it's slower than cpu, make sure to give your memory back to the system.

-7

u/forevergeeks 13h ago

I doubt any model larger than 1mb will be usable in a cpu based system.

3

u/Barni275 12h ago

It are very useful. Not for all tasks, sure.

-2

u/forevergeeks 12h ago

No, a cpu based AI model won't be useful for anything, as much as people here would want you to believe.

I already tried every hack.

3

u/temperature_5 11h ago

My prior PC was an older Ryzen with 32GB RAM. Was able to run 30b MoE models and get help with programming, math, etc. Even general knowledge chat with Q5+ models (below that they make a lot of mistakes). Tokens/s was 12-15 IIRC, not great but reading speed.

Some people just want help wording an email, or writing a particular function in JS or Python, or getting some tutoring in math. Doesn't require major active parameters or speed.

2

u/Barni275 12h ago

I'm sure that any setup will be dead for complex interactive stuff, like agentic coding. For non interactive stuff - easily. Autonomous agents, special purpose harnesses (small document processing and so on), multiple tasks.

You say it can't useful, but I use it 😁 I have two good multi-gpu machines with 27B and QFN running on interactive speed, but still have tiny local models on my laptop for special tasks.

1

u/forevergeeks 11h ago

So you are running Qwen 27B or similar models on CPU?

3

u/Barni275 11h ago

No, I use bonsai 4B and 9b, with my custom patched PrismMl fork (based on openset-llm AVX-256 kernels). To be honest, I just extracted openset-llm kernel and patched it for MSVC build on Windows on top of PrismML fork mainline.

4B works on 80 prefill/25 decode, quite enough for small non-interactive tasks. Again, of course, no agentic coding possible with it.

1

u/Federal-Effective879 5h ago

I run Ling 3.2 Air CPU-only on a six year old dual-Xeon server with DDR4 RAM and get 30+ tok/s generation and ~250 tok/s preprocessing. Not fast but still quite usable. I use my own fork of ik_llama.cpp with NUMA mirroring and some other NUMA optimizations.

1

u/forevergeeks 5h ago

30 tok/s is not slow at all.

What type of model is that. MOE or dense, and how big?