sort index parts

This commit is contained in:
Sigbjørn Skjæret 2025-12-17 23:58:01 +01:00 committed by GitHub
parent 077f1bdd8c
commit 5f2f5e6177
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class ModelBase:
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(weight_map.values(), None)
part_names = list(part_dict.keys())
part_names = sorted(part_dict.keys())
else:
weight_map = {}
else: