Skip to content

Commit a387e36

Browse files
committed
Add unit32 cast for Linux builds
1 parent dde7748 commit a387e36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8436,7 +8436,7 @@ struct llm_build_ernie4_5_moe : public llm_graph_context {
84368436
cb(ffn_inp, "ffn_inp", il);
84378437

84388438
// feed-forward network
8439-
bool is_moe_layer = arch == LLM_ARCH_ERNIE4_5_MOE && hparams.n_moe_layer_step > 0 && il >= hparams.n_moe_layer_step;
8439+
bool is_moe_layer = arch == LLM_ARCH_ERNIE4_5_MOE && hparams.n_moe_layer_step > 0 && static_cast<uint32_t>(il) >= hparams.n_moe_layer_step;
84408440

84418441
if (!is_moe_layer) {
84428442
cur = build_norm(ffn_inp,

0 commit comments

Comments
 (0)