Skip to content

Commit c50e627

Browse files
committed
fix conversion
1 parent 55ad3a6 commit c50e627

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

convert_hf_to_gguf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2090,7 +2090,7 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iter
20902090
del bid # unused
20912091
if "multi_modal_projector" in name or "vision_model" in name:
20922092
# process vision tensors
2093-
if "positional_embedding_vlm" in name:
2093+
if "positional_embedding_vlm" in name and ".weight" not in name:
20942094
name += ".weight"
20952095
return [(self.map_tensor_name(name), data_torch)]
20962096
return []

gguf-py/gguf/tensor_mapping.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ class TensorNameMap:
906906

907907
MODEL_TENSOR.V_MMPROJ_MLP: (
908908
"model.mm_projector.mlp.mlp.{bid}",
909-
"vision_model.vision_adapter.mlp.fc{bid}.weight", # llama 4
909+
"vision_model.vision_adapter.mlp.fc{bid}", # llama 4
910910
),
911911

912912
MODEL_TENSOR.V_MMPROJ_PEG: (

0 commit comments

Comments
 (0)