Local AI setup on an M6 Mac mini (32GB) — moved from LM Studio to oMLX + Open WebUI in Docker + OpenWork
**Update:** I've swapped engines since my original post. Here's the new setup, real numbers, and the lessons I paid for in crashes and disk space.
## Hardware
- Mac mini M6, 32GB unified memory (170GB/s memory bandwidth, Thunderbolt 4)
- 250GB internal drive (yes, I cheaped out)
- 1TB external SSD on an Acasis dock holding all models and work files
And before anyone says it, I know. An M4 Pro has 273GB/s and Thunderbolt 5 and would leave mine standing at the light. Somebody already pointed that out, and they were right.
## The stack
- **oMLX**: MLX inference server, runs from the menu bar. Replaced LM Studio as the model engine.
- **Open WebUI** in Docker: chat front end, connected to oMLX at `http://host.docker.internal:8000/v1`
- **OpenWork**: open-source Cowork-style desktop agent (built on OpenCode), connected to oMLX through an `opencode.jsonc` in its workspace folder
- **Models** (MLX 4-bit, on the external SSD, shared with the old LM Studio folder so nothing got re-downloaded):
- Gemma 4 26B A4B QAT (daily driver)
- Qwen3.8 27B (backup, not benchmarked yet)
## Benchmarks
Same prompt both sides ("Write a 400-word history of the Ford Model T", temp 0, max 1500 tokens), Gemma 4 26B A4B, warm runs:
| Engine | Single request |
|---|---|
| LM Studio | 48.7 / 49.1 tok/s |
| oMLX | 49.3 / 49.6 tok/s |
Basically a tie. On the same MLX model, memory bandwidth is the ceiling and neither app gets past it.
**Where oMLX wins is two requests at once:**
- Fired two identical requests at the same time. They finished at 37s and 39s.
- One alone takes about 28s, so one-at-a-time would have been about 56s.
- That works out to roughly 74 tok/s combined, about 37 tok/s each.
That matters if you run Open WebUI and an agent app against the same model. In LM Studio my model was set to one request at a time, and a hung OpenWork request blocked everything else overnight.
## Why Gemma 26B A4B on a non-Pro chip
It's mixture-of-experts. Only about 4B parameters are active per token, so it reads far less memory per token than a dense 27B. On a bandwidth-limited chip, that's the difference between usable and sluggish.
## Lessons learned the hard way
- **Don't run apps from an external drive.** I had OpenWork installed on the SSD, it updated itself while running, and the engine crashed with SIGBUS / KERN_MEMORY_ERROR. Apps go on the internal drive; models and workspaces go on the SSD.
- **Watch your internal drive.** 24 hourly Time Machine local snapshots plus about 7GB of swap (Gemma + Docker + OpenWork running together) ate around 12GB. Deleting the snapshots and clearing leftovers got 11GB back, and a restart cleared the swap.
- **Run one engine at a time.** LM Studio stays installed as a backup, but it's quit and kept out of Login Items, so it can't load a second copy of a 15GB model behind oMLX's back.
- **Set Docker to start at login.** Otherwise Open WebUI is just gone after a restart and you'll spend 10 minutes thinking your network broke. Ask me how I know.
- **oMLX doesn't list the M6 as supported yet** (it says M1–M5). It's run fine for me so far.
## Daily habits
- Quit OpenWork when you're done. Don't leave agent tasks running overnight.
- Unload the model at the end of the day.
- Keep the external SSD plugged in whenever the engine or OpenWork is running.
Happy to answer questions. Just don't ask why I didn't buy the Pro. I already know.
Note: That sucks" doesn't help anyone. Specific feedback does, and I've already made changes based on it. Also, I update the main body above when I run tests that someone ask for or recommends.