#1717th of 47 in Model serving

mlx-lm

Python package and CLI for running and fine-tuning LLMs on Apple silicon with MLX

Stars
7.4k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
Python
Stars, last 29 weeks+3,151
1 Apr 2026: 4,280 stars8 Apr 2026: 4,559 stars15 Apr 2026: 4,719 stars22 Apr 2026: 4,864 stars29 Apr 2026: 5,021 stars6 May 2026: 5,109 stars13 May 2026: 5,230 stars20 May 2026: 5,315 stars27 May 2026: 5,388 stars3 Jun 2026: 5,459 stars10 Jun 2026: 5,693 stars17 Jun 2026: 5,892 stars24 Jun 2026: 5,991 stars1 Jul 2026: 6,113 stars8 Jul 2026: 6,195 stars15 Jul 2026: 6,268 stars22 Jul 2026: 6,344 stars29 Jul 2026: 6,437 stars5 Aug 2026: 6,502 stars12 Aug 2026: 6,562 stars19 Aug 2026: 6,683 stars26 Aug 2026: 6,781 stars2 Sept 2026: 6,854 stars9 Sept 2026: 6,931 stars16 Sept 2026: 7,018 stars23 Sept 2026: 7,105 stars30 Sept 2026: 7,176 stars7 Oct 2026: 7,236 stars14 Oct 2026: 7,299 stars21 Oct 2026: 7,431 stars

4,280 on 1 Apr 20267,431 on 21 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

MLX LM generates text, chats in a terminal REPL, and fine-tunes LLMs on Apple silicon using the MLX framework. It loads models from the Hugging Face Hub, quantizes and uploads them, and supports LoRA and full fine-tuning, including on quantized models. It ships a Python API and command-line tools such as mlx_lm.generate, mlx_lm.chat and mlx_lm.server.

Who it is for: Developers on Macs running or fine-tuning LLMs locally with MLX

Strengths

  • Pulls MLX-compatible models from Hugging Face, with thousands in the MLX Community org
  • Converts, quantizes (e.g. 4-bit) and uploads models with one command
  • LoRA and full fine-tuning, including on quantized models
  • Rotating KV cache, prompt caching and configurable prefill step size for long contexts

Weaknesses

  • Targets Apple silicon only, per the README
  • Wiring memory for large models needs macOS 15 or higher
  • Unsupported model architectures need an issue or a pull request
  • Some tokenizers require enabling trust_remote_code

What it needs

  • Needs MLX, Hugging Face Hub
  • Models: Hugging Face Hub models in MLX format, quantized models, LoRA, full fine-tuning

Also in Model serving

See all 47
Also in Model serving
RankProjectScore
1LocalAISelf-hosted inference server with OpenAI-compatible API and pluggable backends49.8k starsMIT83 out of 100
2llama.cppC/C++ inference engine serving GGUF models over an OpenAI-compatible API132k starsMIT81 out of 100
3OllamaLocal model runner with CLI and REST API for open-weight LLMs184.2k starsMIT80 out of 100
#4strataRuns a 125B-parameter MoE model on one consumer GPU plus system RAM30k starsMIT79 out of 100
#5vLLMInference engine for Hugging Face LLMs with PagedAttention and continuous batching94.9k starsApache-2.077 out of 100