mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-19 09:15:04 +02:00
convert-hf : sort model part names
`os.listdir` is said to list files in arbitrary order. Sorting the file names should let "model-00009-of-00042.safetensors" be loaded before "model-00010-of-00042.safetensors".
This commit is contained in:
@@ -243,6 +243,8 @@ class Model(Protocol):
|
||||
if filename.endswith(suffix):
|
||||
part_names.append(filename)
|
||||
|
||||
part_names.sort()
|
||||
|
||||
return part_names
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user