Skip to content
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

CUDA: fix MMQ stream-k rounding if ne00 % 128 != 0 #8311

Conversation

JohannesGaessler
Copy link
Collaborator

Fixes #8254 . The problem as far as I can tell is that for determining the boundaries between CUDA blocks I implicitly assumed that the ne00/ne10 dimension of the matrices is a multiple of the number of values processed by MMQ in a single iteration (128 in this case). So for deepseek where ne00 is only a multiple of 64 the results were wrong.

@JohannesGaessler JohannesGaessler added the Review Complexity : Medium Generally require more time to grok but manageable by beginner to medium expertise level label Jul 4, 2024
@github-actions github-actions bot added the Nvidia GPU Issues specific to Nvidia GPUs label Jul 4, 2024
Nexesenex added a commit to Nexesenex/croco.cpp that referenced this pull request Jul 5, 2024
Co-Authored-By: Johannes Gäßler <johannesg@5d6.de>
@JohannesGaessler JohannesGaessler merged commit bcefa03 into ggerganov:master Jul 5, 2024
49 checks passed
Nexesenex added a commit to Nexesenex/croco.cpp that referenced this pull request Jul 6, 2024
Co-Authored-By: Johannes Gäßler <johannesg@5d6.de>
Nexesenex added a commit to Nexesenex/croco.cpp that referenced this pull request Jul 11, 2024
Co-Authored-By: Johannes Gäßler <johannesg@5d6.de>
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Jul 13, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Nvidia GPU Issues specific to Nvidia GPUs Review Complexity : Medium Generally require more time to grok but manageable by beginner to medium expertise level
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Failed to load quantizied DeepSeek-V2-Lite-Chat model
2 participants