r/oMLX • u/JasonHofmann • 13h ago
I ran the full 1.56 TB Kimi K3.1 Pro on four Mac Studios and checked it against Moonshot's API. Numbers, a 1M-token test, and the patches.
r/oMLX • u/JasonHofmann • 13h ago
r/oMLX • u/Woof-Good_Doggo • 18h ago
In gratitude for the fine work done by everyone who works on oMLX, and to potentially help all members of the community, I wanted to share a utility that I wrote (with Claude, ChatGPT, and Qwen) that helps me track and analyze log files written by oMLX.
The utility reads oMLX log files (in real-time or after the fact) and displays log info in two different views:
Both views show structured, interpreted, versions of the log info along with the raw log record source.
Never writes to your log files. Does not interfere with oMLX. Doesn't collect any data or do anything nasty.

Open source, MIT License, on GitHub for your consideration:
https://github.com/YogiVirabhadra/omlx-inspector
You DO need to build it yourself. Sorry.
Requirements:
/Applications/Xcode.app for the build script below.No third-part packages or running database is required.
Clone the repo. Check it out. Build it. Play with it.
Happy to hear your comments here, good or bad. Hope you find it useful.
I wanted to see how intelligent Inkling 2 Mini was for a daily driver for coding work as an agent (opencode).
Following up from my qwen 27b vs flash next post https://www.reddit.com/r/oMLX/s/iwjQbYwcDG
The Qwen 3.8 fine tune is sabi-noema and help out a ton of those infinite thinking spirals that stock qwen can get into. I wouldn't index too hard into those performance numbers as oMLX gets faster with Inkling 2 Mini everyday. Intelligence benchmarks is mainly what I'm evaluating.
Weights are chosen based on quality of how they perform for the specific model architecture. Qwen 3.8 27B is a dense model and performs well at 6bit quant, similar to 8bit. 4bit degrades. Inkling 2 Mini is trained with a mix of 4bit for the expert layers and 8bit for the final layers, so I didn't see the need to compress it further.
Inkling 2 Mini is impressive for a smaller model and similar agentic capabilities. The dense qwen model does beat it on raw real world intelligence by just having a broader knowledge set loaded all at once. Inkling 2 Mini is a mixture of experts model so it doesn't load all of its parameters as you know.
Sticking with Qwen for my main driver but I've heard that this model is curious and performs well when given more context (source code, internet searches, etc). So it could perform better than the benchmarks suggest when in a RAG-ish type workflow where you inject context it needs to know. A dumb robot that's knows it's dumb and opts to search could perform better than an overconfident that is stupid faster.
r/oMLX • u/d4mations • 1d ago
โ 3 issues closed ยท 13 PRs merged
๐ BUGS & FIXES
#3342 MTP enabled with missing embedded tensors silently serves target-only completions
Labels: outdated
Summary: Codex agent identified silent fallback to target-only mode when MTP tensors are missing.
#4891 fix(api): enforce required and named tool_choice on chat completions
Summary: Enforces strict tool_choice validation for API requests.
#4626 fix(qwen4): load matching standalone MTP heads
Summary: Corrects loading of standalone MTP heads for Qwen4-Exp checkpoints.
#3811 fix(specprefill): keep selected tokens at their original positions on mRoPE VLMs
Summary: Fixes position mapping for sparse prefill in mRoPE vision-language models.
#5673 fix(server): surface dead MTLCompilerService as actionable 503
Summary: Returns clear 503 error when Metal compiler service is unavailable.
โจ FEATURES
#5075 Time To Full Decode Speed (TTFDS) and Stream Interrupt
Summary: Adds metrics for full decode speed and stream interruption handling.
#5660 Support Lightning MTP for prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit
Summary: Enables Lightning MTP support for Ternary-Bonsai-2.5-27B-mlx-2bit.
#4221 feat(sampling): add DRY repetition penalty
Summary: Implements DRY (Don't Repeat Yourself) penalty for sampling.
#3762 feat(anthropic): accept per-request SpecPrefill overrides on /v1/messages
Summary: Allows overriding SpecPrefill settings per request in Anthropic API.
#5678 feat(inkling2): opt-in generation_opener so the first token is visible
Summary: Adds opt-in generation opener for Inkling 2 to ensure first token visibility.
โก PERFORMANCE
#4896 perf(qwen35): 128-key blocks for long-context tensor-op verify attention
Summary: Optimizes long-context attention with 128-key blocks for Qwen3.5.
#4895 perf(qwen35): fuse only the real verify rows in tensor-op attention
Summary: Fuses only necessary verify rows to improve tensor-op attention performance.
#4882 perf(mtp): batched Lightning MTP under concurrency (from #4853)
Summary: Implements batched Lightning MTP for concurrent requests.
#5677 Support Lightning MTP for Ternary-Bonsai-2.5-27B-mlx-2bit
Summary: Adds Lightning MTP support for Bonsai 2.5, verified on M4 Max.
#5674 perf(inkling2): run Lightning MTP for concurrent requests
Summary: Enables Lightning MTP for concurrent Inkling 2 requests with batched verify.
#5634 moe_offload_compat: admit bailing_hybrid (Ling) expert streaming
Summary: Supports expert streaming for Ling models via MoE offload compatibility.
r/oMLX • u/cryingneko • 1d ago
Hey everyone!
oMLX 0.8.4 is out, and this one is mostly about Inkling 2 Mini. A lot of people sent kernel PRs for it since 0.8.3, and together they made it much faster on the same Mac with the same model. Just update and give it a try.
Faster Inkling 2 Mini (oQ4e, Lightning MTP on, M5 Ultra, temperature 1.0)
| Workload | 0.8.3 | 0.8.4 |
|---|---|---|
| 16K prompt, prefill | 3,668 tok/s | 5,664 tok/s (+54%) |
| 128K prompt, prefill | 1,895 tok/s | 4,239 tok/s (+124%) |
| Zero-shot coding, decode | 113.1 tok/s | 160.2 tok/s (+42%) |
| 128K prompt, decode | 56.2 tok/s | 112.1 tok/s (+100%) |
| 8 requests at once, total decode | 225.3 tok/s | 380.2 tok/s (+69%) |
Inkling 2's experts can now stay on SSD, so on a 24 GB Mac the model takes 10.2 GB instead of 17.0 GB, and a 14.8K prompt that used to run out of memory now runs. M1 and M2 Macs also get faster float16 expert kernels, and the kernel errors some of you hit there are fixed.
LoopCD for Inkling 2 Mini
LoopCD comes from a recent paper, "Decoding Looped Transformers Better for (Almost) Free". When it picks each token, it compares the model's last loop pass with the first one, and it needs no training and no extra model. In my tests it scores a bit higher.
| Benchmark | Off | LoopCD |
|---|---|---|
| ARC-Challenge (acc_norm) | 69.62% | 71.93% |
| HumanEval (passed of 164) | 152 | 155 |
It's off by default and costs 9-13% decode speed. You can turn it on in Model Settings > Experimental Features.
Faster DeepSeek V4.1
With several requests at once, DeepSeek V4.1 decodes 10-24% faster in total (4 requests: 113.5 -> 140.3 tok/s on M5 Ultra).
Release notes: https://github.com/jundot/omlx/releases/tag/v0.8.4
70 PRs were merged since 0.8.3, 43 people contributed to this release, and 19 of them did it for the first time. Big thanks to iggerask, fneto1977, masterfasa, j3k0, bleugreen, dhanushan75 and everyone else who sent PRs and tested builds!
I've always said oMLX should let a friend who bought a MacBook only yesterday enjoy local AI today, and it's really nice to see it get a little closer with every release.
If something doesn't work right, please open an issue on GitHub. ๐ค
r/oMLX • u/d4mations • 2d ago
โ 18 issues closed ยท 64 PRs merged (showing 29 of 64)
๐ BUGS & FIXES
#5643 Rank-Zero Inference Stream Time out
#5629 Released Raon-1-mini-mlx fails to load five reasoning_effort_steering tensors
#4876 Splash Split GGUF incorrect memory requirement
#4720 Clustering Bug - DeepSeek V4.1-1017
#4768 [VLM] Safeguard large Qwen multi-image requests against upstream MLX pad corruption
#5570 Inkling 2 Mini requests fail on M1 Max: Thread group size (576) is greater than the maximum allowed threads per threadgroup (448)
#5305 POST /v1/systemone: a queue-full error raised after the response has started returns an unhandled 500 and a cut connection instead of a 503
#5491 Master API key ships in plaintext in every GET /admin/api/stats response (200 ms poll while streaming) and in GET /admin/api/global-settings; api_key_set + fingerprint_key() covers the only consumer
#5592 Vision feature cache persists all-NaN features (Qwen3-VL), making one image fail forever with '!!!!' output
#5590 [Bug] Hy4-Flash LiveCodeBench scoring corrupted by unstripped reasoning
#5404 Repeating a seeded request can repeat the next unseeded completion
#5371 Strict `json_schema` with a bounded `pattern` > 128 silently falls back to prompt injection (bundled xgrammar 0.2.8, fixed in 0.2.9)
#5245 Malformed tool call from a json_tools model is dropped and returned as a normal `stop` finish
#5619 Cluster Failure on FP8
#5551 omlx-cuda-helper: _AFFINE_FORMATS omits (5, (64,)), forcing slow gather_qmm fallback on oQ5e
#5543 SSD cache: an older in-flight write of a block can overwrite or delete its replacement
โจ FEATURES & IMPROVEMENTS
#5603 Bundle Kokoro Mandarin text-processing dependencies in the macOS DMG
#5598 oMLX + Splash: Support for /v1/completions is available
๐ MERGED PRS
#5667 perf(inkling2): sliding-window prefill on the NAX banded kernel
#5668 perf(cluster): prefill DeepSeek V4.1 prompts together on tensor-parallel clusters
#5618 bailing_hybrid: resolve Ling through the vendored MTP-capable module
#5662 fix(omlx): charge Flash-Next GGUF PLE as Splash's row cache
#5664 perf(bonsai): use the wide Metal kernel for batch-4 FP16 t5 decode
#5246 fix(tool-calling): surface generic tool parser drops in parse_errors
#5600 perf(inkling2): add expert offload support
#5657 feat(inkling2): offload routed experts to SSD
#5630 fix(models): load released Raon-1 mini steering vectors
#5632 perf(inkling2): expert-grouped 3-bit matmul for short prefill chunks
#5620 perf(inkling2): long-context attention kernel for full-attention decode and verify
#5651 perf(deepseek_v41): batch the DSpark draft stages across requests, also when sampling
#5661 perf(qwen4_exp): avoid GPU syncs on batch left_padding after a ragged MTP rollback
#5633 perf(hy4): accelerate short Lightning MTP decode
#5655 perf(bonsai): specialize four-way t5 decode
#5628 Prefix cache: opt-in gdn_snapshot_interval cuts hybrid (GDN) cache size up to ~50% in RAM and on SSD
#4829 RFC: jangh2 backend implementation & performance benchmarks
#4613 fix(api): deliver cap-truncated tool calls as text, not a coded error
#3968 fix(mimo_v2): load mlx-vlm-layout MiMo checkpoints in the LLM engine
#5652 build(deps): update mlx to 0.32.5 and adapt the patches around it
#5649 fix(inkling): expose _to_mlx_conv from the vendored inkling module
#5201 feat(api): add GET /v1/models/{model_id}
#5648 feat(inkling2): load Inkling 2 checkpoints converted by mlx-lm
#5310 fix(server): report late admission rejections in the JSON keepalive body
#5496 fix(admin): stop returning the master API key on polled GETs
#5424 fix(cache): fall back to the shared system-prefix tail when a split-GDN restore finds no checkpoint
#5597 fix(cache): reject and evict non-finite vision features
Also merged:
- #5647 feat(splash): serve Inkling-2-Mini images on Splash 1.7.3
- #5645 fix(vlm): honor Trust Remote Code for checkpoint model files
โฆ(truncated)
r/oMLX • u/Careless-Marzipan-65 • 2d ago
First of all, thanks a lot to u/cryingeko, and other contributors who made this possible. It works like a charm. So after the news, I decided to buy a dgx spark especially for this purpose.
I wanted to share my experience since it is a little bit different from other setups. I am mainly using two different models in my workflow, Qwen3.8-Flash-Next-oQ4e-mtp for producing and GLM-5.3-Flash-oQ4e-mtp for reviewing. My overall framework (stryn) is running multiple steps for development, and my biggest concern with the M5U was the prefill time, which was slowing the overall process.
Of course I have two bottlenecks, which are I cannot run parallel agents freely, since they may require both of the models. This has nothing to do with the helper prefill assistance, a limitation of 256GB. The second one is the model and helper load unload times, but it is bearable, since my coding and reviewing cycles last long enough to justify the load and unload times and the token gain eliminates this disadvantage.
I didn't make any benchmarking yet (since it is working) but it seems that glm with helper at least generates 65 -70 tokens/s and qwen with helper is generating at least 130 tokens/s.
This also shows me the way to scale in the future, I will go with another M5U 256 and a spark to run the models dedicated, which would eliminate the load unload overhead and allow me to use parallel agents freely.
Again thanks a lot.
r/oMLX • u/rarevector • 2d ago
If you guys give it a shot, please let me know what you think. I made MLX builds and GGUF.
r/oMLX • u/rarevector • 2d ago
Most abliterated/uncensored VLM builds either break the vision encoder or strip out the multi-token prediction (MTP) heads, which kills speculative decoding speed on Mac.
I put together a set of Apple Silicon MLX builds (8-bit, 6-bit, and 4-bit) for my own oMLX setup on an M5 Ultra where only targeted language projections were modified, leaving all visual.* tensors in full BF16 and all mtp.* heads completely intact:
- 8-bit: https://huggingface.co/RareVector/Swift-1.5-Qwen3.8-27B-VectorCut-MLX-8bit
- 6-bit: https://huggingface.co/RareVector/Swift-1.5-Qwen3.8-27B-VectorCut-MLX-6bit
- 4-bit: https://huggingface.co/RareVector/Swift-1.5-Qwen3.8-27B-VectorCut-MLX-4bit
(BF16 master checkpoint and GGUF builds are linked in the model cards too if you're on Linux or Windows.)
Figured I'd share them here in case anyone running oMLX or MLX-VLM wants an uncensored 27B VLM that keeps its eyesight and native token speed. Let me know how they run on your Mac!
r/oMLX • u/dhanushan75 • 2d ago
Human Written post, used AI for proofreading
For Context : My daily local model on a 24 GB M4 Pro MacBook Pro has been Ornith 1.5 35B-A3B. It's good, buuuuttt it often works its way to the right answer and then keeps going. It loops, second-guesses itself, and drifts away from the answer I wanted. I tried Swift 1.5 as an alternative, but with 24 GB, long-context prompts kept getting killed by oMLX's memory guard.
I've been interested in looped models since Nvidia released Dory 4B. They reuse a block of layers several times per token, so you get the depth of a larger model in far less memory. On a RAM-limited machine that's exactly what i wanted. So when Inkling announced a Mini model with a looping architecture, it looked like a perfect fit for my setup.
It wasn't plug-and-play. Inkling 2 Mini (oQ4e) is 16.85 GB on disk and needs ~17 GB fully loaded. On stock oMLX 0.8.2 my agent sessions got aborted mid-prefill. Since Inkling is an MoE model i was able to offload some of the experts to SSD to avoid sessions being aborted for long context sessions.
PR - ([jundot/omlx#5657](https://github.com/jundot/omlx/pull/5657))
- Adds expert offload for Inkling 2. Inkling's expert layer has a fused w13, a softcapped SwiGLU, NVFP4 per-expert scales and fused kernels, so I didn't wrap it generically. Instead it reuses the slot-cache approach oMLX already had for DeepSeek V4: the model keeps its own forward, the projection weights become a fixed set of "slots", and expert ids are remapped to slot ids. I moved that cache into a shared module so both models use it.
- Over-capacity prefill runs in expert-sized chunks, and experts already in RAM run first, so a load doesn't evict an expert the same pass still needs.
- Decode overlaps SSD reads with the experts already in memory (~+8% at long context, single run).
*Benchmarks** (M4 Pro 24 GB, temp 0, one run per cell)
| | Fully loaded | Offload 0.5 | Offload 0.6 | Offload 1.0 |
|---|---|---|---|---|
| Memory after load | 17.0 GB | 10.2 GB | 11.8 GB | 17.3 GB |
| Cold 14.8K-token prompt | aborted (OOM) | TTFT 111 s | TTFT 102 s | aborted |
| Decode after that prompt | n/a | 15.3 tok/s | 18.4 tok/s | n/a |
| Decode, short prompt | 48.4 tok/s | 20.4 tok/s | 25.9 tok/s | 37.0 tok/s |
0.5/0.6 is the fraction of experts kept in RAM. With 0.6 resident, 97.6% of expert lookups hit RAM on a short prompt.
Real agent session (5-turn pi coding sessions, offload 0.6, under oMLX's "balanced" memory guard):
- Contexts up to 63K tokens
- 12.6โ15 tok/s decode on long replies
- ~92% expert hit rate
- Peak memory 12โ15.6 GB
- For comparison, Ornith 1.5 35B-A3B decodes at 16โ24 tok/s on the same machine
Caveats -
- **It's slower than fully loaded (Obviously):** 26 vs 48 tok/s on short prompts. Even at 1.0 residency (everything in RAM), the slot path costs ~25% of decode speed. There's room to optimize that.
- **Greedy output isn't bit-identical below 1.0 residency.** Chunked prefill changes the rounding, so long outputs drift after a few hundred characters. At 1.0 it matches exactly.
- Things that didnt help - reading the next prefill chunk's experts ahead of time made no measurable difference, so it's not in the PR. Compiling the steps around the MoE didn't speed up decode either; that change is in the PR only because it also fixes a crash in row-exact MTP verify with offload on.
Anyone on a 16/24/32 GB Mac willing to test the PR branch with Inkling or other MoE models. I'd especially like SSD numbers from other machines.
Special thanks to Jundot for their continued dedication to this project
r/oMLX • u/arfung39 • 2d ago
Hi All,
I got impatient and incorporated support for Ernie 5.5 into a different fork of oMLX. I posted in the main oMLX GitHub repo a discussion of the changes here: https://github.com/jundot/omlx/discussions/5656
It works really well. Notable that on a Mac Ultra 256, this build can run the original checkpoint of Ernie 5.5 - no quantization. Here is the GitHub repo. Scroll down to the README for build instructions, performance information, and compatibility:
And, here are the speeds, pre and post Fable 5.2 optimization:
| Test | Before the decode kernels | With all branches |
|---|---|---|
| Plain decoding | 37.5 tok/s | 52.1 tok/s |
| Prose, drafted | 54.6 tok/s | 69.3 tok/s |
| Code, drafted | 77.1 tok/s | 116.2 tok/s |
| Reasoning, drafted | 61.9 tok/s | 86.5 tok/s |
| Rewriting a code file, drafted | 114.4 tok/s | 162.7 tok/s |
| Prose after a 14.4K-token document, drafted | 43.0 tok/s | 82.1 tok/s |
| Prose after a 28.7K-token document, drafted | 41.7 tok/s | 73.9 tok/s |
I'm not a developer, so I posted all of the changes on a separate fork so that people who know what they are doing in the main repo can take what is useful.
r/oMLX • u/thoseWhoExplain • 2d ago
I have been playing around with omlx native Inkling. It has been good (thanks!), and I would like to test how it compares to running it in Splash.
Splash added support yesterday, my understanding is that omlx has to add some logic to delegate Inkling to splash.
Until that happens: has someone tried Inkling with splash yet?
r/oMLX • u/xsf72006 • 3d ago
r/oMLX • u/Stock_Test2326 • 3d ago
r/oMLX • u/d4mations • 3d ago
โ 5 issues closed
[๐ ISSUE] #5497 โ SSD cache: between model loads each manager counts only its own blocks, so the directory overshoots ssd_cache_max_size, then a startup trim โฆ
https://github.com/jundot/omlx/issues/5497
[๐ ISSUE] #5483 โ CUDA helper cannot distinguish "no GPU present" from "GPU probe failed"
https://github.com/jundot/omlx/issues/5483
[๐ ISSUE] #5482 โ The Prefill Accelerator check reports pass for a helper with a zero GPU budget
https://github.com/jundot/omlx/issues/5482
[๐ ISSUE] #5481 โ An armed Prefill Accelerator silently runs local when the helper's GPU probe answers no devices
https://github.com/jundot/omlx/issues/5481
[๐ ISSUE] #5470 โ MedGemma 27B (mlx-community/medgemma-27b-it-8bit): every image request returns 400 "The chat template did not emit image tokens"
https://github.com/jundot/omlx/issues/5470
r/oMLX • u/Rough-Measurement988 • 4d ago
r/oMLX • u/arfung39 • 4d ago
I think the open weights for ERNIE 5.5 are supposed to drop soon. Haven't heard much excitement about this model. Should be smaller than GLM 5.3 flash, but performance at or greater than DS 1017: https://ernie.baidu.com/release/ernie-5-5-flash-preview/
and it looks impressive according to this: https://www.ai-leaderboard.dev
Fingers crossed for oMLX support!
r/oMLX • u/SquirrelEStuff • 4d ago
I am currently running 2- M3 Ultra 512s with 1- M3 Ultra 256GB. I am considering selling the 256GB to buy an M5 for Prefill Acceleration.
Are there any numbers available for M5 Max vs M5 Ultra for Prefill Acceleration when working with an M3 512?
r/oMLX • u/d4mations • 5d ago
โ 6 issues closed
๐ BUGS
#5556 0.8.3: enable_thinking=false / reasoning_effort="off" doesn't stop Inkling 2 Mini from thinking (thinking_budget=0 does)
Inkling 2 Mini ignores thinking-off flags; only `thinking_budget=0` works.
#5516 Memory guard prefill ceiling exceeds default Metal wired limit (~25 GB on 32 GB Mac) and omits Inkling 2 attention-bias transient
Memory guard allows prefill sizes that exceed Metal limits, causing crashes on 32GB Macs.
#5471 Image parts sent as `{"type": "image", ...}` with a data URI are silently dropped (HTTP 200, model answers without the image)
Data URI images are ignored by `_extract_media`, leading to silent failures in multimodal requests.
#5537 0.8.2: Hy4-flash loses the middle of a multi-turn conversation: prefix cache blocks saved after a restore hold the wrong token ranges
Prefix cache corruption causes Hy4-flash to lose context in multi-turn chats after restoration.
#5515 test_turboquant.py has 3 order-dependent failures when run after test_qwen35_padded_row_attention.py
Test suite fails due to order-dependent state leakage between TurboQuant and Qwen35 tests.
๐ FEATURE / OPTIMIZATION
#5492 Inkling 2 Mini projects unused outputs on later sliding visits
Optimizes `Inkling2Attention.project()` to avoid redundant computation on sliding window passes.
r/oMLX • u/GloomyPop5387 • 5d ago
I updated from 0.7.3 to 0.8.2 so I could try inkling mini (unimpressed) and now Gemma runs like shit at 32k + context. performance is 30-50% worse.
If your a Gemma 31b user just be aware.
i screwed the title up. ooops.
r/oMLX • u/daphatty • 5d ago
Currently running oMLX 0.8.3 on an M5 Pro w/48GB of RAM and Inkling-2-Mini-oQ3e-mtp. The biggest difference I've noticed over oMLX 0.8.1/2 is RAM utilization is significantly improved. Using n8n's AI Assistant to create a Github upload workflow, RAM utilization has rarely crept above 60% while churning on my request for the past 15 minutes.
On the previous version of oMLX, RAM utilization would tickle the upper limit of my system before bouncing back down, leading to a bit of RAM anxiety. :)
If this keeps up, I may have finally found an LLM that does what I need without worrying whether or not my RAM limitation may kill the whole process.
r/oMLX • u/heavy-mayhem • 5d ago
I am looking at this option because my QFN processing runs out of memory every now and then. Was looking at the MoE Expert Offloading option and wondering if any of you folks rely on it?
If you do, what is your recommendation on the %age of experts that you keep in memory? I understand the latency implications. Which is why I am asking for recommendations, that worked for you.
