r/IntelArc • • 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

Post image

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:

  1. XMX flash attention for a quantized KV cache - faster generation at long context
  2. Prompt processing on XMX in the default (fp32) build - set GGML_SYCL_DYNAMIC_PRECISION=BF16
  3. 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?

99 Upvotes

65 comments sorted by

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.

4

u/Minute_Laugh8065 Oct 17 '26

Nice, looking forward to the videos! If it helps, on my B580 the branches already make a difference on MoE: Qwen3-30B-A3B (Q2_K_S) prompt processing goes 392 -> 1217 t/s on the default SYCL build with GGML_SYCL_DYNAMIC_PRECISION=BF16 (the official fp16 build gets 880), and generation at 16K context goes 35.1 -> 46.3 t/s. You're welcome to test them before they're merged too. Which MoEs are you planning to cover?

1

u/CompellingBytes Oct 17 '26

Qwen 3.6 35B A3B, maybe Gemma 26B A4B. It takes time for me to make videos, and I have requests that I investigate too, so I might not be able to get to this before the its merged.

1

u/Minute_Laugh8065 Oct 17 '26

No worries at all, videos take ages to do properly. Whenever you get to it, merged or not, I'd be keen to see how SYCL, Vulkan and OpenVINO stack up on those MoEs. Which one are you expecting to come out on top?

2

u/Mettes-Modjel Oct 17 '26

yeah definitely worth waiting for the upstream merge before benchmarking imo

2

u/Minute_Laugh8065 Oct 17 '26

Fair point, upstream is where it'll matter for most people. I'm working on getting the branches upstreamed, so hopefully it's not a long wait. Until then the release build is there for anyone who wants to try it early. Are you running a B580 as well?

3

u/Maxious Oct 19 '26

Gave this a go with single and dual B60;

Prompt processing (pp512 / pp4096, single card)

modelstock (default build)stock F16 buildfork default + BF16fork + F16post's B580
gemma-4-12b-it-qat Q4_0346.49 / 344.091251.65 / 1213.041253.60 / 1216.981256.62 / 1218.26397 -> 1360
Qwen3-14B Q4_K_M392.01 / 386.961320.99 / 1262.461322.50 / 1264.211320.62 / 1262.87455 -> 1456
Qwen3.5-9B Q4_K_M706.71 / 706.591989.61 / 2024.701983.50 / 1990.651990.04 / 2030.47816 -> 2190

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)

modelKVd8192d32768d65536
Llama-3.1-8B-Instruct Q4_K_Mq4_042.24 -> 63.93 (1.51x)19.30 -> 48.54 (2.52x)11.22 -> 36.66 (3.27x)
Llama-3.1-8B-Instruct Q4_K_Mq8_044.37 -> 50.63 (1.14x)21.55 -> 30.12 (1.40x)12.78 -> 19.23 (1.50x)
gemma-4-12b-it-qat Q4_0q4_031.76 -> 41.81 (1.32x)26.08 -> 40.72 (1.56x)21.05 -> 39.45 (1.87x)
gemma-4-12b-it-qat Q4_0q8_032.10 -> 39.09 (1.22x)26.68 -> 37.74 (1.41x)21.74 -> 36.36 (1.67x)
Qwen3-14B Q4_K_Mq4_017.25 -> 38.26 (2.22x)6.19 -> 30.73 (4.96x)-
Qwen3.8-27B (qwen35) Q4_K_Mq4_012.89 -> 14.50 (1.12x)9.44 -> 13.92 (1.47x)-

Dual card: 30B-A3B MoE fully resident, layer split, q8_0 KV (tg128 / pp)

testbase-1010fa-q4mmq
Qwen3-30B-A3B Q4_K_M pp512 @ d8192744.84745.63761.94
Qwen3-30B-A3B Q4_K_M pp4096 @ d8192657.72658.09668.43
Qwen3-30B-A3B Q4_K_M pp512 @ d32768495.70495.26500.00
Qwen3-30B-A3B Q4_K_M tg128 @ d819251.1662.56 (1.22x)51.18
Qwen3-30B-A3B Q4_K_M tg128 @ d3276823.2735.43 (1.52x)23.28
Qwen3-30B-A3B Q2_K tg128 @ d819238.1342.67 (1.12x)38.10
Qwen3-30B-A3B Q2_K tg128 @ d3276819.9428.29 (1.42x)19.96

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

modeltestbase-1010gdnratio
Qwen3.8-Flash-Next (qwen4exp A3B, 36 GB, both cards)pp512298.48342.771.15x
samepp2048295.82337.961.14x
samepp4096291.09330.721.14x
Qwen3.8-27B (qwen35, dense hybrid)pp512189.39192.181.01x
samepp4096189.27191.941.01x

1

u/Minute_Laugh8065 Oct 21 '26

Sorry for the slow reply, and thank you, this is a fantastic write-up. Great to see the ratios reproduce on the B60 (slightly better than mine), and the dual-card MoE result is exactly the case I couldn't test on 12 GB. Good catch on GDN too, it makes sense that it helps the Flash-Next MoE more than the dense 27B. These branches are being upstreamed into llama.cpp by the SYCL maintainer. Would you be OK with me linking your results there as an independent check?

2

u/WizardlyBump17 Arc B580 Oct 17 '26

could you link the pull request? I couldnt find it

1

u/Minute_Laugh8065 Oct 17 '26

There isn’t a PR up yet, I’m still working on getting them upstreamed. For now they’re branches on my fork:

- Prompt processing (BF16 route): https://github.com/Torchit1/llama.cpp/tree/sycl-xmx-prompt-gemm

- Long-context attention (q4_0/q8_0 KV): https://github.com/Torchit1/llama.cpp/tree/sycl-fa-q4-xmx

- Qwen 3.5 / delta-net models: https://github.com/Torchit1/llama.cpp/tree/sycl-gdn-blocked

- Q4_0 / Q8_0 prompt speedup (newest): https://github.com/Torchit1/llama.cpp/tree/sycl-xmx-mmq

I’m putting together a single combined branch so you don’t have to pick, should be up soon. What model are you planning to run on your B580?

1

u/WizardlyBump17 Arc B580 Oct 18 '26

I currently run Qwen3.6 35B A3B and I am getting 720t/s, 28t/s on a 119k conversation, with MTP.

I think llama.cpp requires that you dont send big Pull Requests. They seem to prefer that you send multiple Pull Requests, so in your case, one Pull Request per branch. They also limit the amount of Pull Requests per contributor to 1, but you can open multiple ones with draft. I recommend you join the OpenArc discord and ask Neo about it

1

u/Minute_Laugh8065 Oct 18 '26

Thanks, that's really helpful. Yeah, the plan is one PR per branch upstream; the combined branch is just so people can test everything in one build without merging it themselves. I'll check with Neo on the order to send them in. 720 t/s on a 35B A3B is solid. One heads-up: the newest Q4_0/Q8_0 prompt speedup skips the MoE expert layers for now, so on that model you'd mostly see the long-context attention gains. What quant and KV cache type are you running it with?

1

u/WizardlyBump17 Arc B580 Oct 18 '26

i run with kv q8.

services:
  qwen3.6-35b-a3b:
    image: "ghcr.io/ggml-org/llama.cpp:full-intel"
    command: >
      --server
      --host 0.0.0.0 --port 8080
      --metrics
      --model /models/model.gguf
      --alias "Qwen3.6 35B A3B"
      --jinja
      --threads 8
      --ctx-size 262144
      --n-gpu-layers 99 --n-cpu-moe 99
      --batch-size 3650 --ubatch-size 3650
      --load-mode none
      --temperature 0.0 --top-p 0.2 --top-k 20
      --repeat-penalty 1.1
      --cache-ram 0
      --parallel 1
      --spec-type draft-mtp --spec-draft-n-max 3
      --spec-draft-type-k q8_0 --spec-draft-type-v q8_0
      --reasoning-preserve
      --kv-unified
      --ctx-checkpoints 0
      --cache-type-k q8_0 --cache-type-v q8_0
      --log-verbosity 4
    environment:
      GGML_SYCL_XMX_GATHER_TYPES: 0
    volumes:
      - "/home/davi/AI/models/Qwen3.6-35B-A3B-UD-Q5_K_XL.gguf:/models/model.gguf"
    ports:
      - "1235:8080"
    devices:
      - "/dev/dri/renderD128"

1

u/Minute_Laugh8065 Oct 18 '26

Thanks! Since you’re on the stock full-intel image, the q8 KV attention change should be the one that helps you most. On my B580, Qwen3.5 with q8_0 KV at 128K went from 19.5 to 37 t/s generation. Your experts are on the CPU so you’d see less than that, but at 119K a good chunk of each token is attention. Out of curiosity, is GGML_SYCL_XMX_GATHER_TYPES=0 there because the XMX MoE path gave you trouble?

1

