Repository navigation
vulkan: optimize RMS_NORM_MUL_ROPE loop control - #31149
Merged
ggerganov merged 2 commits intoNov 20, 2026
Merged
Conversation
SG-Amadeus
marked this pull request as ready for review
October 27, 2026 13:45
Contributor
|
There are a lot of different rope sizes in different models. Can you do broader perf testing? |
Contributor
Author
|
Per-op latency change
End-to-end throughput improvement
|
0cc4m
approved these changes
Nov 19, 2026
Kidplayer666
pushed a commit
to Kidplayer666/llama.cpp
that referenced
this pull request
Nov 20, 2026
Annieren
pushed a commit
to Annieren/llama.cpp-upstream
that referenced
this pull request
Nov 23, 2026
Nindaleth
pushed a commit
to Nindaleth/llama.cpp
that referenced
this pull request
Nov 26, 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
The RoPE-fused path shares the loop-unrolling dispatch of
rms_norm, which may be less efficient with its larger shader body.This PR replaces the multi-call-site dispatch with a single call and row-width-bounded loops for the fused path.
Performance
Tested on an NVIDIA GeForce RTX 5070 Ti 16 GB with Vulkan on Windows.
Requirements