From ce694b2b9e0ab07aaffdd777d3370e096ed8b0f3 Mon Sep 17 00:00:00 2001 From: ShirakSyouya Date: Tue, 6 Jan 2026 08:45:13 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20the=20problem=20where=20Qwen3VL=20raises?= =?UTF-8?q?=20an=20"object=20has=20no=20attribute=20'mod=E2=80=A6=20(#1567?= =?UTF-8?q?7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/sglang/srt/models/qwen3_vl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/sglang/srt/models/qwen3_vl.py b/python/sglang/srt/models/qwen3_vl.py index 6c06aaa0e..079f45843 100644 --- a/python/sglang/srt/models/qwen3_vl.py +++ b/python/sglang/srt/models/qwen3_vl.py @@ -962,6 +962,7 @@ class Qwen3VLForConditionalGeneration(nn.Module): if ( not is_visual and layer_id is not None + and hasattr(self, "model") and hasattr(self.model, "start_layer") and ( layer_id < self.model.start_layer