Skip to content

Hotfix for the prompt being ignored with CUDA #2190

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

Conversation

JohannesGaessler
Copy link
Collaborator

Fixes #2187 . The issue seems to be caused by ggml-org/ggml#359 and ggml-org/ggml#373 . As far as I can tell the logic for broadcasting that was implemented in those PRs is incorrect. It implicitly assumes that the tensors are one-dimensional which discards almost all information from previous layers because the first row of the non-constant tensor gets broadcast across all rows. This PR is a hotfix that simply reverts those changes.

@ggerganov
Copy link
Member

ggerganov commented Jul 12, 2023

I think I just did the same thing in #2191

@JohannesGaessler
Copy link
Collaborator Author

Mostly, but I forgot to revert the non-CUDA changes.

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.

Incoherent output after merging https://github.com/ggerganov/llama.cpp/pull/2183
2 participants