mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-06 10:52:14 +08:00
fix some
Former-commit-id: 12e509da85af76ccf1e9a879a78e450a7b70cc4b
This commit is contained in:
parent
67218a0ef5
commit
12af43b064
@ -34,7 +34,7 @@ def find_all_linear_modules(model: "PreTrainedModel", freeze_vision_tower: bool)
|
||||
forbidden_modules.add("output_layer")
|
||||
elif model_type == "internlm2":
|
||||
forbidden_modules.add("output")
|
||||
elif model_type in ["idefics2", "llava", "llava_next", "llava_next_video", "paligemma", "video_llava"]:
|
||||
elif model_type in ["llava", "llava_next", "llava_next_video", "paligemma", "video_llava"]:
|
||||
forbidden_modules.add("multi_modal_projector")
|
||||
elif model_type == "qwen2_vl":
|
||||
forbidden_modules.add("merger")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user