HIP: MMQ Dispatch config modification - separation of RDNA3, 3.5 from 4 and tune 4. - #26199
Merged
Merged
Conversation
pwilkin
approved these changes
Jul 27, 2026
pwilkin
left a comment
Member
There was a problem hiding this comment.
LGTM, @am17an / @JohannesGaessler ?
am17an
approved these changes
Jul 29, 2026
huaxel
pushed a commit
to huaxel/CachyLLama
that referenced
this pull request
Aug 2, 2026
justinappler
added a commit
to justinappler/llama.cpp-strix-halo
that referenced
this pull request
Aug 3, 2026
…-org#26199) Assisted-by: Claude Opus 5
satindergrewal
pushed a commit
to satindergrewal/llama.cpp
that referenced
this pull request
Aug 12, 2026
thecodacus
pushed a commit
to thecodacus/llama.cpp
that referenced
this pull request
Sep 7, 2026
zbrad
pushed a commit
to zbrad/llama.cpp
that referenced
this pull request
Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This modification adds mmq configurations for host and device for RDNA3 and 3.5 separating them from RDNA4 as well as reconfiguring RDNA4 to be more optimal on real hardware.
I have also found that stream_k true helps a lot for Dense models and hurts MoE models, we should find a way to make MoE vs Dense have different mmq dispatch configurations to increase overall performance per type which I have found greatly improve performance as implied above.
Additional information
Also suggested to do the same in PR: #25940 which I volunteered to do because I already was working on this as it was something I had found as a good starting project.
Keep in mind my RDNA4 tests are on a MinisForum MS-S1 over TB5 with a R9700 inside a razor eGPU TB5 enclosure.
Performance may vary but more likely than not better on a board that has pcie 4.0 / 5.0 x16 vs the pcie 4.0 x4 I have over TB5.
RDNA 3.5 (Radeon 8060S iGPU, Ryzen AI MAX+ 395, gfx1151)
RDNA 4 (Radeon AI PRO R9700, gfx1201)
Requirements