Skip to content

CUDA: fixed mmvq kernel for bs 2,3,4 and -sm row #5386

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

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

JohannesGaessler
Copy link
Collaborator

Fixes #5383 introduced by #5351 .
The issue is that with -sm row the output buffer on the main GPU is larger than the number of rows of the input buffer to accommodate the results from the other GPUs.
The stride when going from row to row therefore needs to be larger on the main device.
This only matters for batch sizes > 1 and I forgot that -sm layer is now the default when testing.

@JohannesGaessler JohannesGaessler merged commit aa7ab99 into ggml-org:master Feb 7, 2024
jordankanter pushed a commit to jordankanter/llama.cpp that referenced this pull request Mar 13, 2024
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: #5351 breaks --split-mode row with -np >1 on server.cpp for MoE
2 participants