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.
1 parent 1a6a102 commit d0a27d6Copy full SHA for d0a27d6
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