Bug: Missing Sanity Check in convert_hf_to_gguf.py #9245
Labels
bug
Something isn't working
low severity
Used to report low severity bugs in llama.cpp (e.g. cosmetic issues, non critical UI glitches)
What happened?
The script convert_hf_to_gguf.py does not perform a sanity check on the completeness of the model files. We encountered an issue where one of the models we downloaded was incomplete (specifically, a safesensors file was missing). Despite this, convert_hf_to_gguf.py proceeded with the conversion without generating any errors or warnings.
Expected Behavior: The script should validate that all required files are present before converting. Since Hugging Face downloads are organized with sequence and total files (e.g., model-00001-of-00002), it should be easy to validate.
Steps to Reproduce:
Name and Version
version: 3631 (7d787ed)
built with cc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22) for x86_64-redhat-linux
What operating system are you seeing the problem on?
Linux
Relevant log output
No response
The text was updated successfully, but these errors were encountered: