Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/llava/convert_image_encoder_to_gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@ def get_non_negative_vision_feature_layers(v_hparams):
else:
data = data.squeeze().numpy().astype(np.float32)

# byteswaps v.head.ffn_up.bias for big-endian systems
# see: https://github.com/ggml-org/llama.cpp/issues/12863
if name == "v.head.ffn_up.bias" and args.bigendian:
data = data.byteswap(inplace=True)

fout.add_tensor(name, data)

print("Projector tensors added\n")
Expand Down