r/Shuttrr • u/RegularSimilar9433 • 3h ago
Fixed a bug where one model silently slowed down every model after it in my Mac AI engine, plus a few other speed fixes
I build Shuttrr, a free Mac app for running image, video and voice models locally with MLX. This week I went through the engine looking for speed problems. Here's what turned up.
The bug: LongCat (a talking-avatar model) needs TF32 turned off to get exact output. The engine was turning it off globally and never turning it back on, so after a single LongCat job, every later job of every model ran on the slower path until a restart. Wan's video decode, for example, was about 20% slower. Now TF32 is only off while LongCat runs.
Other changes:
- Wan now streams weights from the SSD with zero copies, the way Z-Image already did. Output is bit-identical.
- Time estimates no longer assume every Apple chip is an M5 with fewer cores. Measured per core, an M1 is about 0.21x an M5, so older Macs now get honest ETAs.
- Memory is capped at 95% of the GPU's recommended working set, and jobs are never refused because of it.
- TeaCache for Wan is available as an opt-in setting. It's off by default because it changes the output.
What didn't help, measured: fp8 weights on M5 weren't faster and had 3.7x the error. Raising the wired memory limit did nothing. Bigger streaming windows didn't help, because Z-Image never waits on the SSD anyway.
Z-Image and H3 run at the same speed as before (Z-Image 768px takes about 33 s on a 16 GB M5), with identical images and no swap. 786 Python and 87 Rust tests pass. It's coming in 0.3.9.
Happy to answer questions about MLX on low-RAM Macs.


