r/IntelArc • u/Minute_Laugh8065 • Oct 17 '26
Benchmark B580: up to 3x faster prompts and 2.6x faster long-context generation in llama.cpp (SYCL) - sent to Intel for upstreaming
I've been working on making llama.cpp faster on Arc B580 (SYCL backend). Three changes are done, tested on current llama.cpp master, and I've sent them to Intel's SYCL maintainer to upstream:
- XMX flash attention for a quantized KV cache - faster generation at long context
- Prompt processing on XMX in the default (fp32) build - set GGML_SYCL_DYNAMIC_PRECISION=BF16
- A faster GATED_DELTA_NET kernel for Qwen3.5-style models
B580 numbers (llama-bench, tokens/s, master -> mine):
Long-context generation (q4_0 KV cache):
- Llama 3.1 8B @ 64K: 11.8 -> 31.3
- Qwen3-14B @ 32K (q8_0 KV): 6.8 -> 22.0
- Gemma 4 12B @ 64K: 22.4 -> 40.6
Prompt processing (pp512, default build -> BF16):
- Qwen3.5-9B: 816 -> 2190
- Qwen3-14B: 455 -> 1456
- Gemma 4 12B Q4_0: 397 -> 1360
Perplexity is unchanged and llama.cpp's own test suite shows no new failures.
Branches (on my fork until they're merged): https://github.com/Torchit1/llama.cpp/branches (sycl-fa-q4-xmx, sycl-xmx-prompt-gemm, sycl-gdn-blocked)
I tested everything on my own B580.
Anyone on a B570, B70 or Lunar Lake keen to try it?
8
u/CompellingBytes Oct 17 '26
I'm making a couple of videos where I benchmark the B580 and MOEs with SYCL Vulkan and OpenVINO. I might give work with it when its upstreamed.
3
u/Maxious Oct 19 '26
Gave this a go with single and dual B60;
Prompt processing (pp512 / pp4096, single card)
The ratios reproduce well: 3.62x / 3.37x / 2.81x here against 3.43x / 3.20x / 2.68x in the post.
Long-context generation with a quantised KV cache (tg128, single card)
Dual card: 30B-A3B MoE fully resident, layer split, q8_0 KV (tg128 / pp)
Two things worth noting. The long-context change still pays off in generation when the model is
split across two cards, growing with depth. And with 24 GB per card a 30B-A3B at Q4_K_M stays
resident with `-ncmoe 0`, so the "push experts to the CPU" tax does not apply - which is the case
that could not be tested on a 12 GB card.
GATED_DELTA_NET: real, but only on one of the two hybrid architectures
2
u/WizardlyBump17 Arc B580 Oct 17 '26
could you link the pull request? I couldnt find it
2
u/Metal_Blaster_is_BIS Arc B70 Oct 17 '26 edited Oct 17 '26
Seems super interesting how would I go about installing this into https://github.com/thomas9120/LLama-GUI
EDIT: Nvm figured it out. Will test later first glance it seems to be quite a bit quicker but thats just eyeballing it.
1
u/alokstheman84 Oct 17 '26
This is great, looks promisin! I'm interested in reproducing your results on my system with B580. Which branch should I start with? Running something like Qwen3.6-35B-A3B or the newer miniCPM MoE and getting better performance would be a dream!
1
u/Doct0r0710 Oct 17 '26 edited Oct 17 '26
I got my second B580 yesterday, spent the whole day and night trying to get the most out of them. I'm running Qwen 3.8 27b Q4_K_M (From AtomicChat), and usually test with a PP @ 32768. Best I could get out of Vulkan was ~460t/s, yours (whatever build is under the releases thing) gets ~800t/s with the same settings. Holy shit.
Settings I used:
llama-server --jinja -c 100000 -m ../models/Qwen3.8-27B-AD-Q4_K_M.gguf --temp 1.0 --top-p 0.95 --repeat-penalty 1.0 --top-k 20 --presence-penalty 0.0 --min-p 0 -fa on --chat-template-kwargs "{\"preserve_thinking\": true, \"reasoning_effort\": \"medium\"}" -ngl 999 --alias qwen27b --split-mode layer -np 1 --load-mode none --reasoning-preserve -b 2048 -ub 1024 --threads 14 -ctv q8_0 -ctk q8_0 -fit off1
u/depressed_kiddo_o Oct 17 '26
Does this gonna work on arc a series? Like a770?
1
u/valarauca14 Oct 18 '26
Don't set a fixed value at compile time, make it dynamic on load time -> https://github.com/valarauca/llama.cpp/pull/1
1
u/Fun-Personality-2248 Oct 20 '26
u/Minute_Laugh8065
It's great!
Would you like creating PRs to llama.cpp or you hope others help upstream them when they are ready?
You could create an issue for the upstream request. We will handle it.
It's better to provide the cmd to test the perf increase in the issue.
So we could verify it locally when upstream.
Thank you! :)
1
u/Strict-Elevator9352 17d ago
Nice
1
u/Glittering-Deal-3781 Oct 19 '26
I will try to find time to set it up on my B70. I will ask it to write Crysis ;)
0
u/signalzz Oct 21 '26
u/Minute_Laugh8065 thanks for your great work !
Have you seen this project ? https://github.com/Niko1221/Strata
Do you think your stuff can be merged to their side ?
-2
u/Ryanasd Arc A770 Oct 17 '26
Man if only the gaming side of things was as good as the AI improvements too lol