We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dde7748 commit a387e36Copy full SHA for a387e36
src/llama-model.cpp
@@ -8436,7 +8436,7 @@ struct llm_build_ernie4_5_moe : public llm_graph_context {
8436
cb(ffn_inp, "ffn_inp", il);
8437
8438
// 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;
+ 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;
8440
8441
if (!is_moe_layer) {
8442
cur = build_norm(ffn_inp,
0 commit comments