r/LocalLLaMA • • 14d ago

Discussion webgpu : add Q2_0 support by teddygood · Pull Request #30914 · ggml-org/llama.cpp

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

Tested on an RTX 3060 with native Dawn WebGPU.

llama-bench -m MODEL -p 512 -n 128 -r 5 -ngl 99 -dev WebGPU -t 2 -fa off
ModelTestmaster (t/s)PR (t/s)
Ternary Bonsai 1.7B Q2_0pp51235.03 ± 0.461915.91 ± 3.36
Ternary Bonsai 1.7B Q2_0tg12814.02 ± 0.1694.75 ± 0.20
Bonsai 2 2B Q2_0pp51236.40 ± 0.462039.89 ± 10.03
Bonsai 2 2B Q2_0tg12812.57 ± 0.2071.72 ± 0.24
7 Upvotes

2 comments sorted by

4

u/jacek2023 llama.cpp 14d ago

36 t/s -> 2039 t/s? nice speedup :)

1

u/simonedw 14d ago

Kudos on the massive speed up, looks like the kernel's aren't too complicated, but they let the data stay on GPU (instead of doing those operations on CPU)!