Streaming DiLoCo keeps GPUs busy on a link about 100 times slower than usual: it sends the model in slices, trains while they travel, and shrinks each number to 4 bits.
Train one language model on GPUs in different buildings, joined by an ordinary internet link, without the GPUs sitting idle.
Pick a model size, then drag the link speed. Bars show the speed each method needs to keep the GPUs 95% busy. Then we build, piece by piece, the three ideas that make the last bar so short.
You need a rough idea of how a neural network trains (guess, measure the error, nudge the weights) and no more. We teach all-reduce, bandwidth and the rest from zero.
Based on Streaming DiLoCo with overlapping communication: Towards a Distributed Free Lunch (arXiv 2501.18512, January 2025), by Arthur Douillard, Yanislav Donchev and colleagues at Google DeepMind and Google Research. Every idea is re-taught here in our own words and devices. It reads the background lesson DiLoCo and Low-Communication Pretraining and the Core Automation post The Hitchhiker’s Guide to Training on Compute Islands (Rohan Anil, 2 November 2026).
The bars are the paper’s Table 4, a simulation, not a measurement: the speed in gigabits per second (Gbit/s) needed to reach each share of compute time, with H = 100 inner steps and 3-layer fragments, at step times of 0.1 s, 0.8 s and 4.9 s for the three sizes. Your link is the vertical line; its default of 25 Gbit/s is the link in the Core Automation case study.
Chapter 0
See why training across two buildings leaves costly chips idle, and what a fair fix has to change
Picture a company with two rented clusters of GPUs. One sits in the United States. The other sits in Asia, about 9,000 miles away. Neither cluster is big enough alone. Together they could train a large language model.
That is the real setup in the Core Automation post The Hitchhiker’s Guide to Training on Compute Islands: 160 GPUs on each side, joined by one link of 25 Gbps. The post calls each cluster a compute island, a pool of chips that is fast inside and slow to the outside. This lesson teaches the paper that made such a run possible.
A GPU is a chip built to do many multiplications at once. Training a network is a loop of steps. In each step the GPU reads a small batch of text, measures how wrong the network was, and works out how to fix it.
That fix is the gradient: one number per weight, saying which way and how far to nudge it. A model with 1 billion weights makes a gradient of 1 billion numbers in every step. Then the weights move a little, and the next step begins.
To use many GPUs at once, the standard recipe is data parallelism. Every GPU holds a full copy of the model, called a replica. Each replica reads different text. After every step, the replicas must agree on one average gradient, or their copies would drift apart.
The agreeing step is an all-reduce: every replica sends its gradient out, and every replica gets the average back. Think of ten friends who each wrote a number on a card. An all-reduce is the moment all ten walk away holding the same average.
The all-reduce moves a lot of data. Bandwidth is how much data a wire carries each second. We measure it in Gbit/s, gigabits per second: a gigabit is a billion bits, and a bit is one 0 or 1. A faster wire is a wider pipe.
Inside one building, the wires between GPUs are very wide. The paper says that Data-Parallel training of a 1B model needs about 100 Gbit/s between the sites, 200 for a 10B model and 300 for a 100B model (the caption of its Figure 4). Between two buildings, a link of 25 Gbit/s is a good one.
When the wire is too narrow, the GPUs wait. The share of time that GPUs spend computing, rather than waiting for data, is the compute utilization. A value of 1.0 means no waiting. A value of 0.2 means the chips you pay for are idle four fifths of the time.
Try it with a toy. The device below sends the full gradient after every step and waits for it to arrive before the next step. Pick a model and slow the wire down.
Blue is the GPUs computing a step. Yellow is the GPUs waiting for the whole gradient to cross the link. The top row is your link; the bottom row is a link with no limit. Drag the speed down.
Illustrative arithmetic, not the paper’s simulator. We assume each weight travels as a 16-bit number, so the gradient holds 16 gigabits per billion weights, and we assume no overlap of waiting with computing. Real Data-Parallel code hides some waiting behind the backward pass, which is why the paper’s own requirement for 95% busy GPUs is 222 Gbit/s at 1B, far below what this toy needs. The step times (0.1 s, 0.8 s, 4.9 s) are the paper’s Table 4.
At 25 Gbit/s the 1B model computes for 0.1 s and then waits 0.64 s. Its GPUs are busy only 14% of the time. The 100B model waits over a minute for every five seconds of work. Money is burning on chips that wait.
There are only three levers. Send the gradient less often. Send less of it at a time. Make the numbers smaller. And one trick on top: do not stop working while the data travels.
The paper combines all of them. An older method, DiLoCo, already sends less often. Streaming DiLoCo adds three changes. It streams the model in slices, so the wire never carries a huge burst. It overlaps the sending with training, so nobody waits. And it quantizes the numbers to 4 bits. Together they cut the speed needed from hundreds of Gbit/s to a few.
The authors call the goal a distributed free lunch: the same model quality as ordinary training, with a hundredth of the bandwidth. Whether the lunch is free is the question of the last three chapters.
Chapter 1
Learn how DiLoCo lets each site train alone for 100 steps, then turns the change into one shared update
Two cooks share one recipe for soup. Each cook has their own pot and their own market. Every minute they could phone each other and agree on one change to the recipe. That costs a lot of phone time.
So they try something else. Each cook tastes and adjusts alone for an hour. Then they compare how far each pot moved from the shared starting recipe, average those moves, and both restart from the new shared recipe. This is the idea behind DiLoCo, short for Distributed Low-Communication training (Douillard et al., 2024). The background lesson DiLoCo and Low-Communication Pretraining teaches it in full. This chapter gives you what you need for the rest.
An optimizer is the rule that turns a gradient into a change to the weights. The simplest rule subtracts a small multiple of the gradient. AdamW is a smarter rule that also tracks how steady each gradient has been. DiLoCo uses two optimizers on two clocks.
The fast clock is the inner optimizer, AdamW. Each replica runs it alone on its own shard of the data, for H steps. The paper’s examples use H = 30 and H = 100. During these steps nothing crosses the wire.
The slow clock is the outer optimizer. It runs once every H steps, on a signal built from all replicas. DiLoCo uses SGD with Nesterov momentum: SGD means “subtract a multiple of the signal”, and momentum means “keep a little of the previous direction too”. The paper tuned the outer learning rate to 0.4 at small scale and kept it for all sizes.
What is the signal? After H inner steps, replica m holds weights that moved away from where it started. The distance it travelled, as a list of numbers, is the outer gradient. The literature also calls it a pseudo-gradient, because it is not a true gradient, only a record of a whole trip. It points the way the replica went, so the outer optimizer subtracts it, as it would a gradient.
Take one weight with value 1.00. Replica 1 ends at 0.70 and replica 2 at 0.50. Their outer gradients are 0.30 and 0.50, and the average is 0.40. With a plain outer step of size 1, the new weight is 1.00 − 0.40 = 0.60, exactly the average of the two replicas.
That is the older rule, FedAvg (McMahan et al., 2017). With size 0.4 and no momentum, it is 1.00 − 0.16 = 0.84, a gentler move. Momentum then adds a share of earlier rounds. These numbers are illustrative.
In Data-Parallel training, a gradient of N numbers crosses the wire at every step. In DiLoCo, a list of N numbers crosses once every H steps. With H = 100, that is 100 times fewer rounds. The paper puts it this way: the cost is as high as Data-Parallel, but it is paid once in 100 steps.
Look at the data flow. Each replica holds weights of shape [N]. In the authors’ JAX code, the replicas are stacked on one extra leading axis, [M, N], and the inner steps run on all replicas at once. The outer step is one all-reduce over that axis, with no central server.
Now run it. The device trains a tiny made-up model with two replicas that see slightly different data. Choose how often they sync.
Grey is Data-Parallel, which syncs after every step. Purple is DiLoCo with the gap you pick. Orange ticks mark the syncs. Lower is better. Try the largest gap, then move the outer step size.
A toy, not the paper’s model: 16 weights, a bowl-shaped loss, noisy gradients, two replicas whose data pull toward slightly different targets, 300 steps, averaged over 20 seeded runs. The inner optimizer is plain SGD and the outer optimizer is Nesterov SGD with momentum 0.5. The real DiLoCo uses AdamW inside and tuned its outer step size to 0.4.
The purple curve follows the grey one, though at H = 30 it synced 10 times where Data-Parallel synced 300. That is the surprise behind DiLoCo. A short walk alone loses little, because the replicas started together and the data are similar.
The authors' code gives a feel for the realization. It uses a modified NanoDO codebase with DrJax. The inner step is a vmap over the replica axis, and the outer step is one all-reduce. Each replica also shards its weights over its own devices with FSDP, so DiLoCo adds a new axis of parallelism on top of the old ones.
The symptom of a gap that is too large is drift: the replicas wander into different places and their average is poor. The symptom of a gap that is too small is noise: the outer gradients are tiny and mostly random. The paper’s appendix says exactly this and advises a middle ground. Measure it by watching the evaluation loss as you vary H. Fix it by choosing H from the middle of the range that works, as the paper does with 30 and 100.
Chapter 2
Split the model into fragments and sync them on a rota, so the wire never carries one huge burst
You are moving house along a narrow lane. One giant truck would block the lane for an hour and nothing else could pass. So you send one small van every few minutes instead. The same furniture arrives. The lane is never jammed.
DiLoCo has a jam of its own. For 99 steps the wire sits empty. At step 100, every replica sends its whole outer gradient at once. The link must carry all N numbers in one burst, so the link must be wide enough for the biggest burst. The paper calls this the peak bandwidth: the most data per second the link ever has to carry. Quiet stretches do not help; only the peak sets the price of the link.
A language model is a stack of identical transformer blocks (also called layers), plus an input table of word vectors. The 1B model in the paper has 24 blocks; the 10B has 48; the 100B has 108 (Table 4). Each block holds its own weights.
Streaming DiLoCo cuts this stack into P groups of blocks. Each group is a fragment. Instead of sending one outer gradient for the whole model every H steps, a replica sends the outer gradient of one fragment at a time, on a rota. The paper uses fragments of 3 blocks at every model size, so bigger models simply have more fragments.
The rule is short. Fragment p has a time offset tp. It syncs whenever the step count minus its offset divides evenly by H.
Take H = 100 and two fragments, as in the paper. Fragment 1 has offset 0 and syncs at steps 100, 200, 300. Fragment 2 has offset 50 and syncs at steps 150, 250, 350. Each fragment still trains 100 steps between its own syncs. But the model as a whole now talks every 50 steps, and each talk carries half of it.
The appendix gives the real counts. With 3-block fragments, the 1B model has 8 fragments, the 10B has 16 and the 100B has 36. A fragment of the three sizes syncs somewhere in every 11, 5 and 2 steps. The 1B model has 24 blocks, so a burst is 3/24, one eighth of the model: a peak 8 times lower.
Follow one replica with H = 100 and two fragments, offsets 0 and 50. Here is what happens, in order.
The failure to watch for is a fragment that is too big. The symptom is a link that spikes to its limit once per round while idle the rest of the time. You measure it by logging bytes per second on the link across a round. The fix is smaller fragments, until the peak fits the link. The paper settles on 3 blocks as a trade between a low peak and good learning, and does not say that smaller ones fail.
Two patterns are possible, shown in the paper’s Figure 2. In the sequential pattern, a fragment holds neighbours: blocks 1 to 3, then 4 to 6. In the strided pattern, a fragment holds every P-th block, so blocks 1, 4, 7 form one fragment and blocks 2, 5, 8 another.
The paper chose strided, for three reasons. Quality was slightly better. Fresh blocks spread across the full depth of the network, instead of one end. And it fits the next chapter’s overlap better, because the early blocks, the first ones needed in the next forward pass, never all sync together (Figure 14). Play with both below.
Top: the 24 blocks, coloured by fragment. Bottom: what crosses the wire over 300 steps, with H = 100. Pick a fragment size and a pattern, and watch the tallest bar.
The fragment sizes (3 blocks as the default) and the formula are the paper’s; the 24-block model is its 1B model. Offsets are spread evenly, tp = p × H / P, a tidy choice for the picture. The paper does not print its exact offsets. Block weights are treated as equal in size, which ignores the embedding table.
With the whole model in one fragment, you get the old DiLoCo: one tall bar every 100 steps. With 3-block fragments there are eight bars per 100 steps, each one eighth as tall. The total over 100 steps has not changed. Only the shape has.
Smaller fragments cut the peak further. But fragment size also changes the learning, as the paper's Figure 6 caption says, so it settles on 3 blocks as the balance between peak and learning.
A related method, FedPart (Wang et al., 2024), also sends part of the model each round. But it freezes every block that is not being sent. For an 18-block model with 3-block fragments, 15 blocks (83%) do no learning in each round. The authors ran both: the frozen version reached an evaluation loss of 3.2145, the Streaming DiLoCo version 2.6749. Freezing raised the loss by 20%. Streaming DiLoCo trains every block all the time and only sends a few.
Chapter 3
Learn how the delay tau and the mixing factor alpha let a replica work on while its update is still in flight
A cook finishes a plate and carries it to the pass. Then the cook stands there, hands empty, until the waiter takes it. Every plate costs a pause. A better cook slides the plate across and starts the next order at once.
The DiLoCo of Chapter 1 is the first cook. Line 9 of its algorithm is block-receive: after sending, the replica stops and waits until the averaged outer gradient comes back. Slicing the model (Chapter 2) makes each wait shorter, but there is still a wait. Streaming DiLoCo's second change is to stop standing there.
Look at the timeline of one fragment. At step t the replica builds the outer gradient for the fragment and sends it. This is an async-send: the call returns at once and the bytes travel in the background. The replica starts step t+1 without waiting.
It keeps training for τ steps (the Greek letter tau). The number τ is the overlap delay: how many inner steps the update is allowed to take to arrive. Only at step t+τ does the replica block-wait for the averaged result. If the data already arrived, the wait is zero.
Then comes a problem. By that time the replica has trained the fragment for τ more steps, and its local fragment is no longer the one the outer gradient was built from. Two versions of the fragment now exist. One is the local version, τ steps ahead. The other is the outer version, made by applying the received gradient to the old shared weights.
The paper blends them with a mixing factor α (alpha), a number from 0 to 1. It is a dial between trusting the local version and trusting the shared one.
Take one weight. Locally it is now 0.62. The outer version says 0.80. With α = 0.5, the merged weight is 0.5 × 0.62 + 0.5 × 0.80 = 0.71. With α = 0, it is 0.80 and the local steps are lost. With α = 1, it stays at 0.62 and the replicas never learn from each other. These numbers are illustrative.
Here is one overlapped sync for one fragment with τ = 1, in the order of algorithm 2.
The failure here is a delay that is too long. The symptom is a loss that creeps up because the outer gradient describes weights that are many steps old. The paper measured it: under 0.2% up to 10 steps. The fix is to keep τ at or below 5.
Now the clock. Say the update needs L step-times to cross the link. The replica trains for τ steps, then waits for the rest. The wait is the larger of 0 and L minus τ. With τ = 1, the link may take one whole forward and backward pass, which is several seconds at large scale (the paper's section 3.2.2). Try different delays below.
Top lane: your GPUs. Bottom lane: the update in flight. Yellow is waiting. The green mark is the merge. Set how long the data takes, then raise the delay until the yellow goes.
Illustrative timing: one step-time is one forward and backward pass, and the window ends when the data has arrived and the replica has done its τ steps. The weight values 0.62 and 0.80 are made up. In the paper’s main runs τ = 1; its ablation (Figure 8) finds under 0.2% loss damage up to τ = 10 and advises at most 5.
With τ = 0 the replica waits for the whole trip, which is the old behaviour. As τ rises, the compute lane fills and the yellow shrinks. Once τ is as large as the trip time, the wait is gone and the GPUs never stop.
The cost of a larger τ is stale data: the outer gradient was built from weights that are τ steps old. The authors varied τ from 1 to 20 for α = 0 and α = 0.5. The loss damage is negligible up to 10 inner steps of overlap, below 0.2%. The simulated compute utilization of a 100B model gains little after 5. So they advise at most 5 steps of overlap, and use 1 in their main runs for simplicity.
They also tested workers that run at different speeds, such as two types of TPU. Giving each worker its own delay, with τ1 = 1 and τ2 varied, left the loss stable while τ2 stayed below 5 (Figure 10). This hints that a slow site can simply receive its updates a few steps late. The Core Automation post relies on the same idea when it says a late-arriving update can still be committed.
Chapter 4
See how rounding each outer gradient to a power of two cuts the bytes by four to eight times with no loss
A friend asks how tall you are. You could say 182.37 centimetres. Or you could say “a bit under two metres”. For deciding whether you fit through a door, the short answer is enough. It also takes far less breath to say.
The outer gradient is a list of N numbers, and a computer stores each one as a float with 32 bits. That is the digital version of “182.37 centimetres”. The third change in Streaming DiLoCo sends the “a bit under two metres” version instead, using 4 bits per number.
Scientific notation writes 1.5 × 103 for 1,500. It has three parts: a sign (plus or minus), the digits 1.5, and the power 3. A float has the same three parts, in binary. The digits are the mantissa. The power is the exponent. A 32-bit float, FP32, spends 1 bit on the sign, 8 on the exponent and 23 on the mantissa.
The mantissa is where the fine detail lives. If you drop it completely, only a sign and a power remain. The number can then be only plus or minus a power of two: … 0.25, 0.5, 1, 2, 4 … The paper uses exactly this format, called E3M0: 1 sign bit, 3 exponent bits and 0 mantissa bits (Agrawal et al., 2024). Four bits in all. Three exponent bits give 8 different powers of two, and the sign doubles that to 16 values.
Quantization means rounding each number to the nearest value the small format can hold. Here are three entries of an outer gradient, rounded to the nearest power of two on a log scale. 0.30 becomes 0.25. 0.50 stays 0.5. −0.07 becomes −0.0625. (The rounding rule is ours, for the picture. The paper does not spell out its rule.)
Three details matter for a re-implementation. First, the replicas still compute their gradients in FP32. Only the outer gradient, as it leaves the replica, is rounded (algorithm 2, line 8). Second, a replica compresses its own outer gradient before sending, so the wire carries 4-bit numbers. Third, the sums on arrival are done in FP32 (section 2.4), because adding many rounded numbers in a tiny format would pile up error.
In shapes: each fragment sends [np] numbers, where np is the number of weights in the fragment, at 4 bits each instead of 32. The receiver gets a vector of rounded numbers and averages in full precision.
Why can rounding be this crude? Each rounded number is off by a modest share of its own size, and the errors of different replicas point in different directions. In the average, many of them cancel. This is our reading, not a proof from the paper. What the paper shows is experimental: across many runs, even at the billion scale, they found “no sign of performance regression” from FP32 down to FP4.
The paper compares this with another way to save bits: set some numbers to zero. Three methods do this: FedDropout, Dare and Top-K, which keeps only the largest entries. In Figure 11, lowering the precision from float32 to float4 did not hurt, while setting values to zero was “significantly worse, particularly when zero-ing out at random”. A rounded number still carries the right sign and roughly the right size. A zeroed number carries nothing.
Try both below on a made-up outer gradient. Two replicas each send a vector of 32 numbers. The device shows the average after each kind of compression.
Each stick is one weight’s average outer gradient. The grey line is the exact value. The orange dot is what arrives. Choose how the two replicas compress what they send.
A vector toy, not a training run: the numbers are random, each replica is the shared signal plus its own noise, and the E3M0 grid spans 8 powers of two below the largest value. The error is the length of the difference divided by the length of the exact average. Zeroing keeps each number with chance 1 in 8 and does not rescale, as in the paper’s simplest drop-out comparison. Whether training survives is shown by the paper’s Figure 11, not by this device.
At 4 bits, the dots hug the grey lines. The error is about one sixth of the vector's length (14 to 18% over the eight seeds we tried). With seven of every eight numbers zeroed, the average is mostly empty, and the error is nearly the whole vector. Both use the same 4 bits per number on average. How you spend the bits matters.
Table 1 trains a 1B model on 25 billion tokens. Data-Parallel exchanges 441 terabytes. Streaming DiLoCo with overlapped 4-bit communication exchanges 1.10 terabytes: 400 times fewer bits. Our arithmetic for the factor: 100 times from syncing every 100 steps, times 4 from using 4 bits where the baseline uses 16. The paper does not print the baseline's width, so the 16-bit part is our inference. It fits the 400 exactly.
The peak is a separate gain. The 8 times lower peak comes from the 3-block fragments of Chapter 2 (24 blocks over 3). And the delay of Chapter 3 lets the trip last a whole forward and backward pass. Three changes, three different quantities: peak, waiting time and total bytes.
Chapter 5
Read the paper’s simulator and its bandwidth table to see what each of the three changes buys
A bakery owns an oven that costs money every hour it is on. If bread goes in only half the time, the owner pays for a half-empty oven. A good baker counts one number: the share of oven hours that the oven spent baking.
The paper counts the same number for GPUs, and calls it compute utilization (CU), as in Chapter 0. It is the fraction of wall-clock time that the chips spend computing instead of waiting for data. The paper argues this is a better yardstick than bytes sent. The reason is that overlap (Chapter 3) sends the same number of bytes but wastes less time.
Real clusters at the 100B scale are too costly to test over and over. So the authors built a simulator (section 3.1). It draws one training step as a DAG, a directed acyclic graph: boxes joined by arrows that say “this must finish before that can start”.
Each box is one block of the network and has one of four types. A forward pass (blue). A backward pass for the activations (light green). A backward pass for the parameters (dark green). A gradient reduction, the all-reduce over the link (purple). One step has 4L − 1 boxes for L blocks, because the first block needs no backward pass for activations.
The simulator then plays the graph forward in time for each method: Data-Parallel (reduce every step), DiLoCo (reduce everything every H steps), Streaming DiLoCo (reduce fragments on the rota) and Streaming DiLoCo with overlap. It sets a link speed, measures how much time is spent computing, and reports CU. It sweeps the speed to find the lowest one that reaches 50%, 80%, 90%, 95% or 99%.
The compute step times come from each model's size and a hardware profile. They are 0.1 s for 1B, 0.8 s for 10B and 4.9 s for 100B. The table's caption says the estimate assumed an MFU of 60%. MFU, model FLOPs utilization, is the share of a chip's peak arithmetic speed that real training reaches. (The paper's body text says 40% in one place and its table caption says 60%. We quote the caption.)
The paper's Table 4 gives, for each method, the speed it needs for each CU. The device below shows those numbers, one change at a time. Each bar is a method; the factor beside it says how many times lower it is than the bar above.
Pick a model size and a goal. Each bar is the link speed that method needs. Read the factor next to each bar to see which change helps most.
All numbers are the paper’s Table 4 (a simulation): H = 100 inner steps, 3-block fragments (8, 16 and 36 fragments for the three sizes), step times 0.1 s, 0.8 s and 4.9 s. The factors are our division of neighbouring table entries. Data-Parallel’s own requirement is shown as the grey tick.
Read the 1B model at 95%. Plain DiLoCo needs 23.3 Gbit/s. Streaming drops it to 16.0, a factor of 1.5. Overlap drops it to 9.1, a further 1.8. Four-bit numbers drop it to 2.0, a further 4.5. Data-Parallel needs 222.3, so the last bar is 111 times lower. At 99% busy, the picture shifts: streaming alone helps 3.1 times, because a strict target makes the peak burst matter more.
Look at the last column across sizes. At 95%, Data-Parallel needs 222, 268 and 391 Gbit/s as the model grows. But Streaming DiLoCo with overlap and 4 bits needs 2.0, 1.4 and 1.1. It gets cheaper as the model grows. This is the paper's key claim about scale.
The cause is the square-cube law (Ryabinin et al., 2023). A square matrix of side n holds n2 numbers, which is what you send. Multiplying with it costs about n3 operations, which is what you compute. Double n. The data to send grows 4 times. The compute grows 8 times. So a bigger model has more compute time to hide each byte behind. With overlap, that extra time is free cover for the trip.
There is a cost, and the paper states it. In ordinary Data-Parallel training, each GPU holds the weights (1 copy) and the Adam state (2 copies): 3 in all. DiLoCo adds the shared outer weights (1) and the Nesterov momentum (1): 5 in all, which is 5/3 as much, or 66% more.
Streaming fixes most of this. The send schedule is known before training starts, and only one fragment's outer state is needed at a time. So the rest lives in CPU memory and one fragment is copied to GPU memory just before its turn, in under 10 ms on an H100 by the paper's estimate. For a 100B model with 108 blocks and 3-block fragments, the extra GPU memory is about 20 GB on top of 1,117 GB: roughly 2%.
Chapter 6
Read the paper’s loss and accuracy tables to see how little quality the bandwidth saving costs
A shop sells a car that uses a hundredth of the fuel. You would ask one thing at once: does it still get you there at the same speed? A cheaper way to train is worth nothing if the model comes out worse. This chapter reads the paper's evidence on quality.
The paper trains a Chinchilla-style transformer (Hoffmann et al., 2022) on the C4 web-text data set, at sizes from 35 million to 4 billion weights. Each size sees the Chinchilla-optimal number of tokens, from 700 million tokens for the smallest to 83 billion for the 4B model (Table 2). Training uses two stabilisers, QKNorm and a Z-loss of 1e-4. Two replicas train, each spread over its own devices with FSDP, inside one program. The outer step size is tuned once at small scale, to 0.4, and never changed.
Two kinds of score appear. The evaluation loss is the average surprise of the model at the next token of held-out text; lower is better. HellaSwag is a multiple-choice test: given the start of a story, pick the most sensible ending. Higher accuracy is better. Piqa and Arc-Easy are two more such tests, in the appendix.
Which weights do you test? Streaming DiLoCo has no single true model at any moment, since each fragment last synced at a different time. The paper tests the shared outer weights, and found the choice mattered little (Table 3: loss 2.67 for the outer weights, 2.68 for the replica average, 2.77 for one replica).
Figure 5 and the appendix Table 5 compare four runs per size: Data-Parallel, DiLoCo with H = 30, Streaming DiLoCo with overlapped 4-bit communication at H = 30, and the same at H = 100. At 1B weights the three loss values for Data-Parallel, DiLoCo and Streaming DiLoCo with H = 30 are 2.49, 2.49 and 2.48. Their HellaSwag scores are 46.6%, 46.56% and 46.6%. The H = 100 run is slightly behind at small sizes (2.50, 46.0%), but the gap shrinks as the model grows. At 4B weights only two runs exist: Data-Parallel at 2.25 and Streaming DiLoCo with H = 100 at 2.26.
The paper fits a line to loss against compute on a log scale. The slope is −0.13149 for Data-Parallel and −0.13539 for Streaming DiLoCo. A steeper (more negative) slope means the loss falls faster as you add compute. The authors read this as the method improving proportionally better with scale. That is a fit through a few points, so treat it as a hint.
Slide the device to a size and read the gaps. All of them are small. Notice that the gap is mostly positive: the new method usually trails Data-Parallel by a hundredth or two at small sizes.
Choose a table. In the C4 view, bars show how far each method’s loss sits above Data-Parallel (zero line); slide to pick a size. In the Dolma view, compare data sent and hours spent on a 1 Gbit/s link.
Numbers are the paper’s: Table 5 (C4, 35M to 4B, loss gaps are our subtraction) and Table 1 (1B model, Dolma, H = 100, sequence length 2,048). “Streaming DiLoCo” here is the full method with overlapped 4-bit communication, M = 2 replicas. The 4B model was run only for Data-Parallel and for H = 100. The hours at 1 Gbit/s come from the paper’s simulator, not a real link.
Chinchilla-optimal runs are not how labs train today. Models are now trained on far more tokens than that rule suggests, which the paper calls overtraining. So Table 1 trains the 1B model on the Dolma data set with 25, 100 and 250 billion tokens, and H = 100.
The losses match to the second decimal: 2.67 against 2.66 at 25B, 2.52 against 2.51 at 100B, 2.45 against 2.45 at 250B. At 250B tokens HellaSwag is 54.24% against 53.86%. In the data sent, the gap is huge. Data-Parallel exchanges 441, 1,767 and 4,418 terabytes. Streaming DiLoCo sends 1.10, 4.42 and 11.05. That is the 400 times in the abstract.
Time tells the same story. On a 1 Gbit/s link the paper's simulation gives the 25B run 109 hours for Data-Parallel and 0.88 hours for Streaming DiLoCo; with an ideal infinite link both need 0.67 hours. So the slow link costs Streaming DiLoCo about 31% extra and Data-Parallel about 160 times extra.
The picture is not perfectly clean, and the tables show it. In Table 1, Arc-Easy is lower for the new method at 25B tokens (38.42 against 40.42) and at 250B (41.92 against 44.21), though Piqa is higher in all three rows. Table 6 shows more replicas cost something. With M = 4 replicas at 1B, the loss is 2.50 instead of 2.48 for H = 30. On Dolma, M = 4 reaches 2.73, 2.54 and 2.47 against 2.66, 2.51 and 2.45, while sending half the data (Table 7). More replicas mean a bigger global batch and fewer steps.
Also, the training tables here use two or four replicas, on models up to 4B. The 10B and 100B figures in Chapter 5 come from the simulator. The paper does not train at those sizes.
Chapter 7
Compare what each ablation costs in loss, then read what the paper leaves unproven
A mechanic who adds three parts to an engine wants to know which part does the work. So the mechanic removes one at a time and listens. This is an ablation: change one thing, keep the rest, and measure what the change costs.
The paper runs its ablations on a 500 million weight model, trained on C4 for the Chinchilla-optimal 11 billion tokens (section 3.3). Here are the findings, one design choice at a time, with the numbers the text gives.
Fragment size and pattern. Figure 6 varies how many blocks a fragment holds. Smaller fragments lower the peak but change the learning dynamics; 3 blocks is the trade the authors chose. Strided beats sequential on loss and on utilization (Figure 7). Freezing the unsynced blocks, as FedPart does, raised the loss by 20% (Chapter 2).
Overlap. Figure 8 varies τ from 1 to 20. The loss damage stays under 0.2% up to τ = 10, and the compute gain flattens after 5 (Figure 9). The advice: at most 5. Slack between workers, with different τ for each, is safe while the larger one stays below 5 (Figure 10).
Compression. Figure 11 compares ways to cut bits. Going from 32-bit floats to 4-bit floats changes nothing the authors could see. Zeroing values, at random or by the Top-K rule, costs real loss. The authors also tried TIES-merging's pruning and found it worse in early tests. They note it might help with more replicas.
Sync gap H. The appendix explains the trade (Figure 13). A larger H saves bandwidth but lets replicas drift. A smaller H gives noisy, tiny outer gradients. Streaming DiLoCo holds up better than plain DiLoCo at small H.
Number of replicas. Unlike Data-Parallel, adding replicas to DiLoCo changes the maths, because each replica trains alone. Table 6 shows the cost: at 500M weights and H = 30, going from M = 2 to M = 4 moves the loss from 2.67 to 2.70.
Which weights you test. Table 3: testing the shared outer weights gives loss 2.67, the average of the replicas 2.68, and one replica 2.77.
Pick a change below. The bars show how much each raised the evaluation loss, in percent. They come from different tables, so compare only their size, not their sum.
Each bar is a change to the recipe and how much it raised the loss. Tap a change in the list to read where its number comes from. Guess the ranking before you look.
Percent rises are our arithmetic from the paper’s numbers. Freeze: losses 3.2145 against 2.6749 (section 3.3.1, an 18-block model). One replica: 2.77 against 2.67 (Table 3). Four replicas: 2.70 against 2.67 (Table 6, 500M, H = 30). H = 100: 2.69 against 2.67 (Table 5, 500M). Overlap: the text says under 0.2%, shown at that upper bound. 4-bit: the text reports no regression, shown as zero.
Here is how to read one bar. For the freeze, divide the two losses: 3.2145 / 2.6749 = 1.2017. The loss rose by 20.2%. For one replica the same sum is 2.77 / 2.67 = 1.037, a rise of 3.7%. Small rises in loss matter, because a language model's loss falls slowly as it trains.
One bar towers over the rest: freezing blocks. Next comes the choice of weights to test, which is a measuring choice, not a training choice. Everything the method adds costs about a percent or less. That is the evidence behind the word “free”.
Appendix Figure 17 tracks the cosine similarity between different replicas' outer gradients. Cosine similarity is 1 when two lists point the same way, 0 when they are at right angles and −1 when they oppose. Early in training it is about 0.1. For most of training it sits near 0, so the replicas' updates are almost at right angles. At the end it falls to about −0.1. Larger models show lower values. The first transformer block is much higher at every size (Figure 18). The paper reports this without a full explanation.
Read the limits with care. No run exceeds 4B weights, and the 4B model has only two of the four methods. Most runs use two replicas. The 10B and 100B bandwidth numbers are simulated, and the simulator ignores the links inside each site. The outer step size was tuned once at small scale. The paper tests no failures, no stragglers beyond a difference in τ, and no mixed hardware.
The Core Automation post is a useful second source here. It reports a 32B-weight mixture-of-experts run across two sites with a 50-step sync gap, fragments staggered across the window, and late updates still committed. It says it added error feedback on the compressed messages, a local optimizer derived from Distributed Shampoo, and a rewritten network layer. None of those three is in this paper. The post reports about 0.2525 bits per byte for the two-site run against 0.2549 for standard training. Read that as evidence from the post, not from this paper.
Chapter 8
Keep the numbers, the terms, the checklist and the core loop on one page, and see where to read next
Streaming DiLoCo keeps DiLoCo's two clocks and changes how the slow clock talks. Replicas still train alone for H steps. The outer gradient now travels in fragments, on a rota, while training goes on, rounded to 4 bits. The paper reports the same loss as Data-Parallel at the sizes it trained, with 400 times fewer bits and an 8 times lower peak.
| What | Value | Where in the paper |
|---|---|---|
| Replicas M in the main runs | 2 (also 4 in Tables 6 and 7) | section 3.2, appendix |
| Inner steps H | 30 and 100 | section 3.2 |
| Fragment size | 3 blocks; 8, 16, 36 fragments at 1B, 10B, 100B | section 3.3.1, appendix |
| Overlap delay τ | 1 in main runs; advised at most 5; harmless to 10 | section 3.3.2 |
| Mixing factor α | 0 and 0.5 tested | section 3.3.2 |
| Outer optimizer | SGD with Nesterov momentum, step size 0.4 | sections 2.1, 3.2 |
| Number format sent | E3M0, 4 bits; sums in FP32 | section 2.4 |
| Link for 95% busy GPUs | Data-Parallel 222.3, 268.3, 391 Gbit/s; final method 2.0, 1.4, 1.1 (1B, 10B, 100B) | Table 4 (simulated) |
| Data sent, 1B, 25B tokens | 441 TB against 1.10 TB (400 times) | Table 1 |
| Peak bandwidth | 8 times lower (24 blocks over 3) | section 3.2.2 |
| Extra memory | 66% (5/3) without offload; about 2% at 100B with offload | section 2.5 |
| Loss at 1B (C4) | 2.49 Data-Parallel, 2.48 Streaming, H = 30 | Table 5 |
| Term | In plain words |
|---|---|
| All-reduce | Every replica sends a list; every replica receives the average. |
| Bandwidth, Gbit/s | How many billions of bits a link carries each second. |
| Compute utilization | The share of time the GPUs compute instead of wait. |
| Inner and outer optimizer | The fast rule used on each replica, and the slow rule used on the shared weights. |
| Outer gradient (pseudo-gradient) | The weights at the last sync minus the weights now, after H local steps. |
| Fragment | A group of transformer blocks synced together, on its own offset. |
| Overlap delay τ | How many steps an update may take to arrive while training goes on. |
| Mixing factor α | The weight on the local fragment when it is merged with the shared one. |
| E3M0 | A 4-bit float with a sign and a power of two, and no mantissa. |
| Peak bandwidth | The largest data rate the link must carry at any one moment. |
python # Our pseudocode of the paper's Algorithm 2. theta[m][p] is fragment p of replica m, shape [n_p]. def streaming_diloco(theta, M, H, P, tau, alpha, steps, offset): prev = copy(theta) # value of each fragment at its last send outer = [theta[0][p] for p in range(P)] # shared fragments for t in range(1, steps + 1): for m in range(M): # in parallel, no network theta[m] = inner_opt(theta[m], grad(batch(m), theta[m])) # AdamW for p in range(P): if (t - offset[p]) % H == 0: # fragment p is due: send delta = [prev[m][p] - theta[m][p] for m in range(M)] # [M, n_p] handle[p] = async_mean(quantize_e3m0(delta)) # 4 bits each, sum in FP32 prev[:, p] = theta[:, p] if (t - offset[p] - tau) % H == 0 and t > tau: # tau steps later: receive d = handle[p].wait() # usually arrived already outer[p] = outer_opt(outer[p], d) # SGD + Nesterov, lr 0.4 for m in range(M): theta[m][p] = alpha * theta[m][p] + (1 - alpha) * outer[p]
The Core Automation post places Streaming DiLoCo in January 2025, after DiLoCo (November 2023) and OpenDiLoCo (July 2024), and before later work such as Decoupled DiLoCo (2026). It credits fragment-wise, overlapped updates in its own two-site run to this paper and to Decoupled DiLoCo. The idea that replicas can train alone and merge changes is older: Local SGD, FedAvg and FedOpt are its roots.
Credit: Arthur Douillard, Yanislav Donchev, Keith Rush, Satyen Kale, Zachary Charles, Zachary Garrett, Gabriel Teston, Dave Lacey, Ross McIlroy, Jiajun Shen, Alexandre Ramé, Arthur Szlam, Marc’Aurelio Ranzato and Paul Barham, Google DeepMind and Google Research. arXiv 2501.18512. Post: Rohan Anil, The Hitchhiker’s Guide to Training on Compute Islands, Core Automation, 2 November 2026.
Now explain it out loud, from memory: why a slow link stalls ordinary training, what an outer gradient is, and how fragments, overlap and four bits each fix a different part of the problem. Then go back to the bars at the top, pick 100B at 99% busy, and say why Data-Parallel needs 471.5 Gbit/s where the last bar needs 1.4.