set dev version

Former-commit-id: 5e9c72d07c3793cdccbdb8a9f95f1bb5d714e0a3
This commit is contained in:
hiyouga
2024-05-16 02:17:31 +08:00
parent b2949b88e9
commit fe638cf11f
4 changed files with 4 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ def autocast_projector_dtype(
def configure_visual_model(config: "PretrainedConfig") -> None:
if getattr(config, "model_type", None) == "llava":
if getattr(config, "model_type", None) == "llava": # required for ds zero3 and valuehead models
setattr(config, "hidden_size", getattr(config.text_config, "hidden_size", None))
if getattr(config, "is_yi_vl_derived_model", None):