From 9b14cb8b2812e2c6c846a825f4343a8e7bbe4e34 Mon Sep 17 00:00:00 2001 From: Aes Sedai <7980540+AesSedai@users.noreply.github.com> Date: Sun, 1 Feb 2026 02:19:53 -0800 Subject: [PATCH] Revert changes to KimiVLForConditionalGeneration --- convert_hf_to_gguf.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/convert_hf_to_gguf.py b/convert_hf_to_gguf.py index a1d1a05fcf..00cb23c971 100755 --- a/convert_hf_to_gguf.py +++ b/convert_hf_to_gguf.py @@ -10705,17 +10705,9 @@ class KimiVLModel(MmprojModel): self.gguf_writer.add_vision_attention_layernorm_eps(self.hparams_vision.get("layer_norm_eps", 1e-5)) def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iterable[tuple[str, Tensor]]: - is_vision_tensor = "vision_tower" in name or "multi_modal_projector" in name or "mm_projector" in name + is_vision_tensor = "vision_tower" in name or "multi_modal_projector" in name if is_vision_tensor: - # update names: - # "mm_projector.proj.0" -> "mm_projector.proj.linear_1.", - # "mm_projector.proj.2" -> "mm_projector.proj.linear_2.", - if "proj.0." in name: - name = name.replace(".0.", ".linear_1.") - if "proj.2." in name: - name = name.replace(".2.", ".linear_2.") - if "pos_emb.weight" in name: data_torch = data_torch.view(data_torch.shape[0] * data_torch.shape[1], data_torch.shape[2])