From 8116804e4f6e1bf8b205683b813a71ecbc30170b Mon Sep 17 00:00:00 2001 From: Xinyuan Tong <115166877+JustinTong0323@users.noreply.github.com> Date: Mon, 8 Sep 2025 04:47:14 +0000 Subject: [PATCH] Fix: (glm4v) Add missing field (#10147) --- python/sglang/srt/models/glm4v.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/sglang/srt/models/glm4v.py b/python/sglang/srt/models/glm4v.py index 95c70804f..63c955a72 100644 --- a/python/sglang/srt/models/glm4v.py +++ b/python/sglang/srt/models/glm4v.py @@ -497,6 +497,9 @@ class Glm4vForConditionalGeneration(Qwen2_5_VLForConditionalGeneration): self.pooler = Pooler(pooling_type=PoolingType.LAST, normalize=True) self.is_mrope_enabled = "mrope_section" in self.config.rope_scaling + # For EAGLE3 support + self.capture_aux_hidden_states = False + def get_image_feature(self, items: List[MultimodalDataItem]) -> torch.Tensor: pixel_values = torch.cat( [item.feature.squeeze(0) for item in items], dim=0