Skip to content

Commit d0a27d6

Browse files
committed
fix ubuntu build, finally
1 parent 1a6a102 commit d0a27d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/llama-model.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,8 @@ void llama_model::load_hparams(llama_model_loader & ml) {
879879
}
880880

881881
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));
882+
? 1.0f / std::sqrt(float(hparams.n_embd / hparams.n_head(0)))
883+
: 1.0f / std::sqrt(float(hparams.n_embd_head_k));
884884
} break;
885885
case LLM_ARCH_STARCODER2:
886886
{

0 commit comments

Comments
 (0)