Skip to content

Commit 737a50e

Browse files
committed
fix ubuntu compile
1 parent 2a0a81a commit 737a50e

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
@@ -878,8 +878,8 @@ void llama_model::load_hparams(llama_model_loader & ml) {
878878
}
879879

880880
hparams.f_attention_scale = type == LLM_TYPE_27B
881-
? 1.0f / std::sqrtf(float(hparams.n_embd / hparams.n_head(0)))
882-
: 1.0f / std::sqrtf(float(hparams.n_embd_head_k));
881+
? 1.0f / std::sqrt(float(hparams.n_embd / hparams.n_head(0)))
882+
: 1.0f / std::sqrt(float(hparams.n_embd_head_k));
883883
} break;
884884
case LLM_ARCH_STARCODER2:
885885
{

0 commit comments

Comments
 (0)