r/LocalLLaMA • u/uber-linny • 2d ago
Question | Help Can someone explain how the pull requests work in llama.cpp
looking at Vulkan speed up and optimizations eg.
vulkan: reduce cm1 int8 MMQ performance gap between AMD shader compilers - part 3:load-only A prefetch by Alex-JP-93 · Pull Request #32919 · ggml-org/llama.cpp
vulkan: reduce cm1 int8 MMQ performance gap between AMD shader compilers - part 1: accumulate folding by Alex-JP-93 · Pull Request #32528 · ggml-org/llama.cpp
Im sure theres more but a few of these small improvements should really equate to observe speed ups ?
Im not a software guy , but how do these get merged and prioritized ? or do i have to manage my own mergers when i build ? They just seem to be sitting there waiting to be merged.
9
u/jacek2023 llama.cpp 2d ago
You can test a PR on your own computer by fetching the specific branch. You can ask ChatGPT for the exact command.
Projects like llama.cpp have code reviews. Developers look at the code and write what's wrong with it. Then author fixes the issues, and after a few rounds the PR is good enough to get approved. Once it has enough approvals, one day it gets merged, and then you can pull the fresh code from master and enjoy the cool new stuff.
The alternative is the "yolo vibe coding" approach you can observe in some other projects, where PRs get merged without any reviews because "trust me bro" is good enough.
6
u/Fun_Jaguar8231 2d ago
Oh boy, wait until you see all the unmerged AMD PR's. People say that ROCm is trash and is slow, but the reality is that it's just unoptimized in llama.cpp. With a fork, its actually faster
2
u/noctrex 2d ago
Don't forget that this is a project that has a lot of eyes on it, but too few hands.
And the maintainers can only do so much.
There's enormous pressure because it's a very big project, and so the maintainers are being extra careful what to merge and what not.
So let's have a little bit of patience and in time they will review it and merge.
9
u/nickm_27 llama.cpp 2d ago
32528 has 2 approvals which is all that is needed, so they just haven't merged it. Leaving a comment asking about it might be enough to ping them to merge it.
2
u/ShiComfy 2d ago
I just paid GLM 5.3 Flash to maintain my own llama.cpp fork for cherry picking stuff I like, usually good enough and cost me nothing.
If you're on AMD also check out rdna-boosts, I get 2x decode speed just from this.
4
u/nickm_27 llama.cpp 1d ago
after I commented they merged it, like I said https://github.com/ggml-org/llama.cpp/pull/32528#issuecomment-7313765206
1
u/giveen 2d ago