Conversation
Contributor
No. ChatGLM now uses NEOX-style rope with position ids specified. |
Contributor
4739018 to
814d57d
Compare
0b564b0 to
6ebee16
Compare
slaren
reviewed
Jun 2, 2024
ggml-ci
4b1e676 to
ddac1ef
Compare
joeatodd
added a commit
that referenced
this pull request
Jun 13, 2024
As per: #7634 Signed-off-by: Joe Todd <joe.todd@codeplay.com>
4 tasks
6 tasks
Seunghhon
pushed a commit
to Seunghhon/llama.cpp
that referenced
this pull request
Apr 26, 2026
* ggml : unify rope norm/neox (CPU) * ggml : fix compile warning * ggml : remove GLM rope mode ggml-ci * metal : better rope implementation ggml-ci * cuda : better rope implementation ggml-ci * naming : n_orig_ctx -> n_ctx_orig ggml-ci * dev : add reminders to update backends ggml-ci * vulkan : fix ggml_rope_ext() usage * cuda : fix array size + indents ggml-ci
phuongncn
pushed a commit
to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4
that referenced
this pull request
Apr 28, 2026
* ggml : unify rope norm/neox (CPU) * ggml : fix compile warning * ggml : remove GLM rope mode ggml-ci * metal : better rope implementation ggml-ci * cuda : better rope implementation ggml-ci * naming : n_orig_ctx -> n_ctx_orig ggml-ci * dev : add reminders to update backends ggml-ci * vulkan : fix ggml_rope_ext() usage * cuda : fix array size + indents ggml-ci
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.




The RoPE modes NORM and NEOX are technically the same but simply operate on different pairs of dimensions in the head:
However, on
masterthe 2 implementations are quite different due to legacy reasons:This PR will normalize the implementation in the 2 modes to make changes in the future easier.
We also remove support for xPos RoPE (ggml-org/ggml#442) since it does not seem to be used
I've also considered removing the GLM mode, but it seems to be used by ChatGLM (ggml-org/ggml#477)
@li-plus Could you confirm if GLM RoPE is still relevant today?
TODO
n_ctxargumentfreq_factorsn_dimsargument for partial rotationn_orig_ctx->n_ctx_orig