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:
co-authored by
Awni Hannun
parent
02228601cd
commit
bc891dca4c
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user