# Install mlx-lm

Run LLMs with MLX. Version 0.31.3 via Homebrew; verified 2026-05-22.

## Install

```sh
sudo av install brew:mlx-lm
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mlx-lm
```

  Evidence: local Homebrew formula metadata

## Package Facts

- **Package key:** brew:mlx-lm
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/mlx-lm>
- **Version:** 0.31.3
- **Source summary:** Run LLMs with MLX
- **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-05-22T10:35:08Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- mlx_lm (cli)
- mlx_lm.awq (cli)
- mlx_lm.benchmark (cli)
- mlx_lm.cache_prompt (cli)
- mlx_lm.chat (cli)
- mlx_lm.convert (cli)
- mlx_lm.dwq (cli)
- mlx_lm.dynamic_quant (cli)
- mlx_lm.evaluate (cli)
- mlx_lm.fuse (cli)
- mlx_lm.generate (cli)
- mlx_lm.gptq (cli)
- mlx_lm.lora (cli)
- mlx_lm.manage (cli)
- mlx_lm.perplexity (cli)
- mlx_lm.server (cli)
- mlx_lm.share (cli)
- mlx_lm.upload (cli)
- mlx_lm (alias)
- mlx_lm.awq (alias)
- mlx_lm.benchmark (alias)
- mlx_lm.cache_prompt (alias)
- mlx_lm.chat (alias)
- mlx_lm.convert (alias)
- mlx_lm.dwq (alias)
- mlx_lm.dynamic_quant (alias)
- mlx_lm.evaluate (alias)
- mlx_lm.fuse (alias)
- mlx_lm.generate (alias)
- mlx_lm.gptq (alias)
- mlx_lm.lora (alias)
- mlx_lm.manage (alias)
- mlx_lm.perplexity (alias)
- mlx_lm.server (alias)
- mlx_lm.share (alias)
- mlx_lm.upload (alias)

## Dependencies

- certifi
- libyaml
- mlx
- numpy
- protobuf
- python@3.14
- sentencepiece

## Build Dependencies

- pkgconf
- rust

## Install Behavior

- Post-install hook: not defined
- Service: declared
- Bottle: available on arm64_sequoia, arm64_sonoma, arm64_tahoe

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 0.31.3
- Package-manager updated: 2026-05-22
- Local data status: ok
- Upstream repository: https://github.com/ml-explore/mlx-lm
- info: No cached GitHub release or tag data was available.

## Notes de sécurité

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

- **Geiger risk:** orange / medium
- broad file, network, media, or database tool signal
- formula declares a Homebrew service

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mlx-lm
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related Links

- [Source-control packages](https://www.automicvault.com/fr/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/fr/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/fr/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/fr/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [python@3.14](https://www.automicvault.com/fr/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [protobuf](https://www.automicvault.com/fr/pkg/brew/protobuf/) - Runtime dependency declared by Homebrew.
- [numpy](https://www.automicvault.com/fr/pkg/brew/numpy/) - Runtime dependency declared by Homebrew.
- [mlx](https://www.automicvault.com/fr/pkg/brew/mlx/) - Runtime dependency declared by Homebrew.
- [sentencepiece](https://www.automicvault.com/fr/pkg/brew/sentencepiece/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/fr/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/fr/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [text-embeddings-inference](https://www.automicvault.com/fr/pkg/brew/text-embeddings-inference/) - Shares av.db curated category or tags: cli, developer-tools, inference, machine-learning.
- [llama.cpp](https://www.automicvault.com/fr/pkg/brew/llama-cpp/) - Shares av.db curated category or tags: cli, developer-tools, machine-learning.
- [pytorch](https://www.automicvault.com/fr/pkg/brew/pytorch/) - Shares av.db curated category or tags: cli, developer-tools, machine-learning.
- [hf](https://www.automicvault.com/fr/pkg/brew/hf/) - Shares av.db curated category or tags: cli, developer-tools, machine-learning.
- [dvc](https://www.automicvault.com/fr/pkg/brew/dvc/) - Shares av.db curated category or tags: cli, developer-tools, machine-learning.
- [hf-mcp-server](https://www.automicvault.com/fr/pkg/brew/hf-mcp-server/) - Shares av.db curated category or tags: cli, developer-tools, machine-learning.
- [crf++](https://www.automicvault.com/fr/pkg/brew/crf/) - Shares av.db curated category or tags: cli, developer-tools, machine-learning.

## Sources

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