import logging as it throws no logging error in place of actual error (#778)

* import logging as it throws no logging error in place of actual error

* Update mlx_lm/utils.py

---------

Co-authored-by: Awni Hannun <[email protected]>
This commit is contained in:
Maanas Verma
2026-01-20 06:23:24 -08:00
committed by GitHub
co-authored by Awni Hannun
parent 02228601cd
commit bc891dca4c
-1
View File
@@ -303,7 +303,6 @@ def load_model(
weight_files = glob.glob(str(model_path / "model*.safetensors"))
if not weight_files and strict:
logging.error(f"No safetensors found in {model_path}")
raise FileNotFoundError(f"No safetensors found in {model_path}")
weights = {}