From 1b659bcb088fd303ee472c0720eeb1a3797cffa1 Mon Sep 17 00:00:00 2001 From: Frank Minors <59649479+FrankMinions@users.noreply.github.com> Date: Tue, 17 Feb 2026 03:50:39 +0800 Subject: [PATCH] Fix GLM-5 fused shared expert (#18804) Co-authored-by: FrankMinions Co-authored-by: Brayden Zhong Co-authored-by: Kangyan-Zhou --- python/sglang/srt/models/glm4_moe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/sglang/srt/models/glm4_moe.py b/python/sglang/srt/models/glm4_moe.py index e3eeb7d10..db8c1c7ce 100644 --- a/python/sglang/srt/models/glm4_moe.py +++ b/python/sglang/srt/models/glm4_moe.py @@ -1281,7 +1281,8 @@ class Glm4MoeForCausalLM(nn.Module): class GlmMoeDsaForCausalLM(DeepseekV2ForCausalLM): - pass + def determine_num_fused_shared_experts(self): + super().determine_num_fused_shared_experts("GlmMoeDsaForCausalLM") EntryClass = [Glm4MoeForCausalLM, GlmMoeDsaForCausalLM]