oMLX Speeds Up Local AI on Macs, but Memory Can Erase the Gains
oMLX caches local AI work on your Mac's SSD. We inspected version 0.8.5, its dependencies and bug reports to find what to test before switching.

oMLX makes a useful promise for developers running AI on a Mac: save previously computed prompt state to an SSD, then reuse it instead of processing the same context again. The catch is that saved work does not remove working-memory pressure. A current report against version 0.8.5 describes a 32 GB Mac slowing from roughly 55 to 12 output tokens per second after a longer prompt, until the model reloads. That is a user's finding on one configuration, not our benchmark or a universal failure. The report includes measurements and reproduction code.
The project appeared in GitHub's trending recommendations during our December 5 check. Its December 4 release adds Qwen4 support and an experimental Transformers engine. There is enough here to justify a weekend trial. There is also enough in the source and issue tracker to reject a straight swap into an unattended coding workflow without testing.
Our verdict: try it for repeated, context-heavy local work on hardware you already own. Judge it by complete tasks and sustained memory behavior, rather than a fast first answer. We inspected the tagged source and ran the dependency audit below. Our test host is Intel, so we did not run Apple Silicon inference or reproduce the reported speed figures.
How oMLX makes repeated context cheaper
The README describes a local server with a menu-bar app, model management and an OpenAI-compatible interface. Its normal MLX path requires Apple Silicon, macOS 15 or later, and Python 3.11 through 3.13 for source installation. Those requirements immediately rule out treating it as a portable replacement for every developer's existing server.
The interesting part is prefix reuse. A coding assistant repeatedly sends repository instructions, tool definitions and conversation history. If much of that beginning stays identical, the server can reuse computation. The SSD cache implementation stores blocks, scans existing files at startup and manages disk eviction. This gives persistence a purpose beyond keeping one chat window open.
Think of a repository with a stable instruction block and changing questions. Reusing that shared beginning is useful. A different repository, edited instructions or changed tool definitions creates a different test. A fast repeat of the exact same request cannot tell you how quickly the server processes unfamiliar context.
There is a revealing default in the tagged settings code: the extra hot-cache budget is 0, while SSD caching is enabled. The headline feature list does not mean a separate RAM cache automatically receives a generous allocation. Inspect your actual settings before comparing runs.
A model can fit and still become painfully slow
Issue #5996 concerns an M2 Max MacBook Pro with 32 GB, running Qwen4-35B-A3B with roughly 23 GB active. The reporter describes a persistent slowdown after a prompt exceeding about 1,000 tokens and investigates Metal residency and wired-memory limits. The issue explicitly leaves other machines, other models and long sessions untested.
That distinction matters. This is evidence of a specific failure worth checking, not proof that every 32 GB Mac behaves the same way. It also does not establish a safe system-wide memory tweak. Start with a smaller model and shorter context before copying low-level changes from a bug report.
Our practical inference is simple: successful loading is an inadequate acceptance test. Run a short request, a representative long request, then another short request. If the final request stays slow, your normal workflow has a problem even though the model technically fits.
Disk deserves its own limit. The documented automatic cache budget uses half of free space plus existing cache files. A developer who expects a small disposable cache should set a fixed budget instead. This constrains stored state; it does not create additional memory for active inference. The CLI documentation explains the calculation and fixed-size option.
The installation changes the benchmark
The custom-kernel documentation identifies a substantial comparison trap: the macOS DMG includes native kernels, while a plain editable Python install does not. Homebrew builds them only with its custom-kernel option. Building requires full Xcode and the Metal toolchain.
That means two people saying they tested the same release may have different execution paths. Before arguing about speed, collect the install method and loaded-kernel status alongside the chip, memory, model revision, quantization and context length.
The dependency manifest also deserves attention. In the tagged pyproject.toml, MLX is pinned to 0.32.5, nanobind to 3.1.0 for builds, and several model libraries are installed from specific Git commits. The comments explain that native binaries depend on the selected MLX ABI. Upgrading one library independently can invalidate the installation you meant to benchmark.
The server itself carries an Apache-2.0 license. Check the chosen model's separate license before deployment; the server's license is not evidence about downloaded weights.
This is the source-only audit we ran, requiring Python 3.11 or later and Git. It reads metadata without installing the AI runtime or importing repository code:
git clone --depth 1 --branch v0.8.5 https://github.com/jundot/omlx.git
cd omlx
git rev-parse HEAD
python3 - <<'PY'
import pathlib, tomllib
p = tomllib.loads(pathlib.Path('pyproject.toml').read_text())
print('Python:', p['project']['requires-python'])
print('License:', p['project']['license'])
for dep in p['project']['dependencies']:
if dep.startswith(('mlx', 'transformers')):
print(dep)
print('Build:', p['build-system']['requires'])
PYOur checkout resolved to 318f6c65e1ba74772233e67b0c0e1b094f5ba96c. Save the output with your test results. A release number alone does not record every resolved dependency.
Test the work, not just the token counter
The project's benchmark implementation distinguishes warm-up and cache state, including unique prompt prefixes to avoid unintended reuse. Preserve that distinction in your own measurements.
| Run | Keep controlled | Decision it supports |
|---|---|---|
| Fresh context | Loaded model, unused prompt prefix | Can it ingest unfamiliar repository context quickly enough? |
| Exact repeat | Identical request and model settings | Does reuse improve your repeated workload? |
| After restart | Same saved context, completed cache writes | Does persisted state help your next session? |
| Long then short | Same model, realistic context growth | Does a large request leave later work slow? |
| Tool loop | Actual client, model and tool definitions | Does the assistant complete the job correctly? |
Measure end-to-end time and inspect the answer. Record output length too: a shorter answer can look faster without demonstrating a faster engine. Treat concurrent users as a separate test, because a single successful session cannot establish shared-server capacity.
The tool-loop row is especially important. Issue #5997 reports a gpt-oss parser path dropping a tool call when the model emits it without preceding reasoning. The reporter supplies a parser-only reproduction and describes an empty answer ending the agent loop. It remained open when checked. We did not reproduce it, and it should not be generalized to every model. It is a concrete reason to test multi-step tools rather than just asking for a paragraph.
What to do
For an Apple Silicon trial, the DMG is the least complicated documented route to the bundled kernels. For a source installation you can hold at the inspected release, use a dedicated environment with a supported Python and full Xcode plus its Metal toolchain. After the audit checkout above, the project's Makefile supports:
python3.13 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
make install PYTHON=python
python -c "from omlx.custom_kernels import native_kernel_status; print(native_kernel_status())"We verified these against the build instructions, but did not execute the Apple Silicon installation. Next, download a compatible model through the admin interface, review its model card, and start with explicit local and disk boundaries:
omlx serve --host 127.0.0.1 \
--model-dir "$HOME/.omlx/models" \
--paged-ssd-cache-max-size 20GBFor a local API smoke test, list model identifiers, then replace YOUR_MODEL_ID with the one you downloaded:
curl --fail-with-body http://127.0.0.1:8000/v1/models
curl --fail-with-body http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"YOUR_MODEL_ID","messages":[{"role":"user","content":"Reply with READY"}],"max_tokens":32,"temperature":0}'Add your configured authorization header if authentication is enabled. These requests check connectivity, not performance. Keep the server local while evaluating it, then run the five workload checks with your actual coding client. Adopt it when those complete reliably with memory headroom. A cached answer that arrives quickly is useful; a coding task that silently ends halfway through is still unfinished.


