diff --git a/llms/mlx_lm/tuner/utils.py b/llms/mlx_lm/tuner/utils.py index 6756bfca..2059ebc4 100644 --- a/llms/mlx_lm/tuner/utils.py +++ b/llms/mlx_lm/tuner/utils.py @@ -21,7 +21,7 @@ def linear_to_lora_layers(model: nn.Module, num_lora_layers: int): if num_lora_layers > num_model: raise ValueError( f"Requested {num_lora_layers} LoRA layers " - f"but the model only has {num_model_layers} layers." + f"but the model only has {num_model} layers." ) if model.model_type in [