mlx-examples/llms/mlx_lm/tuner
Madroid Ma 954aa50c54
LoRA: Improve validation error for LoRA layer count exceeding model layer (#427)
* LoRA: Improve validation error for LoRA layer count exceeding model layer

This commit enhances the error handling when the specified LoRA layer count exceeds the total number of layers in the model. It clarifies the error message to provide actionable feedback for users, guiding them to adjust their input parameters accordingly.

* format + nits

---------

Co-authored-by: Awni Hannun <awni@apple.com>
2024-02-13 06:56:27 -08:00
..
__init__.py feat: move lora into mlx-lm (#337) 2024-01-23 08:44:37 -08:00
lora.py feat(mlx-lm): add de-quant for fuse.py (#365) 2024-01-25 18:59:32 -08:00
trainer.py LoRA: Improve validation error for LoRA layer count exceeding model layer (#427) 2024-02-13 06:56:27 -08:00
utils.py LoRA: Improve validation error for LoRA layer count exceeding model layer (#427) 2024-02-13 06:56:27 -08:00