Repository navigation
Vulkan: port Inkling 2 Mini fusions from CUDA (#33060) – +30% pp / +21% tg on Radeon 780M #33183
Replies: 3 comments 1 reply
|
Hello, one thing to sort out before porting. The vengeful180-dot branch is built on b12591 plus PR #32695, and its INKLING.md notes that upstream merged its own looped Inkling 2 support on Nov 21 (#32704) with a different GGUF layout. That's why you had to convert the file. It also means the fork's ops won't apply to master as they are, and each one needs rebasing onto the #32704 graph. Your ablation shows where to start. DEPTH_MIX accounts for most of your prefill gain, and the fork already has a CPU version and test-backend-ops cases for it. llama.cpp's contributing guide asks for both with any new ggml op. A standalone DEPTH_MIX PR against master, with your 780M llama-bench numbers and a perplexity check, would be much easier to review than the whole branch. Your numbers are useful on their own too, since the fork was tuned only on an RX 7900 XT and lists other cards as untested. |
|
Disclosure: This report was prepared with the assistance of the OpenCode "Big Pickle" agent (model Post-merge RDNA2 data point, in case it helps the porting discussion. Hardware: RX 6800 XT (RADV/NAVI21, gfx1030, 16 GiB), Mesa 26.3.1, kernel 7.3.5 Decode ladder (ctx 4096, q8_0 KV):
Above N=6 you start spilling loop-core blocks Prefill/decode vs context (ctx 131072, q4_0 KV, N=8, 512 output tokens):
Before the merge, stock builds on this card fell from ~300 t/s prefill at 2K to ~55–59 t/s at 16K; after #32898 + #33053 there's no cliff through 80K. So on RDNA2 the upstream path already fixes the prefill regression — the fork may still be needed for RDNA3 iGPU, but it isn't the only route. Sizing notes: 131K ctx with q8_0 KV left only 0.10 GiB free (q4_0 halves it). #32966's phantom |
|
Update: the Vulkan port of the #33060 fusions already exists in #33116 (closed, waiting to be split into one PR per fusion). I tested it on the 780M: +26% prefill over master, within 6% of the out-of-tree fork, decode still 13-15% behind. Details and a per-op decode profile are in my comment there: #33116 Also, current master is about 4x slower on the 780M with the GSQ-RCO quants because of #28898 (scaled matmuls fall back to the CPU on Vulkan), see #33263. Written with Claude |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am making this post to report a performance improvement for Inkling-2-Mini on Vulkan on the RDNA3 architecture. With the fork from vengeful180-dot, I got numbers that seem quite good to me on my 780M (iGPU). The goal would be to see how to apply the optimizations already merged for CUDA (#33060) to the Vulkan backend. I put the measured numbers below: compared to master, I gain about 30% in prefill and 21% in token generation (at 16K context: +8% prefill, +23% generation).
Hardware: Ryzen 7 8745HS, Radeon 780M (RADV PHOENIX, Mesa 26.2.7), 32 GB DDR5-5600, Fedora 44
Model: abenzerps Inkling-2-Mini-GSQ-RCO IQ4_XS (fork: same file converted to fork layout)
Settings:
-ngl 99 -fa 1 -ctk q8_0 -ctv q8_0 -ub 512 -p 2048 -n 64 -r 3Fork ablation (each optimization disabled alone, depth 0):
No effect on master:
GGML_VK_MAX_NODES_PER_SUBMIT=1000,expert_weights_norm_eps = 0.Refs: #33060 (CUDA fusions), #32898, fork https://github.com/vengeful180-dot/llama.cpp
Text written by me in French and machine-translated. Benchmarks run by me.
All reactions