Skip to content
Merged
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
4 changes: 4 additions & 0 deletions convert_hf_to_gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2842,6 +2842,10 @@ def set_gguf_parameters(self):
self.gguf_writer.add_attn_temperature_scale(rope_params["llama_4_scaling_beta"])

def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None):
# TODO: probably not worth supporting quantized weight, as official BF16 is also available
if name.endswith("weight_scale_inv"):
raise ValueError("This is a quantized weight, please use BF16 weight instead")

name = name.replace("language_model.", "")
if "multi_modal_projector" in name or "vision_tower" in name:
return []
Expand Down
Loading