r/LocalLLaMA • • 3d ago

Discussion Vulkan Boost for Inkling 2 Mini - vulkan : support non-contiguous src in SCALE by Revertron · Pull Request #32735 · ggml-org/llama.cpp

https://github.com/ggml-org/llama.cpp/pull/32735

Used Inkling-2-Mini-UD-Q8_K_XL.gguf from Unsloth repo (from Mainline_Support folder) on my Radeon AI PRO R9700.

testbefore (b019be0c, master)after (0ea4ffd0, fix)change
pp512507.3 +/- 5.31604.8 +/- 7.83.2x
tg12819.1 +/- 2.653.8 +/- 0.22.8x
pp512 @ d16384388.1 +/- 4.0892.9 +/- 28.62.3x
tg128 @ d1638418.9 +/- 0.447.8 +/- 0.62.5x

Tested with llama-bench -ngl 99 -fa 1 -ctk q8_0 -ctv q8_0 -p 512 -n 128 -d 0,16384 -r 3.

8GB VRAM Folks, what t/s are you getting with this model?

80 Upvotes

17 comments sorted by

5

u/Kononnable 2d ago edited 2d ago

RX 6600 (RDNA 2, 8GB)
Main problem for this card for now are log lines like

sched_reserve: Vulkan0 compute buffer size = 8945.34 MiB

#32740 lowers that size by ~800MiB, but it still looks wrong. I didn't spend time/tokens to see what is the problem and how much of it is hardware specific yet.

2

u/Galactic_Neighbour 2d ago

I'm also on RDNA 2. Are there any optimized settings or forks for our GPUs? I mean not just for Inkling, but also in general. It's so hard to find information on this.

2

u/Kononnable 1d ago

There is no single set of settings to fit all. For more recent/popular cards there is much more info, or even a dedicated engines, for old cards there is a lot of tinkering. It also often depends on the model (at least for small VRAM cards - less memory headroom means you often sacrifice speed to gain something else).

Anyway, for me things that were most noticeable were:
- building for native cpu

- draft-mtp (for some scenarios - it takes additional vram)

- moe-cache and `scripts/moe-cache-tune.py` (again, some scenarios because of vram)

1

u/LippyBumblebutt 2d ago

Weired thing is, it tells me 6000 compute buffer, but unaccounted -3300?? On ROCm the compute buffer is only 2000 for me (with +400 unaccounted) but with the same commandline, vulkan fits more context compared to ROCm...

10

u/Opening-Highway-3546 2d ago

That is amazing tbh. Testes it on my 9060 XT 16 GB and it doubled speed. Thank you. Any further speed ups possible?

1

u/mailto_devnull llama.cpp 2d ago

I'm confused, r9700 has 32GB VRAM... Not 8?

The token generation also seems disappointing. Can hit 50 on 27B, and you're telling me you get 18? Yikes...

3

u/pmttyji 2d ago

I'm confused, r9700 has 32GB VRAM... Not 8?

Last line is just my question. I have a 8GB VRAM laptop & I do run Q4 of 30B MOE models(Ex: Qwen3.6-35B-A3B, Gemma-4-26B-A4B). Some others 8GB VRAM folks do the same so asking about experience of this model with same 8GB VRAM.

The token generation also seems disappointing. Can hit 50 on 27B, and you're telling me you get 18? Yikes...

As I mentioned in other comments, there're more open PRs so optimizations coming.

1

u/mailto_devnull llama.cpp 2d ago

Ah, got it, thanks for clarifying!

Looks like I'll wait a week for some of these optimizations to land.

2

u/sentakuhm91 2d ago

i downloaded latest PR and still getting:

./llama-bench -m /Games/Models/Inkling-2-Mini-UD-Q4_K_XL/Inkling-2-Mini-UD-Q4_K_XL.gguf -ngl 99 -fa 1 -ctk q8_0 -ctv q8_0 -p 512 -
n 128 -d 0,16384 -r 3
load_backend: loaded RPC backend from /home/sentaku/Downloads/Compressed/llama-b12628/libggml-rpc.so
WARNING: radv is not a conformant Vulkan implementation, testing use only.
ggml_vulkan: Found 1 Vulkan devices:
ggml_vulkan: 0 = AMD Radeon RX 9070 XT (RADV GFX1201) (radv) | uma: 0 | rebar: 1 | fp16: dot2 | bf16: 1 | fp4: 0 | warp size: 64 | shared memory: 65536 | int dot: 1 | matrix cores: KHR_coopmat
load_backend: loaded Vulkan backend from /home/sentaku/Downloads/Compressed/llama-b12628/libggml-vulkan.so
load_backend: loaded CPU backend from /home/sentaku/Downloads/Compressed/llama-b12628/libggml-cpu-zen4.so
| model                          |       size |     params | backend    | ngl | type_k | type_v |  fa |            test |                  t/s |
| ------------------------------ | ---------: | ---------: | ---------- | --: | -----: | -----: | --: | --------------: | -------------------: |
llama_model_load: error loading model: check_tensor_dims: tensor 'blk.24.attn_q.weight' not found
llama_model_load_from_file_impl: failed to load model
llama_bench: error: failed to load model '/Games/Models/Inkling-2-Mini-UD-Q4_K_XL/Inkling-2-Mini-UD-Q4_K_XL.gguf'

2

u/Aggravating-Push-207 2d ago

20 tok/s tg and 200 tok/s pp :(

1

u/Poprouter 2d ago

nice jump on the 9700, 3.2x on prefill is real. the tapering at d16384 reads like the fix mostly helps short turns rather than long context prefill.

1

u/Galactic_Neighbour 2d ago

Should I use the mainline Unsloth quant or the one from GGML? They have something called IQ4_NL, I've never seen a quant named like that before, but it seems to be about the same size as Unsloth's Q4_K_XL. I've seen people use both. I'm not sure which one to choose.

There are also multiple uncensored versions, but I'm guessing it's better to just download a lora.

1

u/DANGERCAT9000 2d ago

I've been running a version of this patch that someone recommended on HN on Friday, it's a huge improvement for vulkan users.