The supported list, briefly
mlx-lm dispatches to the right code path for a model based on the architecture name in the model's config.json. As of 2026-05 (mlx-lm 0.31.3), the package ships implementations for over 100 architectures — every mainstream open-weights LLM family you'd expect, plus a long tail of variants and forks.
You don't need to memorize this list. You need to know two things — how to check whether a given Hugging Face model will Just Work with mlx-lm, and what to do when the answer is no.
The biggest families you'll actually use
- llama family —
llama,llama3,llama4_text. Meta's open-weights line, and the de-facto baseline architecture that many derivatives reuse. If a model claims to be "Llama-shaped," mlx-lm probably loads it. - qwen family —
qwen,qwen2,qwen2_vl,qwen3,qwen3_vl,qwen3_moe,qwen3_next. Alibaba's competitive open-weights line; very actively supported. - mistral family —
mistral,mistral3,mixtral. Mistral AI's models, including the MoE variant. - phi family —
phi,phi3,phi3small,phimoe,phixtral. Microsoft's small-but-strong line. - gemma family — Google's open-weights line, multiple sizes.
- deepseek — frontier-quality reasoning models.
- mamba / mamba2 / ssm / rwkv7 — state-space and RNN-style alternatives to the transformer; smaller communities but supported.
How to check before you download
For a Hugging Face repo with config.json, the model_type field tells you the architecture name. If that name is in mlx-lm's models/ directory, the model loads. The code block below is the inspector — peek at mlx_lm.models to list every architecture mlx-lm ships, and then check a candidate model against that list.
What to do when the architecture isn't supported yet
- Check if there's a recent issue or PR on
ml-explore/mlx-lm. New mainstream models usually get a PR within days. - Look for an MLX-format conversion on the
mlx-communityorg — sometimes the community has already adapted the architecture name to a supported one. - Wait or contribute. mlx-lm's release rhythm is fast (lesson 6 of foundations); a missing architecture is rarely missing for long.