Fix the problem where Qwen3VL raises an "object has no attribute 'mod… (#15677)

This commit is contained in:
ShirakSyouya
2026-01-06 08:45:13 +08:00
committed by GitHub
parent 6c0fb189f8
commit ce694b2b9e

View File

@@ -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