macOS
brew install mlx-lmlocal Homebrew formula metadata
brew
Run LLMs with MLX. Version 0.31.3 via Homebrew; verified 2026-06-20.
install
brew install mlx-lmlocal Homebrew formula metadata
overview
Run LLMs with MLX
history
MLX LM is the language-model layer built on top of Apple's MLX array framework. The upstream project describes it as a Python package for generating text and fine-tuning large language models on Apple silicon with MLX. It packages common local-LLM workflows into command-line tools and Python APIs: generation, chat, model conversion, quantization, LoRA and full fine-tuning, benchmarking, prompt caching, upload/share flows, and a local server.
Its ecosystem role is to make MLX usable for Hugging Face-style LLM work without each user wiring model loading, tokenization, generation loops, quantization, and fine-tuning scripts by hand. The README highlights Hugging Face Hub integration, quantizing and uploading models, low-rank and full fine-tuning with quantized models, and distributed inference and fine-tuning through MLX distributed support. The MLX examples repository points users from earlier LLM examples to MLX LM as the more fully featured package.
Adoption is tied to the Apple-silicon local-model community. The MLX Community organization on Hugging Face hosts ready-to-use model weights for MLX LM and related MLX projects, and Apple's WWDC material presents MLX LM as the package for running and fine-tuning large language models on Macs. In Homebrew it is a convenience package for users who want the MLX LLM command suite installed as normal CLI tools rather than only through Python packaging.
security posture
broad file, network, media, or database tool signal. formula declares a Homebrew service.
orange risk · medium confidence · infrastructure
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
mlx_lm | cli | global executable | |
mlx_lm.awq | cli | global executable | |
mlx_lm.benchmark | cli | global executable | |
mlx_lm.cache_prompt | cli | global executable | |
mlx_lm.chat | cli | global executable | |
mlx_lm.convert | cli | global executable | |
mlx_lm.dwq | cli | global executable | |
mlx_lm.dynamic_quant | cli | global executable | |
mlx_lm.evaluate | cli | global executable | |
mlx_lm.fuse | cli | global executable | |
mlx_lm.generate | cli | global executable | |
mlx_lm.gptq | cli | global executable | |
mlx_lm.lora | cli | global executable | |
mlx_lm.manage | cli | global executable | |
mlx_lm.perplexity | cli | global executable | |
mlx_lm.server | cli | global executable | |
mlx_lm.share | cli | global executable | |
mlx_lm.upload | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/ml-explore/mlx-lm
install metadata
| Package key | brew:mlx-lm |
|---|---|
| Version | 0.31.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/mlx-lm |
| Homepage | https://github.com/ml-explore/mlx-lm |
| Repository | https://github.com/ml-explore/mlx-lm |
| Upstream docs | https://github.com/ml-explore/mlx-lm/blob/main/README.md |
| License | MIT |
| Source archive | https://files.pythonhosted.org/packages/84/94/9a38d6b0c6fcca995b9136c94eb7da1e9c5165652edf228b96b29960fa7a/mlx_lm-0.31.3.tar.gz |
| Last updated | 2026-06-20T05:07:43Z |
| Pulse | updated |
| Dependencies | certifi, libyaml, mlx, numpy, protobuf, python@3.14, sentencepiece |
| Build dependencies | pkgconf, rust |
| Bottle | available (on arm64_sequoia, arm64_sonoma, arm64_tahoe) |
| Homebrew post-install | not defined |
| Service | declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mlx-lm |
| Version Scheme | 0 |
| Revision | 2 |
| Head Version | HEAD |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.