Fix the problem where Qwen3VL raises an "object has no attribute 'mod… (#15677)
This commit is contained in:
@@ -962,6 +962,7 @@ class Qwen3VLForConditionalGeneration(nn.Module):
|
|||||||
if (
|
if (
|
||||||
not is_visual
|
not is_visual
|
||||||
and layer_id is not None
|
and layer_id is not None
|
||||||
|
and hasattr(self, "model")
|
||||||
and hasattr(self.model, "start_layer")
|
and hasattr(self.model, "start_layer")
|
||||||
and (
|
and (
|
||||||
layer_id < self.model.start_layer
|
layer_id < self.model.start_layer
|
||||||
|
|||||||
Reference in New Issue
Block a user