diff --git a/modules/llamacpp_hf.py b/modules/llamacpp_hf.py index e5a05f6e..1bfd667d 100644 --- a/modules/llamacpp_hf.py +++ b/modules/llamacpp_hf.py @@ -192,7 +192,7 @@ class LlamacppHF(PreTrainedModel): if path.is_file(): model_file = path else: - model_file = list(path.glob('*.gguf'))[0] + model_file = sorted(path.glob('*.gguf'))[0] logger.info(f"llama.cpp weights detected: {model_file}\n")