Skip to content

Commit 2e759cf

Browse files
authored
Fix checkpoint weight loading for Qwen2.5-VL vision and embedding models (microsoft#380)
1 parent b857c02 commit 2e759cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Qwen-Qwen2.5-VL-3B-Instruct/builtin/codes/modeling_qwen2_5_vl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,8 +1039,8 @@ def forward(
10391039

10401040
@auto_docstring
10411041
class Qwen2_5_VLModel(Qwen2_5_VLPreTrainedModel):
1042-
base_model_prefix = ""
1043-
_checkpoint_conversion_mapping = {"^model": "language_model"}
1042+
base_model_prefix = "model"
1043+
_checkpoint_conversion_mapping = {}
10441044
# Reference: fix gemma3 grad acc #37208
10451045
accepts_loss_kwargs = False
10461046
config: Qwen2_5_VLConfig

0 commit comments

Comments
 (0)