One local command
Move from a base model to a focused training run without leaving your terminal or your machine.
A native MLX toolkit for fine-tuning language models locally, with adapters, preference optimization, and quantization-aware training built into one calm, capable workflow.
Keep the loop close to the work. MLX-LM-LoRA puts efficient adaptation, preference learning, and evaluation in the same local toolkit.
Move from a base model to a focused training run without leaving your terminal or your machine.
DPO, CPO, ORPO, GRPO, online DPO, and more. Train toward the behavior you actually want.
Use QLoRA and QAT to keep memory practical while preserving a direct path to better models.
Register custom reward functions and shape GRPO around the signal that matters to your domain.
Use prompt and completion pairs or chat messages to turn a capable base model into one that understands your task, tone, and format.
Read the method notesmlx_lm_lora.train \
--model <model> \
--train-mode sft \
--data <dataset>
Install the package, point it at a model and dataset, then keep iterating where your weights live: locally.
pip install -U mlx-lm-lora
mlx_lm_lora.train \
--model <model> \
--train \
--data <dataset> \
--iters 600