fix loading for qwen2 VL (#491)

This commit is contained in:
Awni Hannun
2025-09-23 13:12:37 -07:00
committed by GitHub
parent 4096aabdba
commit ffc0ecc1ca
+1 -1
View File
@@ -20,7 +20,7 @@ class ModelArgs(BaseModelArgs):
def from_dict(cls, params):
if "text_config" not in params:
return cls(model_type=params["model_type"], text_config=params)
return cls(**params)
return super().from_dict(params)
class Model(nn.Module):