I cabled four 512 GB M5 Ultra Mac Studios into a Thunderbolt 5 mesh with RDMA to see what a cluster of them does for local models. The cluster works and scales: GLM-5.3 generated about 50% faster on four machines than on one, and a single environment variable roughly doubled cluster generation speed on four machines, and nearly quadrupled it for the 8-bit model on two. For one person chatting, though, the best overall experience came from a single machine. ERNIE 5.5 Flash Preview on one M5 Ultra generated at 53 to 65 tok/s, faster than all the GLM, Muse and Kimi cluster runs and close to DeepSeek split across two machines (a flat 62.5): it matches that on explainers, beats it on code and is about 15% slower on plain prose (53 against 62). It also topped the final round of my blind quality test, against DeepSeek at four effort levels, at 81.2 of 100.

This is Part 1 of a series on finding the best local model and setup for 512 GB M5 Ultra Mac Studios. It covers building the cluster and the first round of results on one, two and four machines.
The cluster
Each Mac Studio has an M5 Ultra, 512 GB of unified memory and a 4 TB SSD. All four run macOS 27.2.1, because RDMA wants the same build on each machine. The Thunderbolt 5 links form a full mesh: 12 cables, two per pair of machines, using all six Thunderbolt 5 ports on each one. A 10 GbE switch links the four on an isolated network, and Wi-Fi carries the LAN and internet.
The software is MLX 0.32.5 with mlx-lm from the main branch. The fast synch and Hy4 runs came before that switch and used the 0.32.2 release. mlx.launch with the jaccl backend starts a job across the machines in tensor parallel mode, where each layer is split across them, and mlx_lm.server serves the OpenAI API from the first machine. For the DeepSeek cluster run I used oMLX 0.8.4, and 0.8.5.dev1 for ERNIE; the one-machine DeepSeek figures come from oMLX 0.8.0 and 0.8.5.dev1.

Setup
These are the steps in the order I would do them again.
Enable RDMA once per machine, from the Terminal in Recovery. Recovery has no network, so this step needs a monitor and keyboard.
rdma_ctl enableTurn off the Thunderbolt Bridge service before cabling the mesh. With it on, macOS bridges the Thunderbolt ports together and the mesh becomes a network loop: a large model download stalled and one machine dropped off the network.
sudo networksetup -setnetworkserviceenabled "Thunderbolt Bridge" offTurn off sleep before connecting Thunderbolt, then wake each machine once.
sudo pmset -a sleep 0 disksleep 0 powernap 0 autorestart 1The machines shipped with 1-minute idle sleep, and the Thunderbolt driver hung the sleep transition, which gave me a kernel panic roughly once in 11 minutes ("Sleep transition timed out ... IOThunderboltFamily"). A machine that is already asleep keeps cycling through dark wakes after the setting changes, so it needs one real wake. pmset -g log shows whether it has settled.
Next, let MLX discover the mesh:
mlx.distributed_config --over thunderbolt --backend jacclIt prints the hostfile and an address command for each Thunderbolt interface, and --dot prints the topology so you can check the cabling. The addresses matter even though the data moves by RDMA: macOS publishes an interface's RDMA address once it has IPv4, and without one the job stops with "No IPv4-mapped GID for this device". The addresses do not survive a reboot, so a small LaunchDaemon sets them at boot. On a /30 the address alone gives the route; adding a host route with -interface broke TCP over the links.
Cap GPU wired memory at 480 GB, which leaves 32 GB for macOS. I keep it persistent with another LaunchDaemon.
sudo sysctl iogpu.wired_limit_mb=491520At a 496 GB cap, GLM-5.3 at 8-bit on two machines, with a 100 GB prompt cache and a 73K-token prompt, ran both machines out of memory: one wired its whole allowance, and both hung with watchdog panics.
I also turned FileVault off, so a reboot comes back on the network without someone typing the disk password. That is a choice, not a requirement.
Then launch:
mlx.launch --hostfile hosts.json --backend jaccl --env MLX_METAL_FAST_SYNCH=1 -- \
mlx_lm.server --model <model>To confirm the traffic was really on RDMA, I watched one machine's Thunderbolt interfaces in netstat during a four-machine generation. They showed 0.0 MB moved, because RDMA bypasses the network stack and a TCP fallback would have shown traffic, and the RDMA port reported active. A link microbenchmark measured about 8.6 GB/s on one cable and 17 GB/s on two.
Fast synch
MLX_METAL_FAST_SYNCH=1 is the setting in that launch line that I would not skip. With GLM-5.3 at 8-bit on four machines, generation went from 15.5 to 30 tok/s when I added it. On two machines the gain was 1.7x for the 4-bit model and close to 4x for 8-bit.

Without it, the weights showed as "active" memory instead of wired, and the GPU was about 73% busy during generation. Apple's own MLX RDMA write-up uses the same setting. I now set it for all my mlx.launch runs. There is an open data-race report against it, so watch for hangs.
Scaling with GLM-5.3
GLM-5.3 at 4-bit, with 40B active parameters, was my scaling test. Against one machine, two machines generated 27% faster and four generated 50% faster. Prompt reading improved more: a 73K prompt took about two minutes to first token on one machine and 71 seconds on four.
That is less than linear: going from two machines to four took the 4-bit model from 33.0 to 38.8 tok/s, about 1.18x. In my earlier 8-bit runs the same step gave 1.43x, close to the 1.47x Apple published for its own test model, so the stack seems to be behaving normally. On two machines, pipeline mode was worse than tensor parallel for GLM on both generation and prompt reading.
Software mattered as much as hardware here. The mlx-lm 0.32.2 release was missing GLM-5.3 fixes that had landed on main. Moving to main on two machines lifted generation from 28.7 to 33 tok/s, and the 73K prompt went from 560 seconds to 100, or 91 with the second cable. The older build also most likely ran the 4-bit model's shared indexers with random weights, so its quality is suspect and I did not use it for quality testing.
DeepSeek across two, Kimi across four
DeepSeek V4.1 Flash split across two machines in oMLX's cluster mode generated at a flat 62.5 tok/s, against about 50 on one machine without MTP. Prompt reading went the other way: a 66K prompt took 18.8 seconds on the pair and 13.5 on one machine. My reading is that the per-layer exchange between machines during prefill costs more than the halved compute saves. On short prompts MTP added no speed in the cluster and made it less even; after long prompts, MTP depth 2 reached 66 to 72 tok/s.
Kimi K3.1 Pro is the model a cluster is for. The original checkpoint is 1.56 TB, so it needs all four machines: about 390 GB of weights on each, and 420 GB wired while running. It ran, using mlx-lm with a community pull request that adds the model, at 2.9 tok/s. That is a capacity demo for now. A 2-bit build, published at about 18.7 tok/s on three M5 Ultras, is next in this series.
I also ran Muse Spark Open, an 816B model at 4-bit, on two machines at 20.7 tok/s. On one machine GLM-5.3 managed 25.9 tok/s, about half of DeepSeek or ERNIE, and Hy4 managed about 13 tok/s, with a 30-minute read of a 70K prompt, using the checkpoint's own model code on mlx-lm 0.32.2.
One machine with ERNIE 5.5 Flash
ERNIE 5.5 Flash Preview is a 280B model with 14B active per token. It ships in native MXFP4 at 166 GB on disk and takes about 176 GB in memory, so it fits one machine with plenty of room. On oMLX 0.8.5.dev1 with MTP on, it generates at 53 to 65 tok/s.
The model settings in model_settings.json:
{"version": 1, "models": {"baidu--ERNIE-5.5-Flash-Preview": {
"max_context_window": 1048576, "trust_remote_code": true, "mtp_enabled": true}}}Reasoning effort goes in the request (high is the default):
"chat_template_kwargs": {"reasoning_effort": "high"}It supports a 1M-token context. I tested a 350K-token prompt: about four minutes to read, then 45 tok/s, with memory up by about 5 GB.
The trade is prompt reading. On the same long document, ERNIE took 31 seconds to first token (70K tokens in its tokenizer) against 13.3 for DeepSeek on one machine (66K in its tokenizer), about 2.3x slower.

Quality
The quality gate is ten prompts: a Rust cache with tests, an nginx websocket debug, a scheduling proof, a probability question, SQL, a tool call, a 200-word writing task, a technical explainer, a backup design and recall from a long log. Two frontier models judged the answers blind, and then judged the whole set a second time with a fresh shuffle.

ERNIE at high effort scored 81.2 and DeepSeek V4.1 Flash at effort 62 scored 77.5. On the nine prompts both answered, DeepSeek is about a point ahead (77.5 to 76.2), within noise. The gap is a probability question about a farm water tank. ERNIE got half marks there, with the right method and an estimate about 7% high, while DeepSeek reasoned through its full 48,000-token budget without reaching an answer.

In earlier rounds with a 16K cap, GLM-5.3 overthought at its default max effort and scored well behind DeepSeek. Qwen3.8-Flash-Next was two to three times faster than DeepSeek and 18 to 28 points weaker.
Many users
One ERNIE machine gave 141 tok/s in total at eight users, about 19 tok/s each while generating, and tops out near 150 at 16 users, about 10 each. The two-machine DeepSeek cluster reached 120 to 134 tok/s in total at four to eight users, against 81 to 96 on one machine. At four users each request ran at about 31 to 33 tok/s whatever the MTP setting; one run without MTP totalled only 67 because a request waited 17 seconds in the queue.

So the cluster helps, and by my estimate separate servers help more. Four machines each running their own ERNIE server should carry 32 users, eight each, for about 560 tok/s in total. That is four times the one-machine measurement, not a test I ran. The arithmetic points the same way for the other two models: two one-machine DeepSeek servers would give about 190 tok/s at 16 users, twice the 96 of one, against 134 for the pair at eight users (I did not test it at 16), and two one-machine GLM servers would give about 52 tok/s for two users, a little more than the 49.4 the pair measured with two users at once.
Caveats
ERNIE 5.5 Flash is a Preview and oMLX 0.8.5 is a dev build. Ten prompts is a small gate and the judges are models, so treat a few points as noise. The cluster numbers are mostly single-stream. The mlx-lm features I used came from main and from an unmerged pull request, so a release build may behave differently. The four-machine ERNIE figure and the two-server comparisons for GLM and DeepSeek are arithmetic, not measurements. The four-machine GLM numbers above ran with two pairs on one link, and the cluster runs at the speed of its slowest pair. A later rerun with two links on every pair read prompts 7 to 9% faster (the 73K prompt in 66 seconds instead of 71) and generated at the same speed.
Verdict
- One user: one machine with ERNIE 5.5 Flash at high effort.
- Many users: one model server per machine, not one big cluster (by my estimate).
- Models bigger than one machine, or the flattest single stream from DeepSeek: tensor parallel over Thunderbolt 5 RDMA, with
MLX_METAL_FAST_SYNCH=1when launching withmlx.launch.
The one-machine answer showed up on the first night, when a single DeepSeek machine beat every GLM cluster run, and it held to the end: the best chat setup uses one of the four machines. The 1.56 TB model fit across the four as the arithmetic said it would, but at 2.9 tok/s it is a demo, not something to chat with. Part 2 looks at the 2-bit Kimi across machines, splitting prompt reading and generation between machines, and more tuning.
Sources
- oMLX: github.com/jundot/omlx and the 0.8.5.dev1 release
- ERNIE: baidu/ERNIE-5.5-Flash-Preview
- DeepSeek MLX build: mlx-community/DeepSeek-V4.1-Flash-1017-oQ4e-mtp
Comments
// Comments are reviewed before appearing. No spam. No noise.