Skip to content

Commit 061c77c

Browse files
ggerganovNexesenex
authored andcommitted
llama : fix compile warning (ggml-org#8304)
1 parent be8aafa commit 061c77c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7419,7 +7419,7 @@ static bool llm_load_tensors(
74197419

74207420
layer.ffn_norm = ml.create_tensor(ctx_layer, tn(LLM_TENSOR_FFN_NORM, "weight", i), {n_embd});
74217421

7422-
if ((uint32_t) i < hparams.n_layer_dense_lead) {
7422+
if (i < (int) hparams.n_layer_dense_lead) {
74237423
layer.ffn_gate = ml.create_tensor(ctx_split, tn(LLM_TENSOR_FFN_GATE, "weight", i), {n_embd, n_ff});
74247424
layer.ffn_down = ml.create_tensor(ctx_split, tn(LLM_TENSOR_FFN_DOWN, "weight", i), { n_ff, n_embd});
74257425
layer.ffn_up = ml.create_tensor(ctx_split, tn(LLM_TENSOR_FFN_UP, "weight", i), {n_embd, n_ff});

0 commit comments

Comments
 (0)