3-5x Faster Training Speeds in MLX - Looking for Tester
r/oMLX • u/arfung39 • 10h ago
I wanted to know how much accuracy each Qwen4-35B-A3B quant gives up compared with full-precision BF16, so I measured KL divergence against the BF16 model. Everything ran on an M5 Max with 64 GB under oMLX 0.8.5. The models are the mlx-community oQ builds plus Qwen's official FP8 release. Surprisingly, the oQ6e quant beats the official FP8 release.
If you have 64+ gigs of unified memory, I recommend the oQ6e quant. You lose a lot with the oQ4e quant. This confirms my anecdotal experience with various simple coding tests.
(details of how I generated this was written by Claude; I include that for people who want to know about the method)
| Model | Size (GB) | Mean KLD | ± s.e. | p99 KLD | Same top token as BF16 | PPL |
|---|---|---|---|---|---|---|
| oQ3e-mtp | 29.5 | 0.1218 | 0.0017 | 1.317 | 86.2% | 6.747 |
| oQ4e-mtp | 33.8 | 0.0517 | 0.0007 | 0.578 | 90.9% | 6.688 |
| oQ5e-mtp | 40.4 | 0.0300 | 0.0004 | 0.307 | 93.0% | 6.670 |
| oQ6e-mtp | 47.1 | 0.0236 | 0.0004 | 0.242 | 94.0% | 6.659 |
| FP8 official, exact weights | 58.4 | 0.0251 | 0.0004 | 0.257 | 93.6% | 6.654 |
| FP8 official, as oMLX loads it | 58.4 | 0.0294 | 0.0005 | 0.314 | 93.2% | 6.650 |
| oQ8e-mtp | 60.2 | 0.0211 | 0.0003 | 0.230 | 94.3% | 6.655 |
| BF16 (reference) | - | - | - | - | - | 6.652 |
Takeaways
Method
Caveats
(I updated the graph to include oQ8e, but I can't figure out how to delete the first version of the figure...)

r/oMLX • u/willywonkaelgs • 11h ago
I came across this post and it really opened my eyes to how much harm quanting the engram table can have on the results: https://www.reddit.com/r/LocalLLM/comments/1ydjcaf/qwen_4_35b_a3b_vs_qwen_38_flash_next/
In oMLX is it possible to select the engram table like someone can do in Unsloth?
r/oMLX • u/Dazzling_Might3475 • 11h ago
r/oMLX • u/Top-Eye-8104 • 12h ago
more MLX quants: 3-bit (27 GB) / 6-bit (46.7 GB)
happy testing! would love to hear how it runs on your setup
r/oMLX • u/SchighSchagh • 16h ago
What are the tradeoffs of enabling or disabling the rotated codes? Isn't oQh just always better? Is it considerably slower or something vs oQe? Why is it not default/more widely used?
r/oMLX • u/OkHalf3874 • 1d ago
Qwen4 runs at 70 tokens/s on a 32 GB MacBook. Mine was stuck at 12.
I've been testing the new Qwen4-35B-A3B (4-bit) locally on an M2 Max. Short prompts were fine, but past about 1,000 prompt tokens generation dropped to 12 tokens/s and stayed there.
The model was not the problem. The runtime asks macOS to keep all GPU memory wired, and a 23 GB model does not fit that way on a 32 GB machine. Every GPU call was paying about 4 ms to re-wire memory, 19 times per token.
Two fixes, both measured:
→ Turn the wired limit off: 12 → 69 tokens/s
→ Memory-map the weights: same speed, and RAM drops from 23 GB to 14 GB
With MTP (speculative decoding) it goes from 7 to over 70.
One machine, one run per cell, so treat the numbers as a pointer. But if your Qwen4 feels slow on a Mac that it nearly fills, check wired memory before blaming the model.
Details and repro in the oMLX issue: https://github.com/jundot/omlx/issues/5996
r/oMLX • u/SpeculationAllTheWay • 1d ago
We’ve been working on day-zero support for Qwen4 in Superfluid and are already seeing upto 280 tok/s decode on an M5 Ultra. Really impressed by what this model can do with just 3B active parameters in terms of agentic capabilities running locally.
Give it a try and let u know what you think. https://github.com/basecompute/baseRT
Any chance or anyone know how to run the new qwen4 without trusting remote code execution?
That's a risk I'm not willing to take.
r/oMLX • u/trim-turner-shah • 1d ago
r/oMLX • u/d4mations • 1d ago
✅ 5 issues closed · 7 PRs merged
# BUG
#5922 oQ quantization ignores per-model trust_remote_code — Qwen4-35B-A3B calibration always loads with trust_remote_code=False
#5905 Decode TPS regression for Qwen3.8-Flash-Next-oQ4e-mtp on M3 Ultra (0.8.5dev1 → 0.8.5rc2)
#5900 Transformers engine cannot decode: cached step passes 2-D hidden states to Qwen3 attention (torch 2.15 / MPS)
#5886 MTP: per-cycle INFO logging in batch_generator bloats server.log to ~500MB/day under long MTP workloads
# FEATURE
#5921 Add qwen4_moe support
#5077 feat: remote backend, use an oMLX server on another Mac from this install
# FIX
#5914 fix(updater): create the DMG mount point before diskutil attaches it
#5904 fix(splash): load explicitly serialized GGUF tokenizers
#5906 perf(inkling2): MoE offload parity (overlapped fetches, decay eviction, asymmetric looped-core slots)
#5895 fix(dflash): store a quantized kept context as a tuple
# MR
#5924 fix(qwen4_exp): keep HC fusion and compile for non-verify decode with MTP
Also closed:
- #5912 Updater can't mount the release DMG: diskutil image attach mount point doesn't exist
r/oMLX • u/MensaProdigy • 1d ago
r/oMLX • u/darksoul_310 • 1d ago
i dont wanna fry my internal ssd im very new at running local models
I’m really new to the local AI scene, but I’m getting there. I run oMLX on a headless Mac Studio M3Ultra with 96G shared ram. I’ve already used various models to build a chat app, a rag system and some other stuff. Generally, this is one session at a time via opencode, occasionally multiple sessions. My dream, though, is to be able to have at least one session with a main model to do planning, write specs, etc and have it kick off a subagent or 2 to do the actual implementation. I keep running into roadblocks like memory, subagent abilities, etc.
I’ve tried Qwen3.8-27B (and some variants) as the main, and they code good enough, but they’re too heavy to be subagents. I’ve tried doing some tests with various sub-10G subagents with limited context windows and thinking, but they always seem to fail at file edits or other problems. Atm, I’m using a Qwen3.8-27b variants to do testing of subagent workloads. I have the entire omlx git repo in my local rag setup, so I can have it optimize per what the actual code says.
So, my questions:
Thanks!
r/oMLX • u/AlexSnapsColours • 1d ago
Hi everyone,
I’m trying to load mlx-community/Qwen4-35B-A3B-oQ8e-mtp in oMLX, but the model fails to load.
I’m getting the following error:
HTTP 409: Model 'Qwen4-35B-A3B-oQ8e-mtp' is unavailable after a previous load failure.
The repository contains custom code which must be executed to correctly load the model.
Please pass the argument `trust_remote_code=True` to allow custom code to be run.
For context, I’m running oMLX on an Apple Silicon Mac with an M5 Max and 128 GB of unified memory.
Other models load without any issues, including:
Only the Qwen4 model seems to have this problem.
My questions:
I’d appreciate any suggestions or pointers. Thanks!
r/oMLX • u/Puzzleheaded_Eye3115 • 1d ago
Looking to buy an M5 Ultra with 256GB RAM for local AI with oMLX .
Two quick questions for those using it:
r/oMLX • u/cryingneko • 2d ago
Hi everyone!
Sorry for the late post. I actually released oMLX 0.8.5 a few hours ago.
Qwen4-35B-A3B just came out, and it already runs on oMLX.
https://github.com/jundot/omlx/releases/tag/v0.8.5
Qwen4 MoE Support
Qwen4-35B-A3B now work with Lightning MTP, image input and oQ.
I tried Qwen4-35B-A3B on my M5 Ultra and it's really fast. Prefill stays above 10,000 tok/s all the way up to a 64K prompt. Decode runs at 200+tok/s for one request with MTP, and 600+tok/s total with 8 requests at once.
Its tokenizer ships as code in the model repo, please turn on Trust Remote Code before you load it.
External Transformers engine
oMLX can now run models with Hugging Face Transformers too, so a new model works on day zero, even before anyone ports it to MLX. It's still experimental, and you can turn it on in Settings > Integrations > Transformers.
Faster decode
All on M5 Ultra unless noted.
ERNIE 5.5 Flash Preview now runs straight from Baidu's FP4 and FP8 releases, Inkling 2 can keep its KV cache in 8 bits to save memory on long sessions, and watchdog panics are fixed.
Release notes: https://github.com/jundot/omlx/releases/tag/v0.8.5
82 PRs from 31 people went into this release, and 7 of them sent their first one.
Thank you so much, everyone! Let me know how Qwen4 runs on your Mac. 🤗
r/oMLX
•
u/Only-An-Egg
•
2d ago
M3U on the left, M5U on the right. Both are base CPU/GPU configs. N-Gram tables offloaded to SSD.
r/oMLX • u/Puzzleheaded_Eye3115 • 2d ago
Guys, talk some sense into me before I give up on local completely.
I just sold my M3 Ultra 96GB (got almost what I paid for it, couldn't say no) with the full plan to upgrade to an M5** **Ultra 256GB (~€11k here in Europe) to run oMLX with bigger context and parallel agents.
While waiting to buy the new Mac, I temporarily pointed my coding and agent workflows to the Qwen API… and honestly, I’m kind of ruined now.
The results are great, I’m getting unquantized weights instead of oQ4, multiple agents run in parallel without choking, and my monthly API bill is literally about the same as what I was paying in electricity to keep the Studio running. At this rate, €11k pays for like 15 years of API calls.
I love tinkering with oMLX and having everything local, and yeah, keeping sensitive company/accounting stuff off the cloud still matters—but dropping €11k on hardware right now feels crazy when APIs are this cheap and good.
Anyone running a 256GB+ Studio right now? Why are you still doing it? Bring me back to the local side.
EDIT: Well, you guys officially brought me back.
Looking at the comments, the real dividing line finally clicked: cheap APIs win hands down for interactive coding, while local hardware is really about not building business dependencies on rented cloud pricing, rate limits, and third-party data retention.
r/oMLX • u/devnullish • 2d ago
Hey guys,
Been following the loop/loopcd progress people are doing with qwen/deepseek and was wondering if this is something we could possibly be seeing coming to omlx in the future. Pretty comfortable using omlx, so the idea of switching to sushi to test really doesn't interest me much.
r/oMLX • u/NooneLikesYouBill • 3d ago
Powered this guy on (and promptly reformat - still had Sequoia on it 😂) for the first time in easily well over a year and a half. AI wasn’t even on my radar when I was using it. And duh never even really made the connection that this thing has unified memory.
I only local ai (Linux: 5080+5090+96gb ddr5, 48gb vram). It’s a great setup for what I’m doing but can get a bit frustrating having to constantly juggle models, point Opencode to the wrong place, have to reload ComfyUI yet again, rag server when I’m working in obsidian, etc.
And bam just like that, oMLX essentially doubled my real workflow tool chest. I’m still testing and figuring things out, but I can run Qwen 27b (mlx) at what pretty much feels like how fast I was using it before (iow, not a benchmark but it’s fast enough for me) while I’m also working on game art, etc.
2023 Mac Pro M2 Ultra 64GB
(+ a few pcie/nvme cards, lots of space)
r/oMLX • u/TheFlippedTurtle • 3d ago
I have a Mac Studios on order, and I’m curious how much faster things could get on the same hardware as the software matures, mainly for concurrent users, clustering, and efficiency gains
do you think we’re already close to the hardware limit, no where near it or somewhere in between?