mlx-lm

Install command:
brew install mlx-lm

Run LLMs with MLX

https://github.com/ml-explore/mlx-lm

License: MIT

Development: Pull requests

Formula JSON API: /api/formula/mlx-lm.json

Formula code: mlx-lm.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma

Current versions:

stable 0.31.3
head ⚡️ HEAD

Revision: 2

Depends on:

certifi 2026.6.17 Mozilla CA bundle for Python
libyaml 0.2.5 YAML Parser
mlx 0.32.0 Array framework for Apple silicon
numpy 2.5.1 Package for scientific computing with Python
protobuf 35.1 Protocol buffers (Google's data interchange format)
python@3.14 3.14.6 Interpreted, interactive, object-oriented programming language
sentencepiece 0.2.2 Unsupervised text tokenizer and detokenizer

Depends on when building from source:

pkgconf 3.0.1 Package compiler and linker metadata toolkit
rust 1.96.1 Safe, concurrent, practical language

Requires: macOS >= 13

Analytics:

Installs (30 days)
mlx-lm 1,020
mlx-lm --HEAD 7
Installs on Request (30 days)
mlx-lm 1,019
mlx-lm --HEAD 7
Build Errors (30 days)
mlx-lm --HEAD 5
Installs (90 days)
mlx-lm 2,720
mlx-lm --HEAD 16
Installs on Request (90 days)
mlx-lm 2,719
mlx-lm --HEAD 16
Installs (365 days)
mlx-lm 5,658
mlx-lm --HEAD 33
Installs on Request (365 days)
mlx-lm 5,657
mlx-lm --HEAD 33