convert : fix Llama 4 conversion (#14311)

This commit is contained in:
Daniel Han 2025-06-20 21:32:01 -07:00 committed by GitHub
parent 06cbedfca1
commit b23fa0b3f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2193,7 +2193,7 @@ class Llama4VisionModel(MmprojModel):
name += ".weight"
if "multi_modal_projector.linear_1" in name:
# despite the name with number postfix, this is a single fully connected layer
return [(gguf.TENSOR_NAMES[gguf.MODEL_TENSOR.V_MMPROJ_FC], data_torch)]
return [(gguf.TENSOR_NAMES[gguf.MODEL_TENSOR.V_MMPROJ_FC] + '.weight', data_torch)]
return [(self.map_tensor_name(name), data_torch)]
return []