From bc891dca4cff6d7f8ddddacb8a1c2dee7963e601 Mon Sep 17 00:00:00 2001 From: Maanas Verma <45412516+Maanas-Verma@users.noreply.github.com> Date: Tue, 20 Jan 2026 19:53:24 +0530 Subject: [PATCH] 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 --- mlx_lm/utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mlx_lm/utils.py b/mlx_lm/utils.py index 4dc6d9c..c094500 100644 --- a/mlx_lm/utils.py +++ b/mlx_lm/utils.py @@ -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 = {}