convert : add pre-computed hashes first to prevent order mishaps (#14701)

This commit is contained in:
Sigbjørn Skjæret 2025-07-16 08:51:12 +02:00 committed by GitHub
parent 79e0b68c17
commit cf91f217f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 31 additions and 31 deletions

View file

@ -232,7 +232,7 @@ for model in models:
# generate the source code for the convert_hf_to_gguf.py:get_vocab_base_pre() function:
src_ifs = ""
for model in [*all_models, *pre_computed_hashes]:
for model in [*pre_computed_hashes, *all_models]:
name = model["name"]
tokt = model["tokt"]
chkhsh = model.get("chkhsh")