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]