LoRA and QLoRA fine-tuning on your Mac
LoRA is the practical way to fine-tune on a Mac: the base model stays frozen and only small adapter matrices train. Paged Trainer runs LoRA, DoRA, and QLoRA on Apple Silicon with MLX, and puts every option in one form instead of a page of command line flags.
Rank, alpha, dropout, target layers, learning rate schedule, and sequence length all have sensible defaults. Change what you want, run a plan to see the memory and speed for your Mac, and start. Loss, tokens per second, and memory update every step.
Why it is different
- QLoRA on quantized MLX checkpoints, including MoE models larger than RAM
- The planner picks rows per step and micro-batches from real probe steps
- Adapters are mlx-lm format: mlx_lm.generate, mlx_lm.fuse, or pagedmoe.load
- Same trainer as the pagedmoe.train CLI, so a run can move to a script later
FAQ
Does it do QLoRA?
Yes. Point it at a quantized MLX checkpoint and it trains LoRA adapters on top of the frozen quantized weights. That is the setup used in the published benchmarks.
LoRA or DoRA?
Both. Pick the adapter type, rank, alpha, dropout, and which layers to target in the form. Defaults are filled in so you can start without touching them.
Will the adapters work outside the app?
Yes. They are standard mlx-lm adapters. Use them with mlx_lm.generate, fuse them with mlx_lm.fuse, or load them with pagedmoe.load.
Related
- Paged Trainer
- Fine-tune LLMs on a Mac
- DPO, ORPO, KTO, and GRPO on Mac
- Fine-tune models larger than RAM
© QWERTY Code LLC. Paged Trainer is a product of QWERTY Code LLC.