From 4a748b8f15d7e6749145add3f038e7b26c686ed8 Mon Sep 17 00:00:00 2001 From: ddh0 Date: Wed, 11 Mar 2026 18:13:28 -0500 Subject: [PATCH] common : fix --n-cpu-moe, --cpu-moe for models with fused gate + up (#20416) --- common/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common.h b/common/common.h index ffaeefd7c9..c5645bba46 100644 --- a/common/common.h +++ b/common/common.h @@ -926,7 +926,7 @@ const char * const LLM_KV_SPLIT_TENSORS_COUNT = "split.tensors.count"; // MoE utils // -const char * const LLM_FFN_EXPS_REGEX = "\\.ffn_(up|down|gate)_(ch|)exps"; +const char * const LLM_FFN_EXPS_REGEX = "\\.ffn_(up|down|gate|gate_up)_(ch|)exps"; inline std::string llm_ffn_exps_block_regex(int idx) { return string_format("blk\\.%d%s", idx, LLM_FFN_EXPS_REGEX);