Favorite
Discover
Collections

No collections

Log in
CollectionsDiscoverLibraryLog in
Discover/I Tried Running AI Agents on My MacBook. MLX Was Too Slow. Th…
|Article
Open original
I Tried Running AI Agents on My MacBook. MLX Was Too Slow. Then I Found oMLX | by Andrew Zhu | May, 2026 | GoPenAI
▤Article
Mmedium.com·Published in GoPenAI·7 min read

I Tried Running AI Agents on My MacBook. MLX Was Too Slow. Then I Found oMLX | by Andrew Zhu | May, 2026 | GoPenAI

  • Raw MLX was too slow for local AI agents on MacBooks when using a 35B model with long contexts, especially during prefill.
  • On an M1 Max, an 8,700-token context took about 20.35 seconds with raw MLX but only 2.95 seconds with oMLX.
  • On an M4 Max, the same 8,700-token context dropped to about 1.01 second with oMLX.
  • oMLX did not materially improve generation speed, but generation was already fast at about 42 tok/s on M1 Max and 95 tok/s on M4 Max.
  • The biggest benefit of oMLX was prefill acceleration, improving about 5.1x on M1 Max and 5.7x on M4 Max.
  • oMLX uses a tiered KV cache that keeps context in memory or on SSD so later requests can reuse it instead of rereading the full context.
  • The server also adds continuous batching, an OpenAI-compatible API, and multi-model serving.
  • The author says these features make oMLX practical for tools like Cursor and Claude Code.
  • The conclusion is that oMLX makes an older M1 Max viable for real AI agent work, though denser models may still need newer Macs like an M4 Max or M5 Max.

Your notes

Save this item to your library to add private notes.

AI Summary

oMLX makes long-context local agents practical on Macs by cutting 35B prefill from 20.35s to 2.95s on M1 Max and to 1.01s on M4 Max via tiered KV cache, while generation stays fast and it adds batching, OpenAI API, and multi-model serving.

Collection

Ask about this item

Tags

#model-optimization#productivity-workflows#macbook-performance#kv-cache#apple-silicon#developer-tools#machine-learning#llm-inference#local-llms#ai-agents
✦5 left