Brahma: Mixture-of-Experts Inference as Message Passing on a Mesh of Commodity CPUs
Large language models are served mostly from GPU clusters, while the processors people already own sit idle. A mixture-of-experts (MoE) model uses a few experts per token, so most of it is idle at any moment. Brahma exploits that sparsity across a mesh of ordinary CPUs. It converts an MoE checkpoint into a graph of vertices (tokens, attention heads, KV heads, routed experts and, where a model has them, shared-expert neuron groups) whose message-passing forward pass matches the matrix pass to within 1.7×10⁻⁶ relative logit error. The node that receives a prompt keeps the text, attention and dense layers; only hidden vectors for routed experts cross the network. Experts are placed on a capacity-weighted consistent-hash ring with replicas, grouped by network zone, and moved so that experts chosen together share a machine. Expert calls are hedged and carried by a Rust data plane. A request runs in a private mode, in which no untrusted machine computes, or a mesh mode with per-operator caps, and untrusted peers' work is spot-checked and logged in RFC 6962 Merkle trees. On AWS Graviton instances with IBM Granite 3.1 1B-A400M, in single-owner meshes, 24 machines served 329 generated tokens/s with four chats running on each, with identical text at every entry; one chat ran at 12.2 tokens/s against 18.1 on one machine. In a separate run with machines in seven regions, routing kept nearly all expert calls on nearby replicas. When 12 of 24 machines were killed under load, no chat failed and no reply changed. A mesh grew to 50 machines, and across 79 runs on 4 to 50 machines all 1,896 compared replies matched a single-machine reference token for token. A 235-billion-parameter model ran on nine machines at 0.4 tokens/s. For the models we measured, one machine is faster for a single chat, and a single-machine runtime with 4-bit weights is faster still.
Authors
- Sunil Madhu (ORCID: https://orcid.org/0009-0009-7617-0253)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-04
- DOI
- https://doi.org/10.5281/zenodo.24805206
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- preprint