Skip to content

Commit d59a7bb

Browse files
committed
fix bad ctrl+f replace
1 parent d5e03e6 commit d59a7bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

convert_hf_to_gguf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,7 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None):
19591959
name += ".weight"
19601960
data_torch = data_torch.transpose(-1, -2)
19611961

1962-
if "multi_modal_projector" in name or "mtmd_model" in name:
1962+
if "multi_modal_projector" in name or "vision_model" in name:
19631963
return []
19641964
return super().modify_tensors(data_torch, name, bid)
19651965

@@ -3661,7 +3661,7 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iter
36613661
name = name.replace("language_model.", "")
36623662

36633663
elif name.startswith("multi_modal_projector.") or name.startswith("vision_tower.") \
3664-
or name.startswith("multimodal_projector.") or name.startswith("mtmd_model."):
3664+
or name.startswith("multimodal_projector.") or name.startswith("vision_model."):
36653665
if self.mmproj:
36663666
assert self.mtmd_model is not None
36673667
# process vision tensors

0 commit comments

Comments
 (0)