Context The cluster is four OnePlus 11 phones running an Inkling 2 Mini checkpoint over an Ethernet switch; the Mac is a 24 GB M5. OrationMail is the voice-first email project. Distributed AI research.

A local inference cluster looks like a compute problem. Four phones, a model split across them, and a tokens-per-second number. In practice, the number is often a communication result: how many messages cross the cluster, how much state each one carries, and how long the coordinator waits for a worker that is still busy.

The cluster moved from Wi-Fi to USB networking and then to a wired Ethernet path. Each change helped, but not in the way a bandwidth chart would predict. The largest clean win came from deleting repeated messages, not from making the wire faster.

Wi-Fi first

The first cluster used Wi-Fi and Tailscale. Tailscale was direct peer-to-peer over the same Wi-Fi link, not a relay through a remote server. A direct LAN comparison kept the same four-layer Flash-Next placement, prompt, and TLS authentication. The link measurements improved, but the model barely moved.

MetricTailscaleDirect Wi-Fi LAN
TLS echo, 10 KiB each way12.40 ms9.24 ms
TLS echo, 270 KiB each way83.37 ms90.91 ms
Prefill0.2255 tok/s0.2100 tok/s
Decode0.2121 tok/s0.2152 tok/s
Request after startup129.18 s137.88 s
Same four-layer placement and prompt. These were sequential runs, not a matched transport A/B; the full-request difference cannot be attributed to the link alone.

The smaller echo got faster. The model did not. That is the first warning: a link can improve while the request stays dominated by prefill, disk reads, worker compute, or scheduling.

USB, then Ethernet

On the cluster as a whole, usable seconds/token fell as the path moved from a relayed Wi-Fi route to a direct USB/Ethernet link. The radio-only comparison above is the control: a faster physical link did not help until the request path changed. USB started as the management and recovery path: fastboot, a serial console, and a way back into a phone that had lost its network. A USB CDC-NCM (Ethernet-over-USB) adapter later appeared as a normal Ethernet interface. Raising the link produced carrier, direct Ethernet ARP replies, and successful pings to the phones. It became the preferred data path for the wired cluster.

On the wired path, a four-phone Inkling configuration sustained 3.124–3.263 generated tokens/s at a 2,048-token context. A later wired Baldur worker decoded at 4.46–4.60 tokens/s against a matched Achilles arm at 3.65–3.88 tokens/s, 15–26% higher decode throughput. That comparison changes the phone, not just the cable, so it is a placement result as much as a transport result.

The honest summary is not “Ethernet is 2× faster.” It is: once the management path stopped depending on Wi-Fi, the cluster became easier to keep alive, easier to observe, and less likely to lose a worker mid-request. Stability is part of speed.

The biggest win was deleting messages

The depth-state work is the clearest communication result. The original path repeatedly fetched a 2,304-element FP32 vector and sent the same amount of data plus metadata to another worker. A shared view let the scheduler reuse the destination copy instead of moving the same state again and again.

Diagnostic, two 23-interval decode windowsOriginalReused views
9 KiB GET responses per window4,416230
Mean GET requests per interval20321
Mean SET requests per interval23048
GET payload per window45.36 MB6.78 MB
SET payload plus headers per window47.40 MB7.55 MB
The candidate removed 182 GET/SET pairs per token and transferred 78.43 MB less across each observed decode window. The model arithmetic was unchanged; the state copies were not.

In the matched ordinary request, the token interval fell from roughly 674 ms to 304 ms. That is a communication win: fewer messages, less payload, and less coordinator work. It is larger than most of the kernel-level changes in the same campaign.

A wait can be the producer

The handoff trace shows why a faster wire is not always the answer. A 36 KiB read blocked for roughly 136–147 ms per decode interval. The producer, one worker's repeated core, took 127–138 ms of graph work in the same interval. Most of the wait overlapped compute. The coordinator was waiting for the producer, not for the transport.

This is the same lesson as the Wi-Fi result, one level deeper. If the critical path is a worker graph, a faster link moves a small number. The useful intervention is to shorten the producer, remove a dependency, or overlap the wait with independent work.

Caching is communication with storage

The same accounting applies to disk and RAM. On the 24 GB Mac, Kimi Linear's uncached expert path read about 850 MB from SSD per generated token. A 4 GB expert cache brought that to roughly 0.29–0.37 GB per token; a 12 GB cache brought it to 106–127 MB. The decode rate rose from about 2.6 to 4.5–5.4 tokens/s across the useful 4–8 GB plateau. That is not network traffic, but it is the same problem: move less state, or wait longer.

Prefix caching makes the same point on the request side. A 62-token Inkling prefix reduced first-token time from 22.61 s cold to 7.87 s restored. On the OrationMail workflow (the voice-first email assistant), a 256-token public prefix reduced a matched pair from 159.25 s to 81.19 s, with 40.91 s of prime and save cost and a net 37.15 s saving on two requests. The cache moved the work; it did not make the model faster.

What to measure

  • Messages, not just bytes. Two thousand small requests can cost more than one large one.
  • Payload per token. A state copy repeated 192 times per token is a design choice, not a fixed cost.
  • Exposed wait. Coordinator wait that overlaps worker compute is not the same as added latency.
  • Producer time. A read that blocks for 136 ms behind a 127 ms graph is a compute dependency, not a wire problem.
  • Storage reads. Expert cache misses and prefix restores are part of the same communication budget.
  • Thermal and clock state. A faster path that runs hotter can lose the gain on a sustained request.

The cable mattered. The cluster is more stable and easier to operate on Ethernet. But the durable speed came from removing state copies, keeping the producer and consumer close, and measuring where the coordinator actually waits. Communication speed is not a bandwidth number. It is the critical path through the request.

Sources & notes

  1. llama.cpp RPC backend documentation
  2. Tailscale, How Tailscale Works
  3. Linux kernel, USB gadget configfs