MLX LM
Runs and fine-tunes LLMs on Apple silicon with MLX.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat it is
MLX LM generates text and runs chat sessions with open-weight models on Apple silicon Macs, using commands such as mlx_lm.generate and mlx_lm.chat. It pulls models from the Hugging Face Hub, quantises them and can upload the result, and it supports low-rank (LoRA) and full fine-tuning, including on quantised models. On a Mac it is an alternative to llama.cpp-based tools such as Ollama and LM Studio.
Best for
Mac users who want to run or fine-tune open models locally on Apple silicon.
Skills it helps with
Learn MLX LM by doing
- Local model servers cheat sheet
Start commands, default ports and OpenAI-compatible base URLs for Ollama, LM Studio, llama.cpp, MLX LM, vLLM and SGLang, checked against each project's docs.
Related tools
Transformers
Hugging Face's library of open model definitions.
Hugging Face
Hub for models, datasets and Spaces, plus open-source ML libraries.
LLM
CLI and Python library for prompting many models.
Together AI
Cloud for running and fine-tuning open models, with serverless endpoints and GPUs.
Jan
Open-source desktop chat app that runs local models offline or connects to hosted ones.
llama.cpp
C/C++ inference engine for GGUF models on CPUs and GPUs; many local tools use it.