We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c02e67e + d0a27d6 commit 5cf1cc5Copy full SHA for 5cf1cc5
src/llama-model.cpp
@@ -879,8 +879,8 @@ void llama_model::load_hparams(llama_model_loader & ml) {
879
}
880
881
hparams.f_attention_scale = type == LLM_TYPE_27B
882
- ? 1.0f / std::sqrtf(float(hparams.n_embd / hparams.n_head(0)))
883
- : 1.0f / std::sqrtf(float(hparams.n_embd_head_k));
+ ? 1.0f / std::sqrt(float(hparams.n_embd / hparams.n_head(0)))
+ : 1.0f / std::sqrt(float(hparams.n_embd_head_k));
884
} break;
885
case LLM_ARCH_STARCODER2:
886
{
0 commit comments