Update src/llama.cpp

Co-authored-by: slaren <slarengh@gmail.com>
This commit is contained in:
pculliton 2024-07-31 11:00:16 -04:00 committed by GitHub
parent 9b4294da9c
commit 36e6685d93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11737,7 +11737,7 @@ struct llm_build_context {
// ref: https://github.com/google/gemma_pytorch/commit/03e657582d17cb5a8617ebf333c1c16f3694670e
switch (model.type) {
case e_model::MODEL_2B: Qcur = ggml_scale(ctx0, Qcur, 1.0f / sqrtf(float(n_embd_head_k))); break;
case e_model::MODEL_2B:
case e_model::MODEL_9B: Qcur = ggml_scale(ctx0, Qcur, 1.0f / sqrtf(float(n_embd_head_k))); break;
case e_model::MODEL_27B: Qcur = ggml_scale(ctx0, Qcur, 1.0f / sqrtf(float(n_embd / n_head))); break;
default: GGML_ABORT("fatal error");