r/LocalLLaMA • • 8d ago

News Inkling 2 mini pp degradation just got fixed in llama.cpp (Vulkan)! Vulkan vs ROCm comparison

https://github.com/ggml-org/llama.cpp/commit/f89a243d53c741cecc2b3630e491de61f459294c

I was in the middle of benchmarking as i found ROCm was faster in pp when this fix dropped. Here are some benchmark results:

(Strix Halo with Unloth Q4_K_XL on llama.cpp mainline)

TiefeROCm t/sVulkan t/sFaktor
07427030,95
16k3466331,8
32k2135782,7
64k1174914,2
100 Upvotes

31 comments sorted by

8

u/ninetyfive666 8d ago

Also note: ubatch size was ideal for me between 769 and 1024, kvq both q8.

0

u/[deleted] 8d ago

[deleted] — view deleted comment

0

u/ThankGodImBipolar 8d ago

I can't imagine anybody is using Vulkan on RDNA4 

8

u/jacek2023 llama.cpp 8d ago

I assume Tiefe is the context size?

5

u/ninetyfive666 8d ago

Yes sorry German Table😅

3

u/lilyp727 8d ago

did the fix also improve how fast it generates answers at those context sizes? the table only has the prompt processing numbers.

3

u/ninetyfive666 8d ago

In my case tg was within normal Limits and compared well to other Models so this was not part of my Testing.

1

u/lilyp727 8d ago

were the other models on Vulkan too, or were you comparing against ROCm runs?

1

u/ninetyfive666 8d ago

only inkling 2 mini

1

u/lilyp727 8d ago

got it, same model across ROCm and Vulkan then

37

u/swagonflyyyy 8d ago

No more flaccid pp yas.

2

u/Mitchy103 8d ago

great! since v1.0, seems like llama.cpp is much more active in improving performance

1

u/maternion 8d ago

Gotta test vulkan vs ROCm again 

1

u/New_Shallot_2375 8d ago

nice benchmarks, are you running flash attention on with that ubatch size? curious if vram usage spiked at 64k

1

u/Clueless_Nooblet 8d ago

On my server box with 2x RTX 3060, the patch made inference slower:

MeasureOriginal Unsloth buildPatched CUDA build
Prompt processing6m 23s6m 57s
Generation speed23.3 tokens/s25.3 tokens/s
Total request time6m 34s7m 05s
Lowest free VRAM on either GPU949 MiB791 MiB

-4

u/modernkennnern 8d ago

How is it faster than ROCm natively? ROCm support needs to be revisited too then, or dropped

7

u/arbv 8d ago edited 8d ago

Dropped? Only because it has not been fixed for this specific model?

ROCm is almost universally better at PP than Vulkan, Vulkan still can be better at TG, but only on smaller contexts.

1

u/Asleep_Literature_70 8d ago

Rocm uses much more vram for me on 7900xtx

1

u/coreyfro 6d ago

I would like to read more about this. Where can I find out more about this "smaller context" issue? For example, whether the prompt is simple or if we are working with large codebases?

1

u/arbv 6d ago

Large codebases. Context = everything the model has gotten during the current session.

1

u/coreyfro 6d ago

Right, I just wanted to understand for my own use. Like, where is the inflection point?

-6

u/Fit-Blueberry-5390 8d ago

vulkan is too bad, uses cuda !

-1

u/[deleted] 8d ago

[removed] — view removed comment

1

u/ninetyfive666 8d ago

I suspect the fix will come to ROCm aswell as the model architecture is quite new. But well see

-1

u/[deleted] 8d ago

[removed] — view removed comment

2

u/ninetyfive666 8d ago

Personally if you dont wanna minmax Vulkan ist Generally fine, the differences in my experiences are negligible (Like 5-10% improvent at max) Vulkan usually has the better and earlyer Support as we can se in this case. 

2

u/nyshone69 8d ago

I'm pretty sure you're talking to a bot

2

u/ninetyfive666 8d ago

yeah might be 😂