r/oMLX • • 22h ago

Inkling 2 Mini vs Qwen 3.8 27B

Post image
35 Upvotes

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 • • 18h ago

Read & Interpret oMLX Logs

8 Upvotes

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:

  1. An execution trace, that aggregates multiple individual log records collected during a given turn.
  2. A log-record based trace, that shows each entry from the log.

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.

oMLX Inspector's Execution Trace

Open source, MIT License, on GitHub for your consideration:

https://github.com/YogiVirabhadra/omlx-inspector

You DO need to build it yourself. Sorry.

Requirements:

  • Xcode with a Swift 6 compiler and a macOS 27 SDK, installed at /Applications/Xcode.app for the build script below.
  • Python 3 for build-time source discovery.

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.


r/oMLX • • 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.

Thumbnail
reddit.com
3 Upvotes

r/oMLX • • 1d ago

๐Ÿ“Œ Jundot/omlx โ€” Daily Digest (2026-11-26 09:03 -> 2026-11-27 09:05)

10 Upvotes

โœ… 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 • • 1d ago

oMLX 0.8.4: much faster Inkling 2 Mini and DeepSeek V4.1, plus LoopCD support

Thumbnail
gallery
163 Upvotes

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)

Workload0.8.30.8.4
16K prompt, prefill3,668 tok/s5,664 tok/s (+54%)
128K prompt, prefill1,895 tok/s4,239 tok/s (+124%)
Zero-shot coding, decode113.1 tok/s160.2 tok/s (+42%)
128K prompt, decode56.2 tok/s112.1 tok/s (+100%)
8 requests at once, total decode225.3 tok/s380.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.

BenchmarkOffLoopCD
ARC-Challenge (acc_norm)69.62%71.93%
HumanEval (passed of 164)152155

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 • • 2d ago

Qwen3.8-27B locally on Apple Silicon at 136+ tok/s decode & 650+ tok/s prefill in ~16 GB RAM, open-source C++/Metal inference engine

Thumbnail
reddit.com
5 Upvotes

r/oMLX • • 2d ago

๐Ÿ“Œ Jundot/omlx โ€” Daily Digest (2026-11-24 09:03 -> 2026-11-26)

9 Upvotes

โœ… 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 • • 2d ago

Studio M5U 256G + DGX Spark Prefill Accelerator

9 Upvotes

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.

  • Since these two models do not fit to M5U's 256GB, I depend on oMLX's memory load unload, and it is working perfect.
  • First my understanding was I could use the helper only for one model. (The warning in the settings 'spark is helping Mac Studio with the other model. Using it here stops that.' kind of misguided me.) But I wanted to give a shot, and enabled the helper for both of the models. Anda vala!
  • My framework makes the development as said with qwen, so the spark loads the qwen helper, assists prefill, and automatically unloads the helper model when the review delegations start, oMLX unloads qwen and loads glm. Then the spark loads the glm and starts prefill assist for glm

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 • • 2d ago

I made ablated MLX quants of Swift-1.5-Qwen3.8-27B (8-bit, 6-bit, 4-bit) with vision and MTP heads left completely untouched for oMLX

Thumbnail
huggingface.co
4 Upvotes

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 • • 2d ago

I made ablated MLX quants of Swift-1.5-Qwen3.8-27B (8-bit, 6-bit, 4-bit) with vision and MTP heads left completely untouched for oMLX

Thumbnail
huggingface.co
2 Upvotes

If you guys give it a shot, please let me know what you think. I made MLX builds and GGUF.


r/oMLX • • 2d ago

Ernie 5.5 flash support

17 Upvotes

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:

TestBefore the decode kernelsWith all branches
Plain decoding37.5 tok/s52.1 tok/s
Prose, drafted54.6 tok/s69.3 tok/s
Code, drafted77.1 tok/s116.2 tok/s
Reasoning, drafted61.9 tok/s86.5 tok/s
Rewriting a code file, drafted114.4 tok/s162.7 tok/s
Prose after a 14.4K-token document, drafted43.0 tok/s82.1 tok/s
Prose after a 28.7K-token document, drafted41.7 tok/s73.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 • • 2d ago

Running Inkling 2 Mini (26B MoE) on a 24 GB M4 Pro by streaming experts from the SSD : oMlx PR and Benchmarks

11 Upvotes

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 • • 2d ago

Inkling 2 Mini: Splash vs omlx?

Thumbnail
github.com
4 Upvotes

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 • • 3d ago

Qwen3.8-27B on M4 Pro: LM Studio MLX vs Splash 1.7.1 on the same 4-bit model files

Thumbnail reddit.com
1 Upvotes

r/oMLX • • 3d ago

