-
Notifications
You must be signed in to change notification settings - Fork 13.1k
mtmd: more optimized build_rope_2d #16126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Tests passed on Metal backend:
|
Also passed on CUDA backend:
|
Hmmm, this breaks Pixtral at least, it's seeing nonsense. |
@CISC which backend you're using? for now I cannot test pixtral on CUDA |
possibly CUDA as this PR also breaks Pixtral 12B for me, RTX 3060, CUDA backend Failed cases
|
Yes, CUDA. Edit: it's broken on CPU too, so not a backend bug I think. |
ggml_row_size(cur->type, n_dim*n_head), | ||
0); | ||
first = ggml_rope_ext( | ||
cur = ggml_rope_ext( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this is the problem, you're creating a new tensor with only the first half RoPEd.
Unfortunately I don't think you can just inplace here either as you'll mess up the original tensor.
Ref discussion: #16095 (comment)
Also add test case in
test-backend-ops