initial-commit

Former-commit-id: aeb85f200b
This commit is contained in:
simonJJJ
2024-08-28 16:51:35 +08:00
parent efd60f0306
commit 8a09b1e732
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")