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

Download - Paged Trainer

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

© QWERTY Code LLC. Paged Trainer is a product of QWERTY Code LLC.