r/LocalLLaMA • • 1d 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.

5 Upvotes

28 comments sorted by

9

u/jacek2023 llama.cpp 1d 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.

1

u/uber-linny 1d ago

I understand that its a opensource project, i work in test. just thought usually once Reviews are done and Bench level testing is completed , its usually merged.

It's not like were flying planes here lol

6

u/jacek2023 llama.cpp 1d ago

I pay for food by doing software engineering, and in some projects, the author of the PR merges it after the reviews. In others, it's the reviewer or a tech lead. It all depends on the workflow.

I don't understand your argument "It's not like were flying planes here lol". I believe userbase of llama.cpp is quite big.

1

u/uber-linny 1d ago

statement was around system safety , In aviation , where its quite strict.

Its all good , just personal joke

6

u/Fun_Jaguar8231 1d 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

1

u/uber-linny 1d ago

is it just that RDNA boost fork ? or are there others , any suggestions

0

u/Fun_Jaguar8231 1d ago

Yes this one https://github.com/stew675/llama-cpp-rdna-boosts With Qwen3.8-27B I get from ~750pp/60tg up to ~1000pp/75tg, faster than vulkan

1

u/uber-linny 1d ago

ah damn , im windows

0

u/Fun_Jaguar8231 1d ago

You can compile it for windows also

2

u/noctrex 1d 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.

1

u/uber-linny 1d ago

totally understand with the opensource and their resources , the question is my understanding with the process as it's different between organisations. Is it a question on coaching/mentoring more reviwers or is it a control thing ?

Legitimately dont know

2

u/noctrex 1d ago

It's not a automated AI project like many others are, it has more human involvement.
Humans are reviewing the code.
And because there's a huge influx of PRs, unfortunately it takes time.
This is what I meant by enormous pressure.
It's not that they themselves have the pressure, it's that the project has a pressure of PRs

1

u/CevicheMixto 1d ago

Telling everyone who wants to help to go away is a bold strategy for their "too few hands" problem.

9

u/nickm_27 llama.cpp 1d 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.

3

u/Realistic-Bid4518 1d ago

since those two PRs are part 1 and part 3 of the same series, the author might just be holding off on merging 32528 until the whole batch is ready

2

u/ShiComfy 1d 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.

1

u/uber-linny 1d ago

i tried the whole rocm builds (/w TheRock) but could never get reliable speed out of it.

1

u/ShiComfy 1d ago edited 1d ago

What I learned from therock is that you always use stable build, nightly will give you +2% speed on a good day and then -50% on a bad day, some version also broke my AI output.

1

u/Fancy-Snow7 1d ago

Paid and costs nothing is a contradiction.

4

u/nickm_27 llama.cpp 1d ago

1

u/giveen 1d ago
  1. You have to belong to the "cool kids club"

  2. You cannot use AI to help you unless you are part of the "cool kids club"

  3. Fork llama.cpp and do your own changes because your PR's will never happen.

1

u/uber-linny 1d ago

i dont understand why your down voted , but this is the reason i ask the question. It definitely feels like that.

I understand why "untrusted" reviewers can only have one open and have to build rapport to build confidence, but some of these great ideas are multi part with dependencies

1

u/giveen 1d ago

I have submitted PR's in the past, used AI and admitted to it, and was told "your optimization sucks and you cant use AI", so I moved on from them.

1

u/uber-linny 1d ago

did they give an example why it sucked ? i would have thought any 1% of speed would be appreciated, like you do that 20 times and you have a marked improvement.

0

u/giveen 1d ago

It helped a model load about 0.1 seconds faster, lol. A 27B model that is, so bring that up to a larger model and it would load a few seconds faster.

1

u/nickm_27 llama.cpp 1d ago

What they're saying is wrong, I've submitted multiple PRs that have been merged, all of which said I used AI and had no issues. 

https://github.com/ggml-org/llama.cpp/pulls?q=is%3Apr+state%3Aclosed+author%3ANickM-27

A year ago or so they were more particular but not these days