We Reviewed Seven Distributed-Inference Projects. None of Them Place Experts.
We Reviewed Seven Distributed-Inference Projects. None of Them Place Experts.
August 17, 2026 · AitherOS Engineering
Two machines sit on a desk here. A DGX Spark — 121 GB of unified memory at roughly 273 GB/s — and a workstation with an RTX 5090: 32 GB of GDDR7 at about 1.8 TB/s. They talk over 10 gigabit Ethernet, about 1 ms round trip.
Note the shape of that, because it decides everything: the fast box is the small box. The machine with six times the memory bandwidth has a quarter of the memory. Almost every distributed-inference design assumes the opposite.
On that hardware, a 250B-class mixture-of-experts model serves at 18.2 tokens/second. A 2.78-trillion-parameter model serves at 0.077. Same desk, same week, a factor of roughly two hundred.
This is what we learned getting there, what we measured, and what we found when we went looking for prior art.
The lever: ship activations, not weights
A mixture-of-experts model is mostly expert weights that mostly sit idle. Our larger model has 896 experts per layer across 93 layers — 83,328 experts, about 1.46 TB packed — and each token touches sixteen of them per layer. 1,488 expert activations per token, 25.8 GB of weight reads if every one is a miss.
The obvious way to use a second machine is to put some of those experts on it and fetch them when the router asks. We measured that arrangement: 13.48 seconds/token, and the reason is arithmetic rather than engineering. 25.8 GB per token over a 1.9 GB/s link is 13.6 seconds. The link is the token time.
The arrangement that works inverts the direction of travel. The machine holding the trunk sends the latent — 3,584 floats, 14.3 KB — and the machine holding the experts computes the FFN for every expert it owns and returns a single weighted sum, another 14.3 KB. One round trip per layer. Weights never move.
Per token that is about 42 MB of activations instead of 25.8 GB of weights:
roughly 600× less traffic across the wire. And the failure mode is benign by
construction — an expert the remote tier does not hold comes back in a missing
list and the local engine computes it. The tier can help or stand aside; it
cannot corrupt a token by absence.
The interesting consequence is that this design is latency-bound, not bandwidth-bound. 93 layers at ~1 ms per round trip is a 93 ms/token floor before any compute happens. That is a real ceiling, and it means the lever on a mesh peer is batching or pipelining layers — not a faster link. A 25 GbE upgrade would buy us almost nothing.
What we measured on the fast tier
Three changes, each with a number.
Packed VRAM. The expert tier stored resident experts as bf16 at 66.06 MB each. The packfiles on disk are MXFP4 at 17.56 MB. Keeping the packed bytes resident and expanding them per call on the GPU took the fast tier from 350 to 1,504 residents in the same ~26 GB — 3.76× the capacity, because capacity is the whole game when 64% of activations are missing.
Packed DDR5. The second tier stored fp32 at 132.12 MB per expert, and that was a deliberate, measured decision: on the CPU, fp32 mat-vec ran 1.44 ms against 14.73 ms for a bf16 cast per call. Quantising a CPU arm is genuinely wrong.
So we didn't quantise it. We retired it. Packed entries are served by the GPU instead: 17.56 MB across PCIe, expanded on device. Measured 16.73 MB per expert against 132.12 — 7.9× the experts per GB — and faster, because a PCIe hop plus a GPU expand beats a CPU mat-vec. A tier that had been holding one expert now holds 1,244.
Warm on start. A restart dropped every resident and nothing re-warmed them.
Cold measured ~58 s/token against ~22 s/token warm, and nothing anywhere reported
a fault — the container was up, health returned 200, and every expert came back
missing so the engine quietly did all 1,488 locally.
Together: 1,504 → 2,748 residents, miss rate 36.7% → 1.33%, prewarm 420.8 s → 85.5 s. The prewarm speedup was unplanned and the largest single number: packed fill reads bytes straight from disk with no GPU round trip and no fp32 cast.
The survey: seven projects, zero adoptions
With the tier working, we went looking for whoever had done this properly. Seven projects, read at the level of the code that makes placement decisions rather than the README.
| project | what it actually does |
|---|---|
| exo | tensor/layer sharding via MLX; macOS/Metal-first |
| shard | layer-block pipeline parallelism over WAN |
| mesh-llm | layer-range splits; its per-expert code is a quantizer |
| LMCache | tiered KV cache for vLLM and SGLang |
| apex-quant | MoE-aware mixed-precision GGUF recipes |
| gigatoken | a tokenizer |
| the engine's own upstream | single-machine, local NVMe only |
Not one of them places experts. They split by layer or by tensor. That is not a criticism — layer parallelism is simpler to reason about and proven at scale — but it is the wrong granularity for a model where six of 256 experts fire per token. These projects treat experts as opaque contents of a layer range.
Two findings from that survey are worth stating plainly because they were the opposite of what the documentation implied.
LMCache does not support llama.cpp. It is described as engine-neutral with
pluggable backends. In its Python source, vllm appears 979 times, sglang 111,
trtllm 20 — and llama.cpp zero. Two of the three claimed engines are
real; the one that mattered to us does not exist in the codebase. Adopting it
means adopting vLLM, which is a runtime migration for an 85 GB serving path,
judged against a baseline already doing 18.2 tok/s.
apex-quant's good idea was already in the model we run. Its recipe treats
shared experts (which fire every token) at higher precision than routed experts
(six in 256) — shexp=Q8_0, exps=Q6_K. Exactly the right asymmetry. But we
read the tensor table of our own quantisation and found Unsloth's dynamic IQ2_M
already doing it, harder: Q5_K/Q6_K for shared experts against IQ2_XXS/IQ3_XXS
for routed — about 5.5 bits versus 2.1, a 2.6× gap where apex-quant's is 1.3×,
at a third of the total size.
Zero adoptions is a real outcome. It means the remaining levers are ours to build, not something we were missing off a shelf.
Where the trillion-parameter model died
We spent real time trying to make the 2.78T model fast, and it is worth publishing the dead ends because each one looked promising.
Ternary experts: dead. Re-quantising the experts to ~2 bits would have halved the resident footprint. Measured GEMV output error on real tensors: 49.19% at 2 bits, 21.07% at 3, 11.50% at 4. MXFP4 at 4.25 bits is the floor — even 4-bit re-quantisation already costs 11.5%.
Rotation: neutral, not helpful. A randomised Hadamard rotation before quantising is the standard fix for heavy-tailed weights, and it is free at inference. On these experts it measured 0.98–1.15× — no change. That is mechanically sensible in hindsight: MXFP4 weights are already scale-normalised per 32-element block, so there is no heavy tail left to collapse, and rotating mixes across the very blocks carrying the scales. Rotation helps raw weights; on pre-quantised ones it has nothing to work with.
Expert merging: dead, and this is the interesting one. If experts were redundant, we could merge groups of them and shrink the model. So we measured similarity — permutation-invariantly, using each expert's full function so that two identical experts with shuffled internal units would score as identical.
Mean cosine similarity between experts: +0.0009 to +0.0424 depending on layer. Nearest-neighbour distance divided by average distance: 0.98–0.99. Even the closest pair of experts in a layer is about 2% nearer each other than two drawn at random. Agglomerative clustering over all 896 found no structure at any budget.
The experts are mutually orthogonal. There is no redundancy to harvest — which is probably why the model is good, and it gets more pronounced with depth (+0.042 at layer 1 falling to +0.001 at layer 69). Published merging results come from models with 8–64 experts per layer, where each expert is necessarily a generalist. At 896 with top-16, each one is a specialist.
The compression frontier, measured on the real weights
The dead ends above are about the experts. The other half of the model is the trunk — attention plus the shared paths, 54.4B parameters, 108.8 GB in bf16 — and it is the half you can actually choose the precision of, because unlike the experts it was never quantisation-aware trained.
So we measured it, on the real tensors, using GEMV output error rather than weight error. That distinction matters more than it sounds: what a layer does is a matrix-vector product, and quantisation error orthogonal to the activations costs nothing while error aligned with them costs everything. Two formats with identical weight MSE routinely differ several-fold in output error.
Every format at group 128, so the scale overhead is identical across rows and the comparison is bits-to-bits:
| format | bits/weight | mean output error | worst tensor |
|---|---|---|---|
| int8-g128 | 8.125 | 0.66% | 0.80% |
| ternary-g128 | 2.125 | 44.50% | 49.10% |
| ternary (TWN-optimised) | 2.125 | 43.89% | 46.22% |
| binary-g128 | 1.125 | 61.01% | 73.69% |
Read the middle of that table carefully, because it is the whole result. There is no gentle degradation between 8 bits and 2. Int8 is essentially free at 0.66%. Ternary — even with the TWN threshold that everyone actually ships, not a naive round-to-nearest — lands at 44%, and optimising it buys 0.6 points. Binary is worse than a coin flip on the output.
Combine that with the expert measurements and the picture closes:
- experts are already at their floor (MXFP4, 4.25 bpw; re-quantising to 4 bits costs 11.5% before you even reach ternary's 49%)
- trunk is at its floor at int8
- rotation does nothing on pre-quantised weights
- merging does nothing because the experts are mutually orthogonal
Four independent paths, all measured, all closed. That is not a discouraging result — it is a decisive one. It says the remaining lever is not a better quantiser. It is distillation: training a smaller student to reproduce a group of experts' function on the activations the router actually sends them. Post-hoc compression asks "how few bits can represent these weights"; distillation asks "how small a network reproduces this behaviour", and only the second question is still open.
Which makes captured activations the gate on everything, and that turned out to be its own story.
The 42 hours, and the assertion that named the wrong thing
Capturing routed activations needs the model to run a forward pass. Ours would not. Every attempt died on this:
File ".../compressed_tensors/compressors/nvfp4/helpers.py", line 174
assert a.dtype == torch.uint8
AssertionError
A bare assert. It names a dtype and never names a module, so all it tells you is that
something, somewhere, is not uint8. A rented 8×A100 spent 42.5 hours at $15.92/hr
and produced 48 bytes.
Four hypotheses fit that evidence. All four were wrong, and the way they were wrong is the transferable part:
- "the loader cast the packed tensors to bf16" — a real trap, and already fixed
- "the checkpoint declares MXFP4 but dispatches to NVFP4" — the traceback says
nvfp4, so this is the obvious read. But the declared format, the parsed scheme and the library's own inference all resolve to MXFP4. The MXFP4 compressor simply inherits NVFP4'sdecompressmethod, so the traceback names a file the format never selected - "a global format override is winning" — measured: it is
None
The actual cause is in the checkpoint's own config. It declares targets: ["Linear"]
and ignores re:.*self_attn.* and four mlp.*_proj names. The modules in the file are
named self_attention_res_proj, mlp_res_proj, routed_expert_up_proj and
routed_expert_down_proj — matching none of those patterns. self_attn is not a
prefix of self_attention for that regex.
So the config claims 368 tensors it never quantised. They sit on disk as full-width BF16; the loader allocates a half-width packed placeholder for each, discards the real weight into a "weights not used" list that reads as harmless, and the decompressor then asserts on a float16 tensor it believes is packed nibbles.
The confirmation is exact, and it is the kind of thing worth checking whenever a shape
looks nearly right: routed_expert_up_proj.weight is (7168, 3584) on disk, and
the placeholder allocated for it is (7168, 1792) — precisely half the columns,
because MXFP4 packs two 4-bit codes per byte.
Two patterns in the ignore list take a two-layer load from failing to 2688 modules decompressing, zero failures.
The lesson is not "read config files more carefully". It is that this was decidable in
200 milliseconds from two files that ship with the checkpoint — config.json and
the safetensors index — with no GPU, no weights and no forward pass. A static question
was answered instead with 42 hours of A100 and four wrong theories, because the
assertion pointed somewhere else. It is a check now, and it runs before anything gets
rented.
The part that cost the most: measuring wrong
More of this week went into measurement error than into optimisation, and the lessons transfer.
Run-to-run noise is ±25%. Eight identical two-token requests, same prompt: 71.93, 72.48, 82.82, 106.23, 107.56, 107.77, 108.80, 110.89 seconds. A 54% spread. Any single-run A/B comparison here reads an effect out of noise several times larger than the effect — and it did: measured by wall clock, the packed-DDR5 change looked like a 50% regression. Measured by taking the slope between two token counts, which cancels the fixed model-load term, it is a real −24%.
A coverage figure was wrong by 38 points. A tool reported "top 8,000 experts ≈ 95% coverage" and that number drove the entire compression plan. Re-measured against the real histogram: 57.30%. The gap was not an error — it was sample size. The 95% came from a 68-token trace; 486 tokens gives 57%. Coverage at fixed K falls as the trace grows, because the tail keeps arriving. A coverage number quoted without its trace length is not a measurement.
A binary had no GPU code in it for two days. The production engine was built
without an opt-in CUDA flag: zero CUDA symbols, no libcudart. Not a fallback, not
a misconfiguration — the code was never compiled in. Every throughput number from
that window described CPU inference on a machine with an idle GPU. And the utilisation
monitor that exists precisely to catch this reported "no inference process running,
so nothing to be idle about," because it samples the local machine and the engine
runs on the other one.
A decoder was wrong in three ways at once. The expert-weight reader treated one byte as one value where two 4-bit codes are packed, rescaled linearly what is a floating-point code, and read exponent bytes as linear multipliers. It produced a well-formed array of plausible magnitude — mean −0.12 where the correct decode gives −1.1e−05 — so every quantisation error table built on it was void, and nothing downstream could tell.
The pattern in all four: each failure produced a plausible number rather than an error. No exception, no non-200, no failing test. That is the characteristic failure mode of performance work, and the only defence we have found is to make the invariant executable — a check that fails, not a note that someone might read.
The capture, working
With those two patterns in the ignore list, the run that had produced 48 bytes in 42.5 hours produced 22 GB of activations in 232 seconds — on two H100s instead of eight A100s, because two layers of decompressed experts need ~62 GB and a 40 GB card cannot hold them while an 80 GB card comfortably can.
Every tensor carries its own proof. The capture reconstructs each pair and checks that
X @ Wᵀ reproduces Y:
mlp.gate_proj rows=26490 7168 -> 33792 rel=1.66e-03 VERIFIED
self_attn.q_proj rows=26490 7168 -> 12288 rel=1.66e-03 VERIFIED
block_sparse_moe.routed_expert_down_proj rows=26490 7168 -> 3584 rel=1.66e-03 VERIFIED
block_sparse_moe.routed_expert_up_proj rows=26490 3584 -> 7168 rel=1.66e-03 VERIFIED
block_sparse_moe.shared_experts.up_proj rows=26490 7168 -> 6144 rel=1.66e-03 VERIFIED
1.66e-03 is bf16 rounding — the arithmetic is exactly right, and 24 of 24 tensors
verified. That check exists because a hook attached one module too high yields a
well-shaped array of the wrong tensor, which trains to a confidently wrong mapping
and looks fine the whole way.
Two numbers in that table matter more than the rest. 26,490 rows against a 7168-wide
input is 3.7× overdetermined — the first run gave 131 rows, which fits a 7168-dimensional
projection so loosely that it reports a low training error meaning nothing at all.
And routed_expert_down_proj: 7168 → 3584 is the latent — the same 3584-wide vector
the compute-peer design ships across the wire. Both of the remaining ideas run through
that interface, and now we have 26,490 real samples of it.
Getting there took six more failures, each one deeper than the last, and every single
one named something other than itself: a CUDA OOM that was another tenant's server; a
transformer_layers[0] IndexError that was a hybrid model sliced too short to contain a
full-attention layer; Half != BFloat16 inside moe_infer that was the placeholder from
the original bug; and — the best of them — a corpus that loaded, printed
corpus: 691 docs, and was then overwritten two hundred lines later by the built-in
list. The run used 131 rows while the log said 691 documents had loaded. A success
message is not evidence, if the thing it reports can still be undone downstream. The
fix logs the count at the point of use, not the point of assignment.
What actually made the difference
Stepping back, the wins were not clever.
The trillion-parameter model is not slow because of a missing kernel. It is slow because 1.46 TB of experts does not fit in 121 GB, and every post-hoc compression path we measured is at its floor. It is characterised — and the next move on it is distillation, not a better quantiser.
One number reframes how expensive that experiment has to be. A two-layer slice of a 2.78-trillion-parameter model needs 23.2 GiB of the 1.42 TiB checkpoint — 1.6%, five shards out of ninety-six — because the safetensors index maps every tensor to a shard, so "which bytes does this experiment touch" is a question you can answer before moving any of them.
There is a trap inside that, and we walked into it: the loader opens every shard
named in the index, regardless of how many layers you asked it to build. Truncating
the model does not truncate the file list, so a correct 5-shard subset still died with
FileNotFoundError on shard 3 — after a fourteen-minute CPU-bound walk that looked
exactly like loading. Filtering the index to the shards actually present is the fix,
and it turns a seven-hour transfer into a seven-minute one.
The model that works is a smaller MoE whose active set fits: 2.2 GB of expert weights per token, served at 18.2 tok/s. That is still about 7× off its own memory-bandwidth ceiling, which tells us it is compute-bound rather than bandwidth-bound — and that is the next thing to attack, on the fast box, with the model resident.
The expert tier earned its keep for a boring reason. Its residency map was a hand-maintained file describing which experts the remote machine held. Nothing generated it. It was written once, three days before we looked, and by then the tier held a completely different set — so the engine asked the mesh for experts it no longer had, and got 0.2% of what it needed while 1,504 sat resident 4 ms away. The fix was to have the tier publish its own residency instead of anyone maintaining a mirror of it.
That is the recurring shape of this entire project, and it is not about inference at all. A budget that exists and is not spent. A flag that is set and inert. A file that mirrors live state and drifts. Every one of them behaves correctly in isolation, and the fallback works, so nothing reports anything.
The fast paths were built. They just weren't reached.
The expert placement tier, the residency publisher, and the measurement tools described here are part of AitherOS. The seven projects surveyed are all open-source and all worth reading — they are simply solving a different problem than the one in front of us.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.