From f15b3338c9f3c6a4a93c652cb2b0295510fc68e5 Mon Sep 17 00:00:00 2001 From: Mick Date: Wed, 18 Mar 2026 10:09:50 +0800 Subject: [PATCH] Revert "[Bugfix] Fix GLM-4.6V vision regression in glm4v_moe and glm_ocr" (#20740) --- python/sglang/srt/models/glm4v_moe.py | 3 --- python/sglang/srt/models/glm_ocr.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/python/sglang/srt/models/glm4v_moe.py b/python/sglang/srt/models/glm4v_moe.py index 0e77d5b3b..324de18b4 100644 --- a/python/sglang/srt/models/glm4v_moe.py +++ b/python/sglang/srt/models/glm4v_moe.py @@ -281,8 +281,5 @@ class Glm4vMoeForConditionalGeneration(Glm4vForConditionalGeneration): else: logger.warning(f"Parameter {name} not found in params_dict") - if not is_nextn: - self.visual.patch_embed.copy_conv3d_weight_to_linear() - EntryClass = [Glm4vMoeForConditionalGeneration] diff --git a/python/sglang/srt/models/glm_ocr.py b/python/sglang/srt/models/glm_ocr.py index ce1d300ab..c2f4adc4c 100644 --- a/python/sglang/srt/models/glm_ocr.py +++ b/python/sglang/srt/models/glm_ocr.py @@ -431,8 +431,5 @@ class GlmOcrForConditionalGeneration(Glm4vForConditionalGeneration): ) weight_loader(param, loaded_weight) - if not is_nextn: - self.visual.patch_embed.copy_conv3d_weight_to_linear() - EntryClass = [GlmOcrForConditionalGeneration]