From 077f1bdd8c899de56bbee8927c8ee46fb753d721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigbj=C3=B8rn=20Skj=C3=A6ret?= Date: Wed, 17 Dec 2025 23:25:53 +0100 Subject: [PATCH] treat index as authoritative --- convert_hf_to_gguf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert_hf_to_gguf.py b/convert_hf_to_gguf.py index 84dcb45f4e..cb5970d7e5 100755 --- a/convert_hf_to_gguf.py +++ b/convert_hf_to_gguf.py @@ -217,7 +217,7 @@ class ModelBase: if weight_map is None or not isinstance(weight_map, dict): raise ValueError(f"Can't load 'weight_map' from {index_name!r}") tensor_names_from_index.update(weight_map.keys()) - part_dict: dict[str, None] = dict.fromkeys(list(weight_map.values()) + part_names, None) + part_dict: dict[str, None] = dict.fromkeys(weight_map.values(), None) part_names = list(part_dict.keys()) else: weight_map = {}