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

llama : fix quantization of shared token_embd #5944

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

compilade
Copy link
Collaborator

Previously, token_embd.weight was quantized like output.weight when the model architecture did not contain output.weight at all.

This did not work properly for models with an optional output.weight tensor.

Now, the presence of output.weight is checked and its absence is assumed to mean that token_embd.weight should be quantized in the same way as output.weight would have been.

@ggerganov ggerganov merged commit 515f7d0 into ggerganov:master Mar 8, 2024
54 of 59 checks passed
hazelnutcloud pushed a commit to hazelnutcloud/llama.cpp that referenced this pull request Mar 10, 2024
NeoZhangJianyu pushed a commit to NeoZhangJianyu/llama.cpp that referenced this pull request Mar 12, 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.

2 participants