initial-commit

This commit is contained in:
simonJJJ
2024-08-28 16:51:35 +08:00
parent 0f5a0f64f7
commit aeb85f200b
10 changed files with 337 additions and 5 deletions

View File

@@ -36,6 +36,8 @@ def find_all_linear_modules(model: "PreTrainedModel", freeze_vision_tower: bool)
forbidden_modules.add("output")
elif model.config.model_type in ["llava", "paligemma"]:
forbidden_modules.add("multi_modal_projector")
elif model.config.model_type in ["qwen2_vl"]:
forbidden_modules.add("merger")
if freeze_vision_tower:
forbidden_modules.add("vision_tower")