mlx-optiq
Local LLMs on Apple Silicon

Run any LLM,
right on your Mac.

OptiQ is the local-LLM stack for Apple Silicon. Quantize open models down to a size your Mac can run, then use them three ways: from the command line, a local web app, or a coding agent in your terminal. No GPU cluster, no API key, no cloud.

$ pip install mlx-optiq
one install · three tools
CLIoptiq convertquantize & serve LABoptiq labthe workbench CODEoptiq codecoding agent
100+
models on Hugging Face
250k+
downloads / month · HF
05 How it compares

Where mlx-optiq sits among the Mac LLM options.

A snapshot of how the popular paths stack up on the things that actually move quality and speed on Apple Silicon. None of these are wrong; they're optimizing different axes.

mlx-optiq mlx-lm llama.cpp
Per-layer mixed-precision weights Yes, calibration-driven Uniform 4-bit Block-wise K-quant
Per-layer mixed-precision KV cache Yes Uniform 4 / 8 / fp16 Group-wise int8 only
Sensitivity-aware LoRA fine-tuning Rank scaled by per-layer bits Constant rank LoRA Inference only
OpenAI and Anthropic compatible server One process, both OpenAI only llama-server (OpenAI shim)
Text and image input Yes Text only Image via separate build
Sandboxed tool support for chat Three tools: web search, Python, terminal
Reading the table mlx-optiq is the only path on this list that uses calibration-driven, per-layer bit allocation for both weights and KV cache, in the native MLX runtime, with serving, fine-tuning, and image input on the vision models in the same package. The others are great at what they target. They just target different things.
06 FAQ

Running LLMs on a Mac, answered.

Can I run LLMs locally on a Mac?

Yes. mlx-optiq runs large language models natively on Apple Silicon, from M1 to M5, using Apple's MLX framework. Install it from PyPI with pip install mlx-optiq, then quantize, fine-tune, and serve models entirely on your Mac, fully offline.

Do I need a GPU or PyTorch to run LLMs on a Mac?

No. There is no PyTorch and no discrete GPU in the path. mlx-optiq is MLX-native and uses the unified memory of Apple Silicon directly, so a MacBook, Mac mini, or Mac Studio is enough. No CUDA, no cloud, no API key.

How much RAM do I need to run an LLM on a Mac?

It depends on the model. A 4-bit OptiQ quant of a 4B model needs roughly 3 GB; a 9B needs about 6 GB; larger mixture-of-experts models need more. Mixed-precision 4-bit quantization is what lets bigger models fit in a Mac's memory while staying close to full-precision quality.

What is mlx-optiq?

An MLX-native toolkit to quantize, fine-tune, and serve LLMs locally on Apple Silicon. Its core is data-driven mixed-precision quantization: it measures each layer's sensitivity and assigns per-layer bit-widths, so quants keep more quality than uniform 4-bit at the same size. It also ships a local web UI (OptiQ Lab) and an OpenAI and Anthropic compatible server.

Get started

Make your Mac an LLM workstation.

Pick a model, get a snippet, ship it. The docs cover every supported family, fine-tuning recipes, and the OpenAI-compatible serving stack.