u/WizardlyBump17 Arc B580 Oct 18 '26

I decreased my performance, so i disabled it. https://github.com/ggml-org/llama.cpp/issues/30248

1

u/Minute_Laugh8065 Oct 18 '26

Ah, that makes sense, thanks for the link. A 14% PP regression from the grouped path on Q5_K MoE is a good find, and it looks like the 140T folks see the same thing. MoE is next on my list, so I’ll try to reproduce it on my B580 and see if the grouped path can pick the right cases instead of being all-or-nothing. Would you be up for testing a branch on your 35B A3B setup if I get somewhere?

1

u/WizardlyBump17 Arc B580 Oct 18 '26

I am always available

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.

2

u/Minute_Laugh8065 Oct 17 '26

Nice, glad you got it going! If you want a proper number instead of eyeballing it, llama-bench -m yourmodel.gguf -p 512 -n 128 gives you prompt and generation speed side by side, so you can run it on both builds. What model are you running on the B70?

1

u/Metal_Blaster_is_BIS Arc B70 Oct 18 '26

Basic bench marks showed very little difference so I tested on a medium sized context situation

Since Images arent allowed. Fine tune for, Gemma 4 26B Q5ks
Your Fork:
Prompt size:
31,362 tokens
Generated:
660 tokens
avg prompt speed:
2252.6 tok/s
avg gen speed
32 tok/s

Default:
Prompt size:
31,362 tokens
Generated:
660 tokens
avg prompt speed:
1581.2 tok/s
avg gen speed
34.2 tok/s

So speed wise its a pretty good speed boost on the prompt speeds, but generation speed seems unchanged.

Same exact settings. Batch sizes are 2048.

If you need more info or I messed something up lemme know.

2

u/Minute_Laugh8065 Oct 18 '26

Thanks for testing it properly, that’s really useful. The +42% on a 31K prompt lines up with what I see deep into a chat on the B580.

The reason the short bench looked flat is probably that the big gain is opt-in. Set GGML_SYCL_DYNAMIC_PRECISION=BF16 before running it (or build with -DGGML_SYCL_F16=ON). Without it, normal-sized prompts run at stock speed, which I should have made clearer. On the B580 it’s the difference between ~850 and ~3,000 t/s on Llama 3.1 8B Q4_K_M.

The gen drop (34.2 → 32) I haven’t seen on my end, generation was flat in every test I ran, so I’d like to chase that. What KV cache type are you running?

1

u/Metal_Blaster_is_BIS Arc B70 Oct 18 '26

Q8 on both type K and type V.

Yeah set the flag what a crazy speed boost all together god damn. This is some impressive stuff.

Prompt Size: 36,538 tokens
Avg prompt speed: 2253.9 tok/s
Avg generation speed: 37.4 tok/s

2

u/Minute_Laugh8065 Oct 18 '26

Ha, glad it’s working for you! Honestly I’ve only just begun. The combined branch going up today adds another ~2x on Q4_0/Q8_0 prompts on top of what you’re running, and with q8 KV the generation speedup grows the deeper the chat goes (about 2x at 128K on my B580). Your 26B is the MoE one, so you’ll mostly feel the long-context side for now, but MoE is next on my list. What are you using it for at 36K context?

1

u/Metal_Blaster_is_BIS Arc B70 Oct 18 '26

A little of everything, but this one was documentation compilation and research. I have hundreds of .pdf's that I chuck into it to find stuff in regards to aerospace and aviation and use it to compile lists and annotations in regards to systems.

So far Gemma 4 has been my favourite for it since its fast and pretty smart. The prompt was literally just asking how its day was after I fed it a few manuals lol.

(Some of what I have is sensitive-ish docs so im not risking putting them into a frontier)

1

u/Minute_Laugh8065 Oct 18 '26

That’s a perfect use for it, and exactly why I’m keeping it local too. Feeding it whole manuals is basically a prompt-processing benchmark, so that’s where these changes help most. If you ever try the dense Gemma 4 12B QAT Q4_0, it gets the biggest jump from the newest branch (about 2,500 t/s prompt on my B580 vs ~400 stock). How long do the bigger manuals come out in tokens once they’re in?

1

u/Metal_Blaster_is_BIS Arc B70 Oct 18 '26 edited Oct 18 '26

Prompt: 40,579 tokens

Thats for ONE ATA chapter on an old Boeing. So yeah faster the better especially on the clock. Plus other systems manuals lmao.

Heres one for a basic display.
"164,828 prompt + 1,024 reply headroom / 128,000 tokens"

Needless to say I need fuck loads of context lol

https://www.dynoncertified.com/downloads/documentation/general/SkyView_HDX_System_Installation_Manual_Rev_T.pdf

1

u/Minute_Laugh8065 Oct 18 '26

Ha, that’s the dream use case for this. Gemma 4 goes up to 256K natively, so you can bump --ctx-size to 262144 and that manual will fit. I ran Gemma 4 12B at the full 256K on my 12 GB B580 today with q8_0 KV, so your B70 will have room to spare. On my card with the combined branch, a 165K prompt like that should take roughly 3 minutes to read vs about 8 on stock, and generation at that depth was ~2.5x faster too. Do you load the whole manual each time, or split it by chapter?

→ More replies

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!

2

u/Minute_Laugh8065 Oct 17 '26

Thanks! It depends what you want faster:

- prompt processing: sycl-xmx-prompt-gemm, normal SYCL build, run with GGML_SYCL_DYNAMIC_PRECISION=BF16 (that's the one that took Qwen3-30B-A3B from 392 to 1217)

- long-context generation: sycl-fa-q4-xmx, run with -fa on -ctk q8_0 -ctv q8_0

Build: source the oneAPI setvars, then cmake -B build -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx && cmake --build build -j

One heads-up: a 35B-A3B at Q4 is about 20 GB, so on a 12 GB B580 you'd need --n-cpu-moe to push some experts to the CPU, which slows it down a lot. A 30B-A3B at Q2/Q3 fits fully. Would love to see your numbers - what quant are you running?

1

u/alokstheman84 Oct 17 '26

I'm hoping to run Qwen3.6-28B-REAP20-A3B-Q4_K_S.gguf which is ~16GB with ~20 experts on CPU. Since REAP is trimmed, I hope it still works reasonably for my use case. Prompt processing is definitely my priority so will start there and report back!

2

u/Minute_Laugh8065 Oct 17 '26

Sounds good! Two tips for that setup: with experts on the CPU, try -ub 2048 -b 2048 - bigger prompt batches mean fewer CPU->GPU weight copies, which usually helps a lot. And use the default build (no GGML_SYCL_F16) so you can compare with and without GGML_SYCL_DYNAMIC_PRECISION=BF16 on the same binary. Looking forward to the numbers!

1

u/Strict-Elevator9352 18d ago

just stream experts from RAM..

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 off

2

u/Minute_Laugh8065 Oct 17 '26

That's awesome, thanks for testing it properly on two cards! 460 to ~800 t/s at 32K is right about where I'd hope for Qwen 3.8, since most of the gain in that build comes from the long-context attention and delta-net work. One thing worth a try with your setup: -ub 2048 instead of 1024. Bigger prompt batches usually squeeze out a bit more at long context, and with 2x12 GB you should have the room. What are you getting for generation speed at that depth?

1

u/Doct0r0710 Oct 17 '26

'bout 17t/s generation. I'll try with -ub 2048 tomorrow, I tried it today but that put me right over the VRAM limit at 100k context. Might work properly with Q4_0 K/V

2

u/Minute_Laugh8065 Oct 17 '26

Yeah, q4_0 K/V should be the move there. That build’s attention reads the q4_0 cache directly on the XMX units, so it’s not just a memory saving, it was actually faster at long context in my testing (Llama 3.1 8B at 64K went from 11.8 to 31.3 t/s with quantised KV). It also halves the KV size vs q8_0, which should free up the room for -ub 2048 at 100K. Curious what you’re running at 100K context, coding or long documents?

1

u/Doct0r0710 Oct 17 '26

Coding through Opencode. So far I was using an RX 6700 XT and an Intel B580 in conjunction. It worked, but it was very slow (PP at 32768 was ~100, TG was ~5). Surprisingly that was still enough for most of my work, but this is a game changer. I'm almost excited to start working next week

2

u/Minute_Laugh8065 Oct 18 '26

That’s great to hear. Going from ~100 PP to this is exactly the kind of setup I was hoping it’d help. One tip for Opencode: agents rewrite a lot of existing code, so n-gram speculation (--spec-type ngram-mod) is worth turning on. It copies tokens from text already in the context, and on my B580 edits and renames come out several times faster than normal generation. How are you finding it with the agent’s long tool outputs?

1

u/Doct0r0710 Oct 18 '26

Never really had a problem with tool outputs, I mean other than having to wait an eternity until it processes. I dabbled with ngram spec, but going from ~4-5t/s to ~10t/s wasn't really noticable. Haven't had too much time with the Arcs yet, will report back how it goes

1

u/Minute_Laugh8065 Oct 18 '26

That makes sense: with agents the wait is mostly prompt processing, and n-gram only helps generation. A few things that help with long tool outputs: llama-server only re-processes the new part of the conversation if the start hasn't changed, so make sure prompt caching isn't turned off; --cache-reuse 256 helps when the agent edits earlier context a bigger batch: -b 2048 -ub 1024 if you're on the fp32 build, GGML_SYCL_DYNAMIC_PRECISION=BF16 is the switch for the prompt speedup I also just found that K-quant prompt speed was dropping 20–30% after the first reply (agent sessions hit that every turn). I've fixed it and it's going through testing now. What model and quant are you running?

1

u/Doct0r0710 Oct 18 '26

I tried ub 2048, it sightly improved PP (860), but for some reason it massively reduces TG from 17 to 6, even with reduced context sizes (60k). It might be some quirk with dual GPUs, I see in task manager that one of the GPUs Copy indicators is peaking at 100% during generation, although I don't know enough about llama.cpp to know if ub should affect token generation or not. It might be that PCIe bandwidth is lacking between PCIe 4.0 x8 and PCIe 4.0 x4. I'll stick with ub 1024 for now.

2

u/Minute_Laugh8065 Oct 21 '26

Late reply, sorry! That's almost certainly VRAM spilling, not llama.cpp being weird. A bigger -ub means a bigger compute buffer on each card, and if that tips a card over its VRAM, Windows silently spills into shared system memory and pages it over PCIe. That's your Copy engine at 100%, and why the x4 card hurts most. Check Task Manager → GPU → "Shared GPU memory": if it's above ~0 during generation, that's it. -ub 1024 is the right call, or keep 2048 and trim context a bit. Also, I'm starting work on multi-card performance on Arc. What cards are you running? Would you be up for testing a build when it's ready?

1

u/Doct0r0710 Oct 21 '26

Sure thing. I've been running your build for the last couple of days, I'm fighting a bit with VRAM limits, but I think I finally found a good enough balance for my use case. -ub and -b both at 1024, it looses some performance, but it makes it up in context length. -ctk and -ctv both at q4_0. This gives me ~180k usable context on Unsloths Qwen3.8-27B-UD-Q4_K_S. I'm running 2 Arc B580s, very much interested in testing builds when ready. I also saw the "post your results" discussion on Github, will try to make some test to post there too soon-ish.

2

u/Minute_Laugh8065 Oct 21 '26

Awesome, 2× B580 is exactly the setup I'd love data from, since it's the same card as mine doubled. ~180K context on a 27B Q4_K_S across two 12 GB cards is a really nice balance too. When you post in the GitHub discussion, a quick llama-bench (pp512 / tg128) with your exact flags would be perfect. That gives me a baseline before the multi-card changes, so we can see exactly what moves. I'll ping you here when there's a build to try.

1

u/sayweeeaaaoh Oct 18 '26 edited Oct 18 '26

My gaming pc has a b580 and 14600KF w/ 32GB 4000MT/s DDR4, getting around 41 t/s at 100K context and ~700 t/s pp with Qwen3.6-35B-A3B-UD-Q4_K_M.gguf. First time setting this all up so nothing to compare to. I just merged all 3 of the branches before building with docker and the GGML_SYCL_DYNAMIC_PRECISION=BF16 flag. otherwise dont know wtf im doing.

Ubuntu 26.10, used pi agent to make a language learning quiz html game for japanese/korean/arabic as a test, pretty neat.

  -e GGML_SYCL_FA_DEC_DPAS=1 \
  -e GGML_SYCL_T2_W8A8_MIN=1025 \
  -e GGML_SYCL_FA_ONEDNN_MAX_KV=130000 \
  -e LLAMA_ARG_SPEC_DRAFT_UBATCH=512 \
  custom-llama:author-sycl \
  --jinja \
  --temp 0.6 \
  --top-p 0.95 \
  --top-k 20 \
  --model "/models/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf" \
  --ctx-size 131072 \
  -ub 2048 \
  -b 2048 \
  --flash-attn on \
  --cache-type-k q4_0 \
  --cache-type-v q4_0 \
  --n-gpu-layers 99 \
  --n-cpu-moe 32 \
  --spec-type draft-mtp \
  --spec-draft-n-max 1 \
  --threads 14 \
  --threads-batch 14 \
  --metrics \
  --load-mode none

edit - woops meant to reply to the guy asking about 3.6 35B A3B

1

u/Minute_Laugh8065 Oct 18 '26

Nice setup, and 41 t/s at 100K on a B580 with most of the experts on the CPU is solid. One thing: GGML_SYCL_FA_DEC_DPAS, GGML_SYCL_T2_W8A8_MIN and LLAMA_ARG_SPEC_DRAFT_UBATCH are from my Bonsai fork, so they don't do anything on these upstream branches (harmless, you can drop them). The q4_0 KV cache is the one that matters here, it's what the long-context attention change speeds up. Did you get a chance to compare against a plain llama.cpp build at the same 100K?

1

u/depressed_kiddo_o Oct 17 '26

Does this gonna work on arc a series? Like a770?

2

u/Minute_Laugh8065 Oct 17 '26

It should run on an A770, yeah. The parts that are B-series only (the long-context attention kernel) switch themselves off on Alchemist and fall back to the normal path, so you won’t get that speedup, but nothing breaks. The prompt processing gains go through oneDNN, which does support the A-series, so they should help there too, but I haven’t been able to test that myself since I only have a B580. If you give it a go I’d love to know your before/after on prompt processing, what model would you try it with?

1

u/depressed_kiddo_o Oct 18 '26

Qwen 2.5 coder 14b or qwen 3 14b

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/Minute_Laugh8065 Oct 18 '26

Good shout, and you’re right, the opt-in is the biggest source of confusion so far (one person benched it without the flag and saw stock speed). I’ll make it pick BF16 automatically on XMX GPUs at load time and keep the env var as an override. Looks like you went down a similar road in your fork. Did you see any accuracy problems with fp16 on particular quant formats?

1

u/valarauca14 Oct 18 '26

Did you see any accuracy problems with fp16 on particular quant formats?

Yes-ish. While checking the f16 accuracy I first had to make a series of commits to fix mathmatical errors in the IQ & K-quants. Those mathmatical errors were a bigger problem then the real

1

u/Minute_Laugh8065 Oct 18 '26

Ah, that lines up with what I've been seeing. The q2_0 copy and the bf16 sigmoid/hardsigmoid cases show up as intermittent failures in test-backend-ops on stock too, and I've offered to look at those for Intel. Did the Q4_1/Q5 zero-point fixes make a visible difference in perplexity, or were they mostly test-level?

1

u/valarauca14 Oct 18 '26 edited Oct 18 '26

Did the Q4_1/Q5 zero-point fixes make a visible difference in perplexity, or were they mostly test-level?

I was measuring KLD for agreement with the unquant model. My main work horse was Qwen-3-0.6B because the model is tiny and unsloth made every quant under the sun. So I'd blast some tokens through CPU inference, store those, then compare the KLD to the quant/kernel changes (same temp, settings, seed, etc.). In most cases I usually gained 1-2 orders of magnitude. Most were fairly trivial error, failing to account for offsets. I don't remember but a few quants were like 3-4 orders of magnitude off.

I had a clanker sweep every model, I'll have to dig up the log.

and the bf16 sigmoid/hardsigmoid cases show up as intermittent failures in test-backend-ops

:) https://github.com/valarauca/llama.cpp/pull/1/changes/0eee727249fd3448bf93f328affa23ba7ad93567

Yeah I'm pretty sure the xe2-hpg hardware is just fucked, see the commit message

I've offered to look at those for Intel

Do you have contacts at Intel? I've been playing around with getting P2PDMA/direct-storage working on battlemage. I figure loading tensors from NVMe devices & by-passing CPU RAM would be something they're interested in.

1

u/Minute_Laugh8065 Oct 18 '26

Good tip on KLD against a CPU reference. I've been fighting perplexity noise about the same size as the changes I'm testing, so I'm adding it to my runs.

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/Minute_Laugh8065 Oct 20 '26

Thanks! Are you with the Intel SYCL team? Happy to open an issue with the branches and test commands either way.

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 ?

1

u/Minute_Laugh8065 Oct 21 '26

Thanks! Strata's a great project. It has its own engine rather than llama.cpp, so it isn't a straight merge, but the ideas should carry over. Flash-Next is actually where one tester saw +15% prompt speed from my GDN change. I'll have a look at their Intel port. Are you running it on Arc?

-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

2

u/MMORPGDev Oct 17 '26

The gaming driver has greatly improved since the launch of the first A-series GPU

1

u/Strict-Elevator9352 17d ago

if only we can replace the driver ourself