Skip to content

Commit 2810f77

Browse files
ggerganovNexesenex
authored andcommitted
llama : fix compile warning (ggml-org#8304)
1 parent 0b67eef commit 2810f77

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
@@ -7433,7 +7433,7 @@ static bool llm_load_tensors(
74337433

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

7436-
if (i < hparams.n_layer_dense_lead) {
7436+
if (i < (int) hparams.n_layer_dense_lead) {
74377437
layer.ffn_gate = ml.create_tensor(ctx_split, tn(LLM_TENSOR_FFN_GATE, "weight", i), {n_embd, n_ff});
74387438
layer.ffn_down = ml.create_tensor(ctx_split, tn(LLM_TENSOR_FFN_DOWN, "weight", i), { n_ff, n_embd});
74397439
layer.ffn_up = ml.create_tensor(ctx_split, tn(LLM_TENSOR_FFN_UP, "weight", i), {n_embd, n_ff});

0 commit comments

Comments
 (0)