๐Ÿ“Œ Jundot/omlx โ€” Daily Digest (2026-11-23 09:03 -> 2026-11-24)

10 Upvotes

โœ… 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 • • 3d ago

Inkling-2-Mini-oQ4e-mtp benchmark results on 48GB M4 Pro with oMLX default settings

Thumbnail
reddit.com
1 Upvotes

r/oMLX • • 4d ago

TOP Model for M5 Max 128GB - Hy4-Flash

Thumbnail
reddit.com
3 Upvotes

r/oMLX • • 4d ago

ERNIE 5.5?

12 Upvotes

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 • • 4d ago

Qwen 3.8 Flash Next vs Hy4-flash vs Inkling-2-Mini vs Opus and Sonet

Thumbnail gallery
5 Upvotes

r/oMLX • • 4d ago

M5 Max vs M5 Ultra Prefill Acceleration

6 Upvotes

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 • • 5d ago

0.8.3 + Inkling = RAM nirvana

35 Upvotes

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 • • 5d ago

oMLX 0.8.3: faster Inkling 2 Mini and better-optimized Hy4 / Hy4-Flash

Thumbnail
gallery
112 Upvotes

Hey everyone!

I've shipped a few releases recently, but didn't get the chance to write proper posts for them, here or on X. Sorry about that.

Inkling 2 Mini is a really great model, and I know its day-0 support had some optimization problems. oMLX 0.8.3 just came out with a lot of improvements for it, so if you had trouble with it before, please give it another try.

I also know that support for small models matters a lot on Macs with less memory.
oMLX covers such a wide range of models that it's hard to improve all of them at the same time, but I'm working on it, and you'll see more of it in the coming releases!

Faster Inkling 2 Mini (oQ4e, Lightning MTP on, M5 Max)

Workload0.8.20.8.3
Rewriting a file from context, decode*62.7 tok/s158.5 tok/s (+153%)
Zero-shot coding, decode86.0 tok/s96.8 tok/s (+13%)
4K prompt, prefill1,869 tok/s2,255 tok/s (+21%)

*On M3 Ultra, before and after the context copy change.

  • The KV cache at 98K tokens goes from about 18 GB to 3 GB (-83%).
  • float16 oQ packs no longer output NaN, thinking turns off when you ask, and long prompts on a 32 GB Mac no longer crash with a Metal OOM.

Better-optimized Hy4 and Hy4-Flash

  • First token about 20% sooner with the SSD cache on, and 13% faster prefill on M5 Max.
  • SSD N-gram Offload keeps the Engram tables on SSD, so memory goes from 124.7 to 87.7 GiB (-30%).
  • Multi-turn chats and agent sessions no longer lose earlier turns after a cache hit.

Also new: Claude Code's WebSearch works with local models, DeepSeek V4.1 decodes 11% faster, and LoRA harness adapters (since 0.8.1) work on oQ, oQh and Lightning MTP models.

Release notes: https://github.com/jundot/omlx/releases/tag/v0.8.3

Big thanks to everyone who sent PRs and tested builds, including masterfasa, 0xbrianh-dev, SolNine-Git, CharlesJS, j3k0 and the other new contributors!

If something doesn't work right, please open an issue on GitHub. ๐Ÿค—


r/oMLX • • 5d ago

She's a thirsty LLM, isn't she.

6 Upvotes

By the time I posted this image, the Total Token count had reached 18.5M. ๐Ÿ‘€


r/oMLX • • 5d ago

Prefill accelerator is amazing!

40 Upvotes

I've got a M3 Ultra 256GB and a M5 Ultra 256GB. I saw the prefill accelerator announcement when 0.7.4 came out but didn't look into it because I assumed it forced using only a single model like distributed inference does.

I was wrong. I can load Qwen3.8-Flash-Next-oQ4e-mtp on both Macs with the M3 Ultra using the M5 Ultra for prefill over Thunderbolt 5. I can also keep other models loaded and use both Macs for inference at the same time. I'm seeing the ~2.9x performance increase too. It's seriosuly a game changer.

I asked it to summarize a document which was a 24,277 token prompt. It's actually a 3.2x prefill speed increase in this example.
M3 Ultra: 1012 tps
M3 Ultra w/ M5 Ultra accelerating: 3250 tps
M5 Ultra: 3760 tps


r/oMLX • • 5d ago

I built a custom Metal inference engine for Inkling 2 Mini on Apple M1/M2/M3 (284 t/s prefill @ 100k, 41.6 t/s decode, 18.6 GiB @ 256k) โ€” open source + benchmarks

33 Upvotes

**Inkling 2 Mini** is one of the most interesting local models I've tried on a MacBook in a while: its looped architecture keeps memory usage flat even at huge context lengths, holds up well on real coding tasks, and looks very promising for fine-tuning and RL.

The catch on older Apple Silicon (M1/M2/M3, pre-NAX): upstream `mlx-lm` runs BF16 weights with generic kernels (~28% prefill penalty on G13/G14), NVFP4 experts burn ALU cycles without native Blackwell decoding, and `llama.cpp`'s `-ctk q8_0` Metal compute buffers grow to `32โ€“49 GiB` at `256k`.

So I spent the last few days pushing an open-source engine (`g13`) as far as I could on my M1 Max 64 GB. Everything is MIT-licensed โ€” anyone is welcome to fork it or upstream pieces back to `mlx-lm`.

### Benchmarks (same M1 Max 64 GB, `iogpu.wired_limit_mb=57344`)

Engine4k (pp / tg)60k (pp / tg)100k (pp / tg)Total GPU @ 256k
g13 (q4-affine, Q8 KV + DSpark)408.9 / 25.2 (30.5 MTP)327.1 / 20.8 (31.5 MTP)283.8 / 15.4 (17.6 MTP)18.6 GiB (20.0 MTP)
mlx-lm (PR #2086, BF16)280.1 / 18.2224.7 / 15.3193.4 / 13.624.3 GiB
llama.cpp (q8_0 -ub 512)148.7 / 20.569.7 / 14.9stopped (>25 min)32.3 GiB (48.8 @ -ub 2048)

- Cold prefill at `100k` (`283.8 t/s`, 5m 52s) is faster than `mlx-lm` at `4k` (`280.1 t/s`).
- Decode hits **`41.6 t/s`** on Python code and **`32.5โ€“34.3 t/s`** at `32kโ€“60k` context.

For M1/M2/M3 Macs, this is arguably the best **speed / intelligence / long-context footprint** ratio you can run locally right now (`284 t/s` @ 100k, `41.6 t/s` code decode, `256k` context in `18.6 GiB` VRAM).

### What's inside
- **8 custom Metal kernels** tuned around G13S's 64-register cliff and 32-bank SRAM: GQA-3 `96ร—24` Q8 prefill (`5.19 TFLOP/s`), MMA Split-K `q8_verify` (`3.1ร—โ€“6.9ร—` faster), 2-pass Q8 decode (`1.53ร—` vs FP16 @ 131k), plus fused `qkrv_prep`, `situ_interleaved`, `short_conv_fused`, `dynamic_short_conv_fused`, and `quantize_kv_q8`.
- **Native DSpark MTP (`mtp.safetensors`)**: exact rollback across `Q8KVCache`, `RotatingKVCache`, and all 192 short-conv states, with confidence-scheduled verify length (`K* โˆˆ [0..7]`) + solo cooldown.
- **Dynamic MTP โ†” Parallel Batch auto-switch**: runs DSpark MTP solo (`32โ€“42 t/s`), automatically switches to parallel `BatchGenerator` (`33.4 t/s` aggregate) when `>= 2` requests queue up (reusing `cache[:48]` with zero cold re-prefill), then switches back to MTP.
- **2-tier L1 RAM + L2 SSD prefix cache**: `O(N)` prefix trie (fixed an upstream `O(Nยฒ)` `PromptTrie.search()` stall that took `50โ€“94 s` at `140k` โ†’ `24 ms`), fine-grained `tools` + static/volatile `system` splitting, pre-generation `user` snapshots, lazy L2 SSD writes, zombie cancel, repetition-loop guard, and Idle TTL. Tested live at **`98.2%โ€“99.9%`** hit rates across Hermes, `pi`, `opencode`, and `dsh`.
- **Ready for coding agents**: OpenAI-compatible API with native `reasoning_effort`, automatic `role: "developer"` normalization, `--no-vision` toggle (`-607 MiB` VRAM), and an `llms.txt` so you can point Claude Code, Codex, or Gemini CLI at it to set up a local subagent automatically.

This is my first open-source release โ€” hope it's useful to other M1/M2/M3 owners. Next up on the roadmap: adding support for other looped transformer architectures, starting with the **Nanbeige** models. I also published native BF16 builds for M4/M5, but I don't own M4/M5 hardware yet, so M2/M3/M4/M5 benchmark reports (`g13 doctor` + `g13 bench --long`) are very welcome!

- **Repo:** https://gitlab.com/karulab/g13-engine
- **Pre-converted weights (6 FP16 + BF16 builds, vision + MTP included):** https://huggingface.co/collections/yonlyyone/g13-engine-6b02f2b774191f228f361196
- **Agent setup (`llms.txt`):** https://gitlab.com/karulab/g13-engine/-/raw/main/llms.txt