Skip to content

llama : fix quantization of shared token_embd#5944

Merged
ggerganov merged 1 commit intoggml-org:masterfrom
compilade:quantize-fix-shared-tok-embd
Mar 8, 2024
Merged

llama : fix quantization of shared token_embd#5944
ggerganov merged 1 commit intoggml-org:masterfrom
compilade:quantize-fix-shared-tok-embd

Conversation

@compilade
Copy link
Copy Markdown
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 ggml-org:master Mar 8, 2024
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
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
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