MLX-One¶

One stack. Native MLX. Built for Apple Silicon. MLX-One brings text generation, vision-language inference, audio, OCR, retrieval, classification, segmentation, and image generation into one native MLX library. Load a model, run it from Python or the CLI, or use the local Web UI and HTTP API on Apple Silicon.
Why MLX-One?¶
Native model implementations, shared loading and task APIs, Python and CLI access, and an OpenAI-compatible HTTP server bring the workflow together on Apple Silicon. Custom Metal kernels accelerate selected operations, including attention and quantized projections.
Architecture¶
Apple Silicon Macs host inference. Android, iPhone, and iPad companion apps are planned clients of the Mac server. The 8–32 GB range describes device targets, with the 32 GB M4 Air as the measured baseline. Native execution path
Model coverage¶
Eight modalities in the current source tree, including image generation. The historical release cohort covers 45 architecture types and 50 verified checkpoint profiles across seven modalities. The model guide links to Hugging Face checkpoints for all eight. Supported models and checkpoint links
Install MLX-One 0.1.5 from PyPI with the server and image extras.
# Inspect a checkpoint without loading its weights.
mlx-one inspect openai-community/gpt2
# Generate text through the native MLX runtime.
mlx-one generate openai-community/gpt2 "The future of local AI is" \
--max-tokens 64 --temperature 0.8 --seed 0
# Start the local chat UI and an OpenAI-compatible HTTP API.
mlx-one serve LiquidAI/LFM2-350M --alias lfm2-local \
--host 127.0.0.1 --port 8888 --inference-mode reference_dense
Get started Supported models How it works
What it makes possible¶
46 native model types for generation, perception, speech and retrieval on Apple Silicon.
Explore model coverage, benchmarks and development progress
Each architecture type is counted once under its primary modality. Checkpoint sizes, revisions and quantizations share a type. The regression count records the Python 3.12 / Apple M4 run: 2,599 passed, 9 subtests and 95 skips; 54 final targeted checks also passed. The core regression matrix passed on Python 3.10–3.13. Validation scope and results.
| Workflow | Native capabilities | Start here |
|---|---|---|
| Text generation | Cached causal decoding, sampling and streaming; T5 encoder-decoder text-to-text | Generate text · T5 |
| Local applications | Python APIs, CLI workflows and HTTP/SSE serving | Serve an API and chat UI |
| Vision-language | Supported static-image and text workflows | Vision-language guide |
| Audio and speech | ASR, alignment, voice activity detection, LFM speech and Kokoro English synthesis | Audio guide · Kokoro |
| Documents | Line recognition and implemented page-model OCR workflows | OCR guide |
| Retrieval | Dense embeddings, learned sparse weights, ColBERT token vectors, hybrid scores and paired reranking | Embeddings and reranking |
| Segmentation and tracking | SAM3 image prompts and native offline/streaming video tracking | SAM3 guide |
| Classification | Sentiment, named entities, CLIP zero-shot images and supervised ViT images | Classification guides |
| Image generation | FLUX.2 Klein, Z-Image Turbo, and MOSS-Image-SFT Q4 | Image generation guide |
The model explorer records exact checkpoints and operations for the historical release cohort. Performance reports retain measured workloads, and known quality and scope limits remain visible alongside support.
Release 0.1.5¶
Available on PyPI. The bundled Web UI now supports local image generation with FLUX.2 Klein, Z-Image Turbo, and MOSS-Image-SFT Q4. OpenAI-compatible usage reports cached prompt tokens, and eligible configurations can restore a prompt prefix from SSD after a server restart.
| Apple M4 Air / 32 GB | Reference | Measured path |
|---|---|---|
| Qwen2.5-0.5B, four concurrent requests | 44.1 tok/s aggregate | 69.9 tok/s with continuous batching |
| Qwen2.5-0.5B, time to first token in one restart test | 183.8 ms cold | 78.1 ms with 259 tokens restored from SSD |
The batching result is specific to this checkpoint and workload. Image quality and performance qualification varies by checkpoint.
0.1.5 release notes · PyPI files · Previous release
Create an image¶
Open the local Web UI at http://127.0.0.1:8080, select Create Image, and
watch progress before downloading the finished PNG.
Image generation guide
Find a guide¶
- New here? Get started: install the library, generate your first response and start the local server.
- Choosing a checkpoint? Choose a model for model-family guides, input formats and implementation scope.
- Building an application? Use the Python and CLI reference or serve an HTTP API.
- Working with images or documents? See vision-language and OCR.
- Creating an image? See text-to-image generation for local execution, progress, and PNG download.
- Working with sound? Audio and speech covers the available transcription, alignment and speech-generation paths.
- Building search? Start with embeddings and reranking.
- Segmenting or tracking? Use the dedicated SAM3 workflows.
- Planning memory? Inspect and plan before loading weights.
- Looking for measurements? All-modality performance includes text, VLM, audio, OCR, HTTP and task latency, with original evidence.
In one paragraph¶
MLX-One implements native model workflows on Apple's MLX framework. Family packages own model equations, weight contracts and processing; shared runtimes manage generation, request lifecycle and caches. Python, CLI and HTTP interfaces connect applications to that execution stack. Dense reference execution remains the default, and optional MLXBoost acceleration has its own experimental scope. See architecture for the implemented components and experimental documentation for investigations, known failures and remaining gates.
Apache-2.0 · GitHub · PyPI · Citation and license
