Run and fine-tune LLMs on Apple silicon with MLX
open sourceMITfree
MLX LM is a Python package and command-line tool from Apple for generating text with and fine-tuning large language models on Apple silicon, built on MLX. It loads thousands of models from the Hugging Face Hub with a single command, quantizes models and uploads them back to the Hub, and does low-rank (LoRA) and full fine-tuning, including on quantized models. It has commands to generate text, chat in a REPL and convert models, and runs distributed inference and fine-tuning across several Macs.
Problems it solves
- run a large language model locally on my Mac's Apple silicon
- fine-tune an LLM with LoRA on a MacBook
- quantize a Hugging Face model to run faster on Apple silicon
- chat with an open model from the command line on macOS
Features
- generate text and chat with models from the Hugging Face Hub
- quantize models and upload them to the Hub
- LoRA and full fine-tuning, including quantized models
- distributed inference and fine-tuning with mx.distributed
- commands: mlx_lm.generate, mlx_lm.chat, mlx_lm.convert
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what MLX LM does.
