[BugFix][EPD]Fix Qwen3VLMoe encoder-only AttributeError (#25759)

This commit is contained in:
Zheng Wengang
2026-05-21 11:07:21 +08:00
committed by GitHub
parent a449ee4822
commit 74c6294ba9
+1
View File
@@ -235,6 +235,7 @@ class Qwen3VLMoeForConditionalGeneration(Qwen3VLForConditionalGeneration):
if (
"visual" not in name
and layer_id is not None
and hasattr(self, "model")
and hasattr(self.model, "start_layer")
and (
layer_id < self.model.start_layer