Automic VaultAutomic Vault

brew

Install mlx-lm with Homebrew

Run LLMs with MLX. Version 0.31.3 via Homebrew; verified 2026-06-20.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install mlx-lm

local Homebrew formula metadata

overview

Package summary

Run LLMs with MLX

Commands and aliases

  • mlx_lm
  • mlx_lm.awq
  • mlx_lm.benchmark
  • mlx_lm.cache_prompt
  • mlx_lm.chat
  • mlx_lm.convert
  • mlx_lm.dwq
  • mlx_lm.dynamic_quant
  • mlx_lm.evaluate
  • mlx_lm.fuse
  • mlx_lm.generate
  • mlx_lm.gptq
  • mlx_lm.lora
  • mlx_lm.manage
  • mlx_lm.perplexity
  • mlx_lm.server
  • mlx_lm.share
  • mlx_lm.upload

history

Project history and usage

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.

Project history

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.

How it is used

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

Risk level: orange

broad file, network, media, or database tool signal. formula declares a Homebrew service.

Risk classifier

orange risk · medium confidence · infrastructure

Why

  • broad file, network, media, or database tool signal
  • formula declares a Homebrew service

Signals

  • metadata:service
  • text:upload,server

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Formula metadata declares a service or daemon block.
  • Homebrew bottle metadata is available for 3 platform targets.
  • Installs with 7 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
mlx_lmcliglobal executable
mlx_lm.awqcliglobal executable
mlx_lm.benchmarkcliglobal executable
mlx_lm.cache_promptcliglobal executable
mlx_lm.chatcliglobal executable
mlx_lm.convertcliglobal executable
mlx_lm.dwqcliglobal executable
mlx_lm.dynamic_quantcliglobal executable
mlx_lm.evaluatecliglobal executable
mlx_lm.fusecliglobal executable
mlx_lm.generatecliglobal executable
mlx_lm.gptqcliglobal executable
mlx_lm.loracliglobal executable
mlx_lm.managecliglobal executable
mlx_lm.perplexitycliglobal executable
mlx_lm.servercliglobal executable
mlx_lm.sharecliglobal executable
mlx_lm.uploadcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.31.3
manager updated2026-06-20
local dataok
upstreamnot checked
latest detectednot detected

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

install metadata

Package metadata

Package keybrew:mlx-lm
Version0.31.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/mlx-lm
Homepagehttps://github.com/ml-explore/mlx-lm
Repositoryhttps://github.com/ml-explore/mlx-lm
Upstream docshttps://github.com/ml-explore/mlx-lm/blob/main/README.md
LicenseMIT
Source archivehttps://files.pythonhosted.org/packages/84/94/9a38d6b0c6fcca995b9136c94eb7da1e9c5165652edf228b96b29960fa7a/mlx_lm-0.31.3.tar.gz
Last updated2026-06-20T05:07:43Z
Pulseupdated
Dependenciescertifi, libyaml, mlx, numpy, protobuf, python@3.14, sentencepiece
Build dependenciespkgconf, rust
Bottleavailable (on arm64_sequoia, arm64_sonoma, arm64_tahoe)
Homebrew post-installnot defined
Servicedeclared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemlx-lm
Version Scheme0
Revision2
Head VersionHEAD
Requirements
  • macos
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment