Guides · · updated 2026-11-30
oMLX setup and tuning on Apple Silicon
Install oMLX, serve a Qwen3.6 model over OpenAI and Anthropic APIs, and tune the KV cache for long agent sessions.
Researched and drafted with AI assistance from the cited sources. Benchmarks are single-machine third-party results: treat them as indicative, not guaranteed.
Why oMLX
Coding agents resend long system prompts and keep shifting their context. On most servers that invalidates the KV cache and forces a full prefill, which is slow on a Mac. oMLX exists to fix this. It is an Apple Silicon-only MLX server with a tiered RAM + SSD KV cache whose blocks persist across restarts, plus continuous batching and multi-model serving (LLMs, VLM/OCR, embeddings, rerankers). The project says time-to-first-token on long agent contexts drops from 30–90 s to under 5 s. That is the project’s own claim, so measure it on your machine.
Current version (Nov 2026): Apache-2.0, ~23k GitHub stars, created Feb 2026. The current stable release is 0.8.4 (2026-11-26; the Homebrew formula points at it too), which mostly makes Inkling 2 Mini faster. It is fast-moving, so expect some config friction. What changed in each release since 0.7.1, with upgrade notes, is in the release history at the end of this page.
More on the 0.8 series: what oMLX 0.8.0 added (Prefill Accelerator and oQh quants), running Inkling 2 Mini with oMLX or Ollama (which oQ build to pick and how much memory it needs), and Inkling 2 Mini’s first week of runtime updates (oMLX 0.8.4, llama.cpp v1.1.0, LM Studio 0.4.29 and Ollama 0.40.18).
Requirements
- Apple Silicon Mac
- macOS 15 or newer
Install
Either download the DMG (it includes a menu-bar app) from omlx.ai or the GitHub releases page, or use Homebrew:
brew tap jundot/omlx https://github.com/jundot/omlx
brew install jundot/omlx/omlx
Serve and connect
oMLX listens on port 8000 and exposes:
- OpenAI-compatible:
http://localhost:8000/v1 - Anthropic-compatible:
http://localhost:8000/v1/messages - Admin UI:
http://localhost:8000/admin
Load a model from the admin UI. For coding agents, Qwen3.6-35B-A3B (~20 GB at 4-bit) is the common default if you have 32 GB+ of RAM. See choosing a Qwen3.6 quant. On 32 GB+ you can also try Inkling 2 Mini (oMLX 0.8.1 or later; the oQ3e and oQ4e builds are 13.7 GB and 16.9 GB), covered in Inkling 2 Mini on a Mac.
Quick smoke test (use the model ID shown in the admin UI). Once you set an API key, inference requests need it as a Bearer token unless you turn off key verification for localhost in the admin panel’s global settings:
curl http://localhost:8000/v1/chat/completions \
-H "Authorization: Bearer $OMLX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"<model-id>","messages":[{"role":"user","content":"Say hi"}]}'
Tuning checklist
- Cap context to what you use. A larger context means more KV memory. Agents rarely need the full 262k native window.
- Keep the SSD cache tier on. It’s the whole point for agents: repeat prefixes hit cache instead of recomputing.
- Try TurboQuant KV (experimental). The 3.5-bit KV-cache setting reportedly cuts KV memory by roughly 4x, which leaves room for longer contexts. It’s experimental, so compare output quality. In 0.7.1 you can also pick Affine4 or Affine8 under Model Settings > Memory Saving > KV cache compression. In the project’s own M5 Max test (Qwen3.8-27B, 32K prompt), they cut full-attention KV by 74% and 49%, with decode within about 0.6 tok/s of BF16.
- Prefer MLX-format quants over GGUF on Apple Silicon.
- Watch memory pressure and swap in Activity Monitor. If swap grows, shrink the context or the model. Swapping causes a sharp performance cliff.
Setting names change between releases, so check the current README for exact options.
Release history
Newest first. Speed and memory figures are the oMLX project’s own measurements, not ours.
- 0.8.4 (2026-11-26) mostly makes Inkling 2 Mini faster. By the project’s figures (oQ4e-mtp on an M5 Ultra), it prefills 51-124% faster than in 0.8.3, decodes 42% faster on a short prompt and twice as fast at 128K tokens, and Lightning MTP now also runs when two or more requests decode together (two requests: 84.4 to 220.3 tok/s in total). A new, optional LoopCD decoding mode for Inkling 2 Mini (Model Settings > Experimental Features, off by default) scored slightly higher on ARC-Challenge and HumanEval in the project’s test at the cost of 9-13% slower decode. Inkling 2 Mini’s routed experts can now stay on SSD, so the oQ4e build takes 10.2 GB instead of 17.0 GB on a 24 GB Mac (project figure), and Inkling checkpoints converted by mlx-lm and mlx-vlm load. DeepSeek V4.1 decodes 10-24% faster in total with several requests, the 73.9 GB Ling-3.2-air loads on a 64 GB Mac by streaming its experts, and oMLX now uses MLX 0.32.5. When upgrading, the admin stats and global-settings endpoints no longer return the master API key (scripts call
POST /admin/api/auth/api-key), vision checkpoints that ship their own model file need Trust Remote Code, models that share a cache directory now share one SSD cache size limit, NVIDIA Prefill Accelerator helpers should pulljundot/omlx-cuda-helperagain for version 0.1.9, and source installs must rerunmake install. - 0.8.3 (2026-11-22) was an optimization release for Inkling 2 Mini and the Hy4 family. By the project’s figures, Inkling 2 Mini prefills about 20% faster and decodes 10-13% faster than in 0.8.2, rewriting a file from the context is more than twice as fast because Lightning MTP can now copy up to 15 tokens at a time (62.7 to 158.5 tok/s on an M3 Ultra), and a long context needs about a sixth of the KV memory (18 to 3 GB at 98K tokens). Hy4 Flash gives its first token about 20% sooner with the SSD cache on, and a new SSD N-gram Offload setting keeps its Engram tables on SSD (124.7 to 87.7 GiB, project figure). Claude Code’s WebSearch tool now works with local models, and long prompts on a 32 GB Mac are refused instead of running out of Metal memory. When upgrading, a Lightning MTP depth of 3 saved before 0.8.3 now reads as Model default, so pick 3 again in Model Settings; NVIDIA Prefill Accelerator helpers should pull
jundot/omlx-cuda-helperagain for version 0.1.8; and Hy4 Flash SSD cache blocks saved by 0.8.2 are not reused. - 0.8.2 (2026-11-21) was a hotfix for wrong click positions on Qwen3.8 Flash-Next screenshots that is otherwise the same as 0.8.1, released a few hours earlier.
- 0.8.1 (2026-11-21) adds Tencent’s Hy4 and Hy4-flash and Thinking Machines’ Inkling 2 Mini (text and image input; ready-made oQ4e and oQ3e builds are 16.9 GB and 13.7 GB). You can now pick a LoRA adapter (PEFT or mlx-lm format) in Model Settings > Advanced; it is applied when the model loads, also works on oQ, oQh and Lightning MTP models, and can be served under its own id as
<model>:<profile>, though not yet with DFlash, VLM MTP, MoE expert offload or the Prefill Accelerator. MTP verify on M5 is faster with many requests (the project measured Qwen3.8 27B oQ4e with 8 requests on an M5 Ultra going from 308.3 to 353.7 tok/s), and a new question on a cached long document starts much sooner on hybrid models (16.4 to 2.9 s to first token at 245K tokens on Qwen3.8 27B, project figure). When upgrading, source installs must rerunmake install, and NVIDIA Prefill Accelerator helpers should pulljundot/omlx-cuda-helperagain for version 0.1.7. - 0.8.0 (2026-11-18) added an experimental Prefill Accelerator: a PC with an NVIDIA GPU, a DGX Spark or a second Mac runs the first layers of each prompt chunk while your Mac decodes and keeps the KV cache. The project measured a 64K-prompt prefill on an M3 Ultra going from 352 to 1,062 tok/s for Qwen3.8 27B with a DGX Spark helper, with decode about the same (setup guide; both Macs need the same oMLX version). It also added oQh, an oQe option that stays closer to the original model at the same file size, most of all at 2 and 3 bits, though oQh models run only in oMLX, not in mlx-lm. Existing oQe models keep working; quantize again to get 0.8.0’s more accurate rounding.
- 0.7.3 (2026-10-31) lets the Ask AI bar hold voice conversations, search the web, read links and look at your screen, and there is a new
/v1/realtimeendpoint that follows a subset of the OpenAI Realtime API. Running many long-context requests at once uses much less memory because the batch KV cache is updated in place (the project measured 248 to 161 GiB peak for eight MTP streams at 81K on an M3 Ultra). The model manager can now download only the files that changed when a Hugging Face model is updated, and a GPU Power Limit setting caps power draw on battery. When upgrading, source installs must rerunmake install, theqwen35_oq_a8_*settings are renameda8_prefill_*(migrated on load), and new oQ quants can be 2.8-4.5% larger than before. - 0.7.2 (2026-10-21) brought the faster DeepSeek V4.1 decode kernels to the oQ2e, oQ2.5e and oQ3e builds, adds Lightning MTP to distributed inference, runs Qwen3.8-Flash-Next GGUFs through Splash 1.4.0, and stops Claude Code turns from re-prefilling the whole conversation. If you build from source, run
make installafter updating. - 0.7.1 (2026-10-20) rolled up the 0.7.1 dev and RC builds (a Recommended tab under Models > Downloader that lists only models your Mac can load, Splash as an optional external engine, and Meta’s Muse Spark Open, though its oQ3e build is ~370 GB, so only 512 GB Macs need apply) and added GGUF downloads served through Splash, new Affine4/Affine8 KV cache formats, a fix for GPU hangs when several models run at once, and much faster DeepSeek V4.1 decode. If you are upgrading from 0.7.0 (2026-09-30), read the 0.7.1rc1 upgrade notes: new sampling defaults, removed
OMLX_*debug variables and removed DFlash settings. - DeepSeek’s V4.1-Flash-1017 refresh (2026-10-17) got same-day oQ builds on mlx-community, from ~313 GB (oQ2e) to ~432 GB (oQ4e); oMLX’s Engram SSD offload keeps the ~123 GB of Engram tables on disk to cut resident memory.
FAQ
How do I install oMLX on a Mac?
You need an Apple Silicon Mac on macOS 15 or newer. Download the DMG (it includes a menu-bar app) from omlx.ai or the GitHub releases page, or use Homebrew: brew tap jundot/omlx https://github.com/jundot/omlx, then brew install jundot/omlx/omlx.
What port does oMLX use?
Port 8000. The OpenAI-compatible API is at http://localhost:8000/v1, the Anthropic-compatible API at http://localhost:8000/v1/messages, and the admin UI, where you load models, at http://localhost:8000/admin.
What is the latest version of oMLX?
The current stable release is 0.8.4 (November 26, 2026), and the Homebrew formula points at it too. It mostly makes Inkling 2 Mini faster, by the project's own figures. The release history on this page lists what changed in each version and what to do when upgrading.
Does oMLX work with Claude Code?
Yes. oMLX serves an Anthropic-compatible API at http://localhost:8000/v1/messages. Since 0.7.2, Claude Code turns no longer re-prefill the whole conversation, and since 0.8.3 Claude Code's WebSearch tool works with local models.
How much RAM do I need for oMLX?
The model you load sets the memory you need, not oMLX itself. For coding agents, Qwen3.6-35B-A3B (about 20 GB at 4-bit) is the common default if you have 32 GB or more; Inkling 2 Mini's oQ3e and oQ4e builds are 13.7 GB and 16.9 GB. Keep an eye on memory pressure and swap in Activity Monitor, and shrink the context or the model if swap grows.
Sources
- https://github.com/jundot/omlx
- https://github.com/jundot/omlx/releases/tag/v0.8.4
- https://github.com/jundot/omlx/releases/tag/v0.8.3
- https://github.com/jundot/omlx/releases/tag/v0.8.2
- https://github.com/jundot/omlx/releases/tag/v0.8.1
- https://github.com/jundot/omlx/releases/tag/v0.8.0
- https://github.com/jundot/omlx/blob/v0.8.0/docs/experimental/prefill-accelerator.md
- https://github.com/jundot/omlx/releases/tag/v0.7.3
- https://github.com/jundot/omlx/releases/tag/v0.7.2
- https://github.com/jundot/omlx/releases/tag/v0.7.1
- https://github.com/jundot/omlx/releases/tag/v0.7.0
- https://github.com/jundot/omlx/releases/tag/v0.7.1.dev2
- https://github.com/jundot/omlx/releases/tag/v0.7.1rc1
- https://github.com/jundot/omlx/pull/3574
- https://huggingface.co/mlx-community/DeepSeek-V4.1-Flash-1017-oQ2e-mtp
- https://omlx.ai/
- https://dev.to/chikitins/how-to-install-and-tune-omlx-on-m5-max-128-gb-3no1
- https://www.oflight.co.jp/en/columns/omlx-apple-silicon-llm-inference-server-2026
- https://www.reddit.com/r/LocalLLM/comments/1t1veme/slow_performance_with_qwen_3627b_gemma_431b_on_m3/
Compare every runtime and model, with suggested RAM and sources, in the Models & Tools directory.
Skip the trial and error: sourced config packs →
Get the weekly Mac local-AI digest
New models, tool updates, and sourced configs. Free. Unsubscribe anytime.
We use your email only for the UnifiedMem newsletter. Unsubscribe anytime. See ourabout page for contact.