What are the ways to split work across machines?
There are three ways to put several machines to work on one model.
Request spreading serves more people. Layer split fits a bigger model. Tensor parallel makes one stream faster, if the link between machines is quick enough.
Request spreading
Each machine holds a whole copy of the model. A router in front takes each incoming request and sends it to whichever machine is free. No machine ever talks to another.
This raises throughput, the total tokensTokenA chunk of text, usually part of a word. Models read and write in tokens.Read more served across everyone. Three machines serve about three times as many people. Each person's speed is whatever their machine gives them.
Any network works, because only requests and replies cross it. The machines don't even need to match. A desktop GPU and two laptops can share the load, as long as each fits the model. What does a real cluster look like? has a household doing exactly that.
Superfluid is one tool built for this. A head machine owns the endpoint and places each session on a node holding the full model. Which tools run a model across machines? covers the setup.
Every machine needs enough memory for the full model. Request spreading never lets you run something bigger than your biggest box.
Pipeline or layer split
The model's layers are cut into consecutive slices, one per machine. Machine one runs the first slice, sends a small packet of state across the link, and machine two runs the next slice. Then the next token starts again at machine one.
This raises capacity. Three machines with 128 GB each hold a model that needs about 300 GB. It is how most home clusters work, and it is what llama.cpp RPC and most Which tools run a model across machines? do by default.
Only one machine works at a time for a given token. So a single stream runs at about the speed of one machine, minus the time spent crossing the links. The data per hop is a few kilobytes per token, so ordinary Ethernet copes.
Layer split is for fitting. If the model already fits in one machine, layer split makes it slower, not faster.
Tensor parallel
Every layer is cut across the machines, so each holds a share of every weight matrix. All machines work on every token at the same time, then swap partial results and combine them, layer after layer.
This can raise single-stream speed, because each machine reads only its share of the weightsWeightsThe full set of a model's parameters, stored in a file.Read more per token. It also adds capacity, the same as layer split.
The cost is chatter. The machines exchange results twice per layer, so a model with 60 layers needs over a hundred round trips for every token. Each one waits on the link's latency.
Over ordinary TCP networking those waits eat the gain, and tensor parallel ends up slower than one machine.
It needs a link with very low latency and high bandwidth. In practice that means RDMARDMARemote direct memory access. One machine reads another's memory without the CPU in the way.Read more, over Thunderbolt 5 between Macs or over 200 GbE between servers. Which cable do I need between machines? covers the options.
Tensor parallel is the hardest to set up and the least forgiving. Machines must match closely, the model's dimensions must divide evenly by the machine count, and a slow link makes it worse than useless.
The same three machines, three ways
Here are three identical machines, labelled A, B and C, set up each way.
Request spreading
A, B and C each hold the whole model. A router sends user 1 to A, user 2 to B and user 3 to C.
Nothing crosses between machines during a reply. Raises throughput on any network.
Layer split
A holds layers 1 to 20, B holds 21 to 40, C holds 41 to 60. Each token goes A, then B, then C, then back to A.
One machine works at a time. Raises capacity, and ordinary Ethernet is enough.
Tensor parallel
A, B and C each hold a third of every layer. All three work on every token together and swap results after each layer.
Raises speed and capacity. Needs RDMA-class links.
| Request spreading | Layer split | Tensor parallel | |
|---|---|---|---|
| What it raises | Throughput | Capacity | Speed and capacity |
| Model must fit one machine | Yes | No | No |
| Link needed | Any | Gigabit Ethernet or better | RDMA over Thunderbolt 5 or fast Ethernet |
| Setup effort | Low | Medium | High |
| Where to read more | What changes when many people use one model? | Which tools run a model across machines? | Which cable do I need between machines? |
You can combine them. A big lab runs tensor parallel inside each server, layer split between servers, and request spreading across many such groups. At home, pick one.
Write down the model you want, its 4-bit size from Will it fit?, and your largest machine's memory. If the model fits, you want request spreading or nothing. If it doesn't, you want layer split.
Go deeperThat's enough
Why layer split can still help throughput
With one user, two of the three machines sit idle at any moment. With many users, a serving runtimeRuntimeThe software that loads a model file and runs it.Read more can send a new request into A while B and C work on earlier ones. That pipelining keeps everyone busy and raises aggregate throughput.
It is the same trick as pipeline parallel inside one box.
Why tensor parallel needs even numbers
The runtime splits attention heads and matrix columns across machines. If a model has 64 heads, it divides cleanly by two, four or eight, but not three. Some tools pad or fall back to uneven splits, at a cost.
Expert parallel
Mixture of experts models allow a fourth split: put different experts on different machines. Each token visits only the machines holding its chosen experts. Large serving systems use this, and some home tools are adding it, but the traffic pattern is hard to predict and it suits big clusters more than two boxes on a desk.