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.1
head ⚡️ HEAD

Depends on:

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

Depends on when building from source:

pkgconf 2.5.1 Package compiler and linker metadata toolkit
rust 1.94.0 Safe, concurrent, practical language

Requires: macOS, macOS >= 13

Analytics:

Installs (30 days)
mlx-lm 586
mlx-lm --HEAD 6
Installs on Request (30 days)
mlx-lm 586
mlx-lm --HEAD 6
Build Errors (30 days)
mlx-lm 11
Installs (90 days)
mlx-lm 1,502
mlx-lm --HEAD 10
Installs on Request (90 days)
mlx-lm 1,502
mlx-lm --HEAD 9
Installs (365 days)
mlx-lm 2,000
mlx-lm --HEAD 12
Installs on Request (365 days)
mlx-lm 2,000
mlx-lm --HEAD 12