Three supercomputers on two continents train one model while sites crash and join. No data block is lost or trained twice. The price is perplexity 34.7, against 28.2 on one site.
Learn how a research team pooled three separate allocations into one training run: the two-loop recipe that crosses oceans, a ledger that hands out data, and a planner that reads the queues.
Crash a site, wait for its lease to expire, then bring it back. Watch the blocks it held return to the pool and get trained once. Then we build, piece by piece, everything underneath.
You need a rough idea of what training a neural network means (nudging its weights to make errors smaller). We build the rest from zero, including every term of supercomputing.
Based on “Cross-Facility LLM Pre-training on HPC: Elastic Aggregation, Data Leasing, and Queue-Aware Placement” by Zarè Palanciyan, Thomas van Osch, Douwe van der Wal, Olivera Kotevska and Tim Kok (SURF, Amsterdam, and Oak Ridge National Laboratory), arXiv 2610.03457. Read in the setting of the Core Automation post The Hitchhiker’s Guide to Training on Compute Islands; the background lesson is Training on Compute Islands.
Toy run: 60 blocks, leases of 6, 3 and 1 blocks sized to the sites’ speeds, a lease that expires 8 ticks after its site goes silent. The paper’s real ledger (Table 3) leased 2,692 blocks of 1,024 windows, and its measured commit shares were 5.5 : 3.0 : 1.0. The quality price, perplexity 34.7 against 28.2, is the paper’s abstract.
Chapter 0
See why a research group cannot rent one big computer, and what must go right when it borrows three far-apart ones instead
Picture a research group in Amsterdam. It wants to train a language model. Last spring it won compute time on a supercomputer in the Netherlands. A second grant came from a machine in Finland. A third came from a machine in Tennessee. Each grant is a decent pile of hours. None of them is big enough alone.
A supercomputer, in this paper’s world, is a hall of thousands of linked computers run by a public lab. This field calls such a machine an HPC system, for high-performance computing. Researchers do not own one. They apply for an allocation: a budget of time on one named machine, which expires. The European Union alone has set up 19 “AI Factories” and 13 “Antennas”, and each one hands out its own pots.
That is the practical wall the paper describes. Allocation is split across national, regional and leadership-class sites. Each site has its own chips, its own queue and its own expiry date. A group that wants one big run must glue the pieces together.
The authors, at SURF in Amsterdam and Oak Ridge National Laboratory, used three machines. Snellius sits in the Netherlands and uses NVIDIA H100 chips. LUMI sits in Kajaani, Finland. Frontier sits in Oak Ridge, Tennessee. LUMI and Frontier both use AMD MI250X chips. The farthest pair lies 7,400 km apart.
A chip here is an accelerator: a processor, usually called a GPU, built to do the matrix arithmetic of neural networks very fast. NVIDIA and AMD accelerators run different software. NVIDIA code uses CUDA. AMD code uses ROCm. So the same training program cannot simply be copied from one machine to the next.
The sites share no network and no disk. A file saved at one is invisible to the others. Each also sets its own rules about what a running job may reach on the internet. Use the first device to compare them. Pick a site and read what its rules mean for a team that needs three machines to talk.
The bars show the longest job each site allows and the round trip time to the coordinating server. Choose a site to highlight it and read its rules.
All values are from the paper’s Table 5 (appendix A) and Table 3 (round trip times of the three-site run). The coordinating server was a single VM; Snellius is the closest to it.
Read the Frontier rules twice. Its compute nodes reach the outside only through an HTTP forward proxy. A proxy is a middleman server that passes web requests on your behalf. This one cuts long-lived streams, so the usual way of sending big messages breaks. We meet the fix in Chapter 4.
The paper names three problems that must be solved together. Training logistics: how sites split the data and swap weights when they share no disk and no network. Metascheduling: how to coordinate batch jobs at different sites when none can start on demand. Infrastructure: every site brings its own chips, software and policy.
The authors put it bluntly: leave any one unsolved and the run does not start, does not finish, or does not converge. To converge means the model keeps getting better until it settles. A run that drifts apart never does.
A batch queue explains the second problem. On these machines you do not press “go”. You hand a job to a scheduler called Slurm. It puts your job in line and starts it when nodes (single computers in the hall) are free. You also state a walltime: the longest the job may run. When the time ends, the job simply ends. Nothing warns it, and nothing saves it.
The paper makes three contributions. Each gets its own chapters here, and each answers one problem. Elastic aggregation is a way of merging model updates in which zero, one or many sites may be live in any round. DARL is a ledger that hands out data. Queue-aware planning decides where to submit jobs. All three sit on top of a recipe called DiLoCo, which Chapter 1 builds.
The goal here is modest, and the paper says so. The run is a proof of concept on a small model. The Core Automation post on training across compute islands makes the wider case. Its author writes that “training compute rarely arrives as one big contiguous block”, and lists this paper as the October 2026 entry in its history of low-communication training. Lesson Training on Compute Islands teaches that background, and the post itself is worth reading.
One last term. The paper reports perplexity on held-out text. Think of how many words the model is torn between at each step. A perplexity of 30 means it behaves as if it chose among 30 equally likely words. Lower is better. The best run reaches 28.2 at one site. The three-site run reaches 34.7. That gap is the cost, and we will measure where every part of it comes from.
Chapter 1
Learn the two-loop recipe that lets sites on different continents train one model by talking once every hundred steps
Three cooks work in three kitchens. All three follow one recipe for a giant soup. Each cook tastes, adds salt, tastes again. If they phoned each other after every spoonful, they would spend the whole day on the phone. So each cook works alone for a while. Then all three share notes and agree on one pot.
That is the whole idea of this chapter. We need three small terms to say it exactly. Training a network means changing its weights, the numbers inside it, to make its errors smaller. The loss is the error as one number. A gradient says which way to nudge each weight to lower the loss. One step measures the gradient on a small batch of text and nudges the weights once.
An optimizer turns a gradient into a nudge. The paper uses AdamW. It keeps a running average of recent gradients and their sizes, so each weight gets a step of its own size. You can treat it as a smarter nudge-maker. Lesson Optimizers and Momentum builds it from zero.
The usual way to use many chips is data parallelism. Every chip holds a full copy of the model and reads its own slice of the batch. After each step the chips must agree on one gradient. They run an all-reduce: every chip sends its gradient, and every chip gets back the average. Lessons Data Parallel and All-Reduce and Distributed Training show the details.
Inside one hall, this works. The chips share a fast private network. Across oceans it fails. The message has the size of the whole model. In this paper a model copy in bfloat16 (two bytes per weight) is 1.32 GiB. The paper measures about 90 s per round just to move the weights (Table 1). A step takes about 1.7 s (170 s for 100 steps, Figure 2(a)). Syncing every step would spend over 98% of the time talking, because 107 s of overhead against 1.7 s of work leaves 1.7 of 108.7.
The recipe is DiLoCo, from Douillard and colleagues (2023). It is a form of local SGD: let each replica take many steps alone, then average. It has two loops. In the inner loop, each site starts from the shared model, which the paper calls w(t), and runs H = 100 AdamW steps on its own data. The result is its private model θi.
The site then computes its delta, the change it made: Δi = θi − w(t). It uploads the delta with the count of tokens it read. In the outer loop, a server merges the deltas into a new shared model and sends it back. One trip of inner loop plus outer step is a round. Talking drops by a factor of H, here 100.
Three sites each pull the model toward their own best point. Every run spends 80 steps per site. Slide H, the steps between talks, and watch where the shared model ends up. The star is the true best point for all three.
Illustrative toy, not the paper’s model: three quadratic bowls with different curvature stand in for three sites, plain SGD stands in for AdamW, and the merge is a plain average (outer step of 1). The paper’s own run uses H = 100 on a 0.6B language model.
Look at what the slider shows. With H = 1 the sites talk every step and the model walks straight to the star. With H = 80 they talk once and land on the plain average of their private best points. That point is near the star but not on it. In a bowl world, the error of far-apart local work is a bias. In a language model it is called drift: sites move apart because each saw only its own batches.
Let us trace one round with the paper’s numbers. Step 1: the server holds w(t), 1.32 GiB of bfloat16 weights split over 310 tensors. Each site downloads it. Step 2: each site runs H = 100 inner steps with sequences of 2,048 tokens. The combined batch is 96 sequences per step, split 32 on Snellius and 64 on LUMI or Frontier (Table 6).
Step 3: the tokens read in one inner step across all sites are 96 × 2,048 = 196,608. A round of H = 100 steps reads 19,660,800 tokens. Step 4: each site uploads Δi, the same 1.32 GiB shape, plus one integer for its token count. Step 5: the server merges and sends the new model out.
The paper’s main run has 20,000 optimiser steps. That is 20,000 × 196,608 = 3,932,160,000 tokens, about 3.9 billion, which matches the 4 billion on the paper’s Figure 1 axis. It did not use the whole 5-billion-token C4 corpus in one pass.
What goes wrong when it fails? The symptom is a merged model that is worse than its parts. You measure it by holding out some text and comparing the merged perplexity to a single site’s. The fixes are the ones the next chapters build: a good outer optimizer (Chapter 2), data that every site sees in a fair mix (Chapter 6), and an H that is long enough to hide the talk but short enough to avoid drift (Chapter 4).
Chapter 2
Derive the equation that turns three sites’ private changes into one new shared model, with a memory that keeps it moving
The three cooks return with their notes. Cook A tasted 550 spoonfuls. Cook B tasted 300. Cook C tasted only 100. Each says how to change the soup. How should the head chef combine the advice? If all three count the same, the cook with 100 spoonfuls has a loud voice for a small amount of evidence.
The fair rule gives each cook a vote in proportion to the data they read. In the paper, a site i reports its delta Δi and the number of tokens it consumed, ni. A token is one piece of text, a word or part of a word. The token share is pi = ni / (n1 + n2 + n3). The shares sum to 1.
The oldest merge rule is federated averaging, or FedAvg (McMahan and colleagues, 2017). Add the token-weighted deltas to the shared model. In symbols: w(t+1) = w(t) + Σ pi Δi. Lesson FedAvg teaches the paper behind it. The sum is the weighted average of the sites’ final models, written as a change.
Now a trick that DiLoCo borrows from federated learning. The weighted delta Σ pi Δi points in the direction the sites jointly moved. Flip its sign and it looks like a gradient: a vector that says “go this way to lower the loss”. The post from Core Automation calls such a vector a pseudo-gradient. We hand it to a second optimizer, the outer optimizer. The AdamW inside each site is the inner optimizer. Lesson Local SGD and Model Averaging shows why this works.
The outer optimizer here is Nesterov momentum. Momentum means the optimizer remembers how it moved last round and keeps some of that motion, like a ball that keeps rolling. Nesterov’s version looks ahead: it applies the extra push after the fresh step, not before. Lesson Optimizers and Momentum builds both.
Two checks make the equation concrete. Set β = 0 and η = 1. The second line becomes w = v, and the first line is exactly FedAvg. And the authors checked their code against PyTorch’s torch.optim.SGD with Nesterov momentum. The two agree to 2 × 10−6.
Use one weight, so we can see the numbers. Start with w(0) = 0 and v(0) = 0. The sites read 550, 300 and 100 tokens, so the shares are 0.579, 0.316 and 0.105. In round 1 their deltas are +0.40, +0.20 and −0.10. These values are illustrative.
0.579 × 0.40 + 0.316 × 0.20 + 0.105 × (−0.10) = 0.2316 + 0.0632 − 0.0105 = 0.2842
v(1) = 0 + 0.7 × 0.2842 = 0.1989 w(1) = 0.1989 + 0.9 × (0.1989 − 0) = 0.3780
Round 2 starts from 0.3780. Suppose the deltas repeat. The pseudo-gradient is again 0.2842, so v(2) = 0.3780 + 0.1989 = 0.5769. The latest move is 0.5769 − 0.1989 = 0.3780, and w(2) = 0.5769 + 0.9 × 0.3780 = 0.9171. FedAvg would sit at 0.5684 after the same two rounds. The memory adds speed in a steady direction.
The bars show each site’s delta and its token share. The lines show the shared weight over six rounds when the same deltas repeat. Move η and β, or pick a preset, and compare with plain FedAvg.
Illustrative: one weight, deltas +0.40, +0.20 and −0.10 that repeat every round, and token counts 550, 300 and 100 that echo the 5.5 : 3.0 : 1.0 commit split the paper measured (Table 3). The update rule is the paper’s Equation 1 with its η = 0.7, β = 0.9.
Slide β up and watch the line steepen. In steady state the velocity of v settles at η / (1 − β) times the pseudo-gradient. For the paper’s values that is 0.7 / 0.1 = 7. A small η therefore does not mean a small step. The memory amplifies a steady push seven times.
Now the failure mode. The symptom: right after a merge, the held-out loss jumps up, then settles. The measurement: log loss on a held-out set after every round. The likely cause, our reading and not a claim of the paper: when the sites’ deltas flip direction, the memory still pushes the old way and overshoots. The fix is a smaller β or η. The paper takes 0.7 and 0.9 from DiLoCo and reports no sweep of them.
Chapter 3
Change three small things in the outer step so that sites can join, leave and return late without breaking the run
Monday morning. Snellius has a free slot, so its job starts and trains. LUMI’s job sits in line for nine hours. Frontier’s job ends at its 24-hour walltime in the middle of a round. By Tuesday LUMI is running, Frontier has been queued again, and an old Frontier job that was stuck in line finally starts, still holding a model from last week.
On a normal cluster this is a disaster. On a batch-scheduled network of supercomputers it is every day. The authors call the fix elastic aggregation: an outer loop for which zero, one or many live sites are all normal states. Three changes to Equation 1 make it so.
Recall that the outer rate η is 0.7. With three sites that disagree a little, scaling down the average is sensible. It acts as a damper. Now suppose only one site reports. There is nothing to average, so there is nothing to damp. Taking 0.7 of a lone site’s delta throws away 30% of its work for no reason.
So in the paper, a round with a single live contributor takes the full step, η = 1, instead of discarding 1 − η of its update. A round with two or more sites uses η = 0.7 as before. A round with no sites does nothing: the server keeps the shared model and waits.
The second change defends the model from old work. Every delta carries a label: the merge round (the paper also says generation) of the shared model it was trained from. The server only accepts deltas whose label matches the current round. It rejects stale ones.
Why does this matter? A requeued job may start from an old shared model, run its H steps, and report a delta that points from an old place. Mixed into the average, that delta drags the merged model backward. The paper says a requeued job that trained from an old global model cannot poison the average. It is a version check, like refusing to merge a code change made against last week’s file.
The third change keeps time. The inner AdamW runs on a learning rate schedule: the size of its steps rises during warm-up and then falls on a planned curve. For that to work, everyone must agree how far into training we are. The server therefore keeps the authoritative global step. After each merge it advances by the maximum number of steps any contributor took. A joiner downloads the current shared model and the current schedule position, and starts from there.
Switch sites on and off, then mark Frontier’s delta as stale. The arrows are deltas that reach the server. The bar is how much of the averaged delta the server applies.
Token shares use the 5.5 : 3.0 : 1.0 split the paper measured in its ledger (Table 3). Rule values (η = 0.7 with two or more accepted deltas, η = 1 for one, no step for none) are from Section 3.1.
Try a few settings. Switch off LUMI and Snellius: Frontier is alone, and the server applies 100% of its delta. Mark it stale as well: nothing is accepted, and the model waits. Turn all three on: the step is 70% of the weighted average. That is the whole contract of Section 3.1.
Now replay Monday and Tuesday as six rounds. Round 1: only Snellius is live, so the server takes its delta whole (η = 1). Round 2: LUMI’s job starts, two deltas arrive, and the server applies 70% of their token-weighted average. Round 3: Frontier joins, downloads the current model and the current step, and all three report. Round 4: Frontier’s walltime ends mid-phase, so only two deltas come in. Round 5: the stale Frontier job from last week finally starts and uploads. The server compares generation labels and rejects it. Round 6: Frontier’s fresh job joins again. The model never stopped, and no human touched the run.
Here is the merge as a few lines of Python. The inputs are a list of messages, each holding a delta (a dict of 310 bfloat16 tensors, 1.32 GiB in all), a token count, the generation it started from, and the steps it took. The output is a new shared model and an advanced global step.
pythondef merge_round(state, msgs): cur = state.gen good = [m for m in msgs if m.gen == cur] # Change 2: drop stale generations if not good: return state # zero live sites: wait, nothing changes n = sum(m.tokens for m in good) pseudo = sum((m.tokens / n) * m.delta for m in good) # sum of p_i * delta_i eta = 1.0 if len(good) == 1 else ETA # Change 1: a solo round takes the full step v_new = state.w + eta * pseudo # Eq. 1, first line w_new = v_new + BETA * (v_new - state.v) # Eq. 1, second line state.step += max(m.steps for m in good) # Change 3: the authoritative clock state.v, state.w, state.gen = v_new, w_new, cur + 1 return state
This is our sketch of Section 3.1, not the authors’ released code. It shows where each change sits. A joiner only needs state.w and state.step. Its first delta will carry the current generation, so it passes the check.
The failure mode to watch: the symptom is a sudden quality loss after a long-queued job reports. You measure it by logging, for each merge, how many deltas were accepted and how many were stale. The fix is the generation check. Without it, one job from last week costs the whole run.
Chapter 4
Measure what a round spends on work and on overhead, and see why the overhead barely moves when H grows twentyfold
Think of a work day split between desk time and meetings. If the daily meeting lasts two hours, an eight-hour day spends a quarter on talk. If the team meets once a week, the same two hours are a small slice. Federated rounds work the same way: the meeting is fixed, so you choose how long the desk time between meetings runs.
The paper splits the wall-clock time of one round into two parts. Compute is the local training plus a periodic held-out validation, an evaluation on text the model never trains on. Overhead is the inter-site weight transfer plus checkpoint I/O. A checkpoint is a saved copy of the model and its state. I/O means reading and writing files. Neither piece of overhead touches the GPU.
The authors ran two clients on LUMI with different values of H and timed the rounds. Table 1 gives the result. At H = 100, a round takes 347.8 s, and 111.9 s of that, 32.2%, is overhead. At H = 1,000, the round takes 1,881.2 s and the overhead is 107.0 s, only 5.7%. At H = 2,000, the round takes 3,717.7 s with 115.8 s of overhead, which is 3.1%.
The overhead hardly moves across a 20-fold range of H. The weight transfer alone varied by under 10 s: 94.5 s, 90.4 s and 98.7 s. The reason is simple. The message is the size of the model, not the length of training. Compute grows in a straight line with H, so overhead’s share must fall.
We can write the share as a formula. Let O be the overhead per round, s the seconds one inner step takes, and E the fixed evaluation time. Then a round lasts H·s + E + O, and the overhead share is O / (H·s + E + O).
Fit the numbers. Figure 2(b) shows that at H = 1,000 the training takes 1,711 s, the validation 65 s, the transfer 90 s and the merge 17 s. Then s = 1,711 / 1,000 = 1.71 s per step, E = 65 s, and O = 90 + 17 = 107 s. Check H = 100: 100 × 1.71 + 65 + 107 = 343 s, close to the measured 347.8 s. The model works.
Solve for the H that gives a target share f. From O / (H·s + E + O) = f we get H = (O/f − E − O) / s. For f = 10%: (1,070 − 172) / 1.71 ≈ 525 steps. For f = 5%: (2,140 − 172) / 1.71 ≈ 1,150 steps. This is our derivation from the paper’s numbers, not a table the paper prints.
The top bar is one round: grey for compute, yellow for overhead. The line below shows the overhead share at each H. Solid dots are the paper’s measured stops.
H = 100, 1,000 and 2,000 use the paper’s Table 1 exactly (LUMI, inline gRPC). Other stops are our estimate from the fit above: 1.71 s per step, 65 s validation and a flat 111.6 s overhead (the mean of the three measured values).
Slide to 50 and the overhead takes over 40% of the round. Slide to 4,000 and it falls below 2%. If more is better, why not always go higher? Because H has a price on the other side. The paper warns that higher synchronization steps will suffer more from training drift, and Chapter 6 shows that a crash loses a lease whose size grows with H.
The weights themselves must cross the internet. The authors used Flower, a framework for federated learning, which sends messages through gRPC, a standard way for programs on two machines to call each other. A gRPC message has a 2 GiB cap. Our 1.32 GiB model fits inline. A bigger model would be streamed tensor by tensor through a blob store, a small HTTP service where a site puts a file and others get it. HTTP is the plain web protocol.
Frontier forces a third path. Its proxy reaps long gRPC streams, so there the same round protocol runs only over short HTTP requests. The authors then compared the two transports at H = 100.
| Transport | Overhead per round (s) | Median (s) | Change versus gRPC |
|---|---|---|---|
| inline / gRPC | 176.0 | 174.0 | none |
| blob / HTTP | 161.8 | 155.6 | −14.2 s (−8.1%) |
The blob path wins by 14.2 s. The paper explains why. Flower’s gRPC, as implemented here, packs the model as 310 separate per-tensor byte fields, and the cost scales with the tensor count. The blob path streams all tensors into one sequential file and publishes the weights once. The authors conclude that HTTP-based transfer is preferred for LLM pre-training. Here, overhead includes communication, checkpoint and evaluation, so it is larger than Table 1’s.
The failure mode: the symptom is GPUs sitting idle most of a round. You measure by timing compute and overhead separately, as Table 1 does. The fix has two parts: raise H until the share is acceptable, and move the weights as one stream.
Chapter 5
See why a round ends only when the slowest site finishes, and how extra accumulation lets a fast chip use the time it would waste
A rowing crew of eight crosses the line when the last oar leaves the water. A rower who finishes strokes early gains nothing. Federated rounds work the same way. The server cannot merge until every live site has uploaded its delta. That moment of waiting is a barrier: a point where nobody goes on until everyone arrives. The slowest site, the straggler, sets the pace.
Our three machines are not equal. In the paper’s Section 4, the unbalanced setup lets the fast site finish its H = 100 steps in 43 s. The slow one needs 170 s. The result is a stall for all GPUs but the slowest.
In the unbalanced case, LUMI’s 8 devices need 170 s for the inner phase. Snellius’s 4 H100s need 43 s. So Snellius sits idle for 127 s, which is 75% of the phase. That is idle money: a GPU hour costs the same whether or not it works.
The fix is to give the fast site more work in the same phase. The paper does it with gradient accumulation. Normally a step reads one micro-batch, computes its gradient and nudges the weights. With accumulation A, a site reads A micro-batches first, adds their gradients into one buffer, and takes a single step. The buffer has the shape of the model, so there is no extra network traffic. The step simply sees a larger batch.
The size of a phase is counted in samples. Section 3.2 gives it: H · B · W · A, where H is inner steps, B is the micro-batch per rank, W is the number of ranks (one rank is one GPU process), and A is the accumulation count. With B = 8 sequences and A = 1, the 4 H100 ranks of Snellius read 32 sequences per step, and the 8 ranks of LUMI read 64. Together they make the global batch of 96 from Table 6.
Each micro-batch is a block of shape [8, 2048]: 8 sequences of 2,048 tokens, 16,384 tokens. Inside one site the ranks average gradients over the site’s fast links (NVLink on Snellius, Infinity Fabric on LUMI). The Core Automation post states the same principle: use the fast interconnect aggressively within an island and exchange less often between them.
Let tF be the seconds the fast site needs for one accumulation pass of the phase, and tS what the slow site needs. With accumulation A the fast site takes about A · tF. It is balanced when A · tF ≈ tS. For the paper’s first pair, 170 / 43 ≈ 4. The fast site’s idle share is (tS − A·tF) / tS while A·tF is below tS.
Each bar is one inner phase of H = 100 steps. Raise Snellius’s accumulation steps A. Yellow is time spent waiting at the barrier.
A = 1 is the paper’s Figure 2(a): LUMI 8 devices 170 s, Snellius 4 H100 43 s, idle 127 s (75%). Other values are illustrative: we scale Snellius’s 43 s in proportion to A. The paper’s own balanced pair, Snellius 1 H100 with A = 5 at 169 s and LUMI 1 device at 155 s, leaves 13 s idle (8%).
At A = 4 the two bars end together and the idle drops to nearly nothing, but the global batch per step is now 4 × 32 + 64 = 192 sequences, not 96. Larger batches change what the optimizer does, and DiLoCo adjusts the learning rate in response, as the paper puts it. Beyond A = 4, Snellius becomes the straggler and LUMI waits.
The paper’s main comparison with centralised training matches tokens, steps and the combined batch per step. The authors say this on purpose. The earlier system Photon, they note, reported that federated pre-training beat a centralised baseline. But its federated runs took roughly 8 times as many optimizer steps, with a higher local learning rate. That is not a fair test. Chapter 8 returns to it.
So there are two uses of accumulation. One balances a phase, as in Figure 2(a). The other keeps the comparison fair by building the same batch of 96 in different ways, as 32 plus 64 or by accumulation on identical machines. The paper’s Table 6 lists both.
The failure mode: the symptom is a fast site whose GPU usage drops to zero for part of each round. You measure it by logging the phase seconds of each site, as in Figure 2(a), and computing each site’s idle share. The fix is to calibrate A per site until the phases land within a few seconds. The paper reached 13 s apart.
Chapter 6
Build the ledger that hands out the corpus in leases, takes it back when a site goes silent, and still keeps an exact count
A library holds one long book. Three readers must read it once between them. A clerk at the desk keeps a ledger. A reader asks for a section, takes it away, and brings back a note: “done”. If a reader vanishes with a section, the clerk waits a while, crosses out the loan, and lends the section again. At the end every page has been read exactly once.
That clerk is DARL, short for distributed allocation and remote leasing. A lease is a loan with an expiry: you may use the thing until the time runs out, and no one else may. The need is real. The paper says a window trained twice in an epoch is counted twice in the token-weighted average of Equation 1, tilting the merged model toward the site that duplicated it. A window dropped when a site vanishes shrinks the epoch with no record that it did.
Every site holds the same pre-tokenised dataset D, made of N sample windows, each a run of 2,048 tokens. An epoch is one full pass over D. The coordinator, one small server, cuts D into M = ⌈N / K⌉ blocks of K consecutive windows. The ceiling brackets mean “round up”. In the three-site run, K = 1,024 and M = 2,692 (Table 3).
Why blocks and not single windows? One block is one contiguous read from disk. A large K is gentle on the filesystem. A small K mixes the data more finely across sites. The paper says K trades statistical mixing against I/O efficiency.
C4 is not shuffled on disk. Hand site A the first third and site B the second, and each model learns a different topical slice. That is the drift from Chapter 1. So DARL shuffles at block level with one deterministic permutation πs of the M blocks, made from a shared seed s. The tool is the Durstenfeld form of the Fisher-Yates shuffle (1964).
pythondef block_order(M, seed): rng = random.Random(seed) # same seed on every machine: same order order = list(range(M)) for i in range(M - 1, 0, -1): # Durstenfeld: walk from the back j = rng.randint(0, i) # pick one of the slots not yet fixed order[i], order[j] = order[j], order[i] return order # order[k] = the block that sits at position k
A digest of the triple (N, K, s), a short fingerprint, is checked when a site registers. Two sites cannot join with different block spaces without being caught.
A lease should match one inner phase, which reads H·B·W·A samples (Chapter 5). So a lease holds Mphase = max(1, ⌈H·B·W·A / K⌉) blocks. Work it for Frontier: H = 100, B = 8, W = 8, A = 1 gives 6,400 samples. Divide by 1,024 to get 6.25, and round up to 7 blocks. For Snellius, W = 4 gives 3,200 samples, 3.125, so 4 blocks. Table 3 agrees: Frontier received 1,195 blocks in 173 grants (6.9 each) and Snellius 219 in 57 (3.8 each).
Pick a site and slide H. The lease is the blocks the site holds during one phase. A crash forfeits exactly one lease.
B = 8, A = 1 and K = 1,024 as in Tables 3 and 6. The grid is a sketch of the 2,692 blocks, drawn at 100 blocks per row for readability; the lease sizes come from the paper’s formula.
Slide H to 1,000. A Frontier lease grows to 63 blocks, about 2.3% of the whole corpus. Long phases make the failure unit more costly. The paper says plainly that the effect of a crash depends on H.
Four rules keep the ledger exact. Heartbeat plus TTL: a site sends a small “I am alive” message, a heartbeat. A lease stays valid for a time to live (TTL) of α·t̄step + β·RTT, with α = 2.5, where t̄step is the mean step time and RTT the round trip time to the coordinator. Each heartbeat refreshes it. A silent site’s lease expires and its untouched blocks return to the pool.
Work stealing: a site that has drained its lease steals the untouched tail of the largest outstanding lease. Proportional grants: lease sizes follow each site’s measured commit rate, so fast sites do not starve and slow ones do not hoard. Checkpoint before commit: a site saves its weights before it marks blocks as committed, so its weights and its record of data consumed can only fail together. That ordering is what makes the guarantee “exactly once”.
In the three-site run (23.8 h, one coordinating VM) the ledger shows 326 grants, 2,070 blocks granted, 2,045 committed and 25 lost to four TTL expiries. The committed counts sum to the coordinator’s own total, so nothing was skipped or duplicated. 25 / 2,070 is 1.2%. Frontier’s first job died holding nine blocks. The coordinator regranted five to LUMI and four to Frontier’s restart, and every one was committed.
No one configured a share. The split of 5.5 : 3.0 : 1.0 came from the sites’ own commit rates. An equal third of the 2,070 granted blocks is 690. Frontier delivered 173% of that and Snellius 32%. Test the three alternatives in the device below.
The bars are the blocks each site committed in the real run. Choose how the corpus would have been shared and read what each scheme does with the same work.
Committed blocks are Table 3: Frontier 1,181, LUMI 649, Snellius 215, total 2,045. The equal-third reading and the same-prefix reading follow the paper’s text on Table 3; the time estimates are our arithmetic from those counts.
With equal thirds, Frontier would run out of its own 690 blocks at about 58% of the run, while Snellius would end the run only 32% through its share. A fixed split turns that 5.5 times spread into a slow shard that never ends. A crash would also remove a whole shard from the epoch, not one lease. With the same prefix on every site, all three walk the same blocks first, so the unique corpus trained is only the largest site’s 1,181 blocks, not 2,045. That is 1.73 times less data for the same compute.
The failure mode: the symptom is a model that tilts toward one site, or an epoch that is quietly short. You measure by summing per-site commits and comparing with the coordinator’s total, as the paper did. The fix is the ledger.
Chapter 7
Peek at each supercomputer’s queue without joining it, then plan where to run so that waiting at one site never holds back the others
You need groceries and three supermarkets are open. You cannot be in all three lines, and each store has its own checkout rules. But you can look through each window and count the carts. If one line is empty, you go there first. You do not wait outside until all three are empty.
That is the third problem, metascheduling. Each site’s Slurm only schedules its own machine. No tool answers “which site should I submit to now?”. The paper says earlier cross-facility systems hide the admission delay rather than choose where to submit. To choose, you need three facts per site: how long a job will wait, how long a job may run (the walltime cap), and how fast each GPU trains.
Most HPC sites expose no scheduler API and do not permit cronjobs, timed jobs that run by themselves. All three of the paper’s sites run Slurm, so one command works everywhere. sbatch --test-only asks Slurm “if I submitted this job now, when would it start?” and answers without queueing it. It needs no special rights.
For each site c the planner keeps a set of job shapes. A shape fixes a partition (a named group of nodes), a node count, the GPUs per node and a walltime. Every Δ seconds a collector probes each shape. On Snellius and LUMI the collector is a chain of Slurm jobs; on Frontier, Table 5 lists a user cronjob as the collector.
The raw answer is pessimistic. Slurm assumes every queued job runs for its full requested walltime. Real jobs often end early, and the next job starts sooner than Slurm predicts. The paper corrects it with a discount γ, learned from the realized walltime usage of recent finished jobs, which the accounting command sacct lists. If Slurm says 10 h and jobs use 60% of their walltime, then γ = 0.6 and the planner expects about 6 h. These numbers are illustrative; the paper does not print γ.
Work is counted in data units, any fixed chunk of training data. One outer round eats R units. Each site has a per-GPU rate taken from historical job logs. A waterfill, a classic method from convex optimization, then assigns outstanding units to the soonest-available site. When several sites are free, it splits the units in proportion to their throughput. Think of pouring water into connected tubs: the first tub that is ready fills first, and when two are ready they fill at their own speed.
The plan obeys limits. Each job is capped at its site’s walltime. A minimum number of units per job avoids tiny jobs. A reserve time ρ can pad a job to cover other sites starting later. A probe older than a set age is ignored, and its site is left out. The planner reruns every Δ, so newly free capacity is folded in without disturbing running jobs.
A wrong guess costs only time. A job that starts late leases no blocks (Chapter 6), so no work is lost or duplicated. Misprediction costs calendar time only, which is why the planner can afford to be approximate.
pythondef waterfill(units, sites, now): # each site: est_start = now + probe_wait * GAMMA, rate in units per hour, cap in hours jobs, t = [], now while units > 0: ready = [s for s in sites if s.est_start <= t] if not ready: t = min(s.est_start for s in sites); continue # jump to the next site that frees up total = sum(s.rate for s in ready) for s in ready: # split by throughput share = min(units * s.rate / total, s.rate * s.cap) # never longer than the walltime cap jobs.append((s.name, t, share)); units -= share t += 1.0 # advance the clock one hour return jobs
This sketch is ours; the paper describes the idea and the parameters, not the code. It shows the two moves: jump to the next free site, and split by rate.
The authors tested the planner on a projected 100B-token run of Qwen3-0.6B across LUMI and Snellius. Limits: 4 nodes per site, one node per allocation, 8 h maximum walltime. LUMI chains 1 h jobs of 8 devices, Snellius chains 8 h jobs of 4 H100s. They assume no barrier waits, so neither site ever waits on the other. Three queue scenarios follow.
In A both queues are empty and the run takes 1.11 days; Snellius trains 70.1B tokens and LUMI 29.9B. In B Snellius is busy for 40 h and LUMI starts at once. LUMI trains alone, Snellius joins at hour 40, and the run takes 2.28 days. In C LUMI is busy for 40 h. Snellius alone reaches 100B tokens in 37.8 h, before LUMI’s wait ends, so LUMI never joins and the run takes 1.58 days.
The rates hide in the table. In A, LUMI trained 29.9B tokens in 26.6 h, which is 1.12B per hour. Snellius trained 70.1B in 26.5 h, 2.65B per hour. A 4 H100 job trains about 2.35 times faster than an 8-device LUMI job. The abstract claims queue-aware placement beats waiting for all sites by 18 to 43%. Let us derive that ourselves.
Set how long each queue makes you wait. The top two bars start each site as soon as it frees up. The bottom two wait until both are free. Try the three paper scenarios.
Rates are derived from Table 4 (LUMI 1.12B tokens per hour, Snellius 2.65B). The model is idealised like the paper’s: no barrier waits, no job-start gaps. Scenario waits are Table 4’s. The wait-for-both baseline is our arithmetic and reproduces the abstract’s 18% and 43%.
Scenario B: waiting for both takes 40 h plus 100 / (1.12 + 2.65) = 26.5 h, which is 66.5 h. The queue-aware plan takes about 54.7 h, so it saves about 17.8%. Scenario C: waiting for both again takes 66.5 h, but Snellius alone finishes in 38.0 h, which saves 42.9%. These are the abstract’s 18 and 43%. In A, nothing is saved, as there is no queue.
The failure mode: the symptom is a run that sits idle for days because the plan waits on a stuck site. You measure it by logging each probe’s estimate against the real start. The fix is the discount γ, the maximum probe age and the recomputation every Δ. The paper lists a planner informed by historical queue traces, not only live probes, as future work.
Chapter 8
Read the quality and speed results honestly, understand why the authors matched tokens and steps, and see where the claims stop
After six chapters of machinery, one question remains. Does the pooled run train a good model? The authors answer it with care, and their answer is a trade, not a victory. The conclusion says it plainly: the value of cross-site training today is operational rather than competitive. It turns fragmented allocations into one run, at an overhead they can quantify.
Every run trains Qwen3-0.6B, a decoder-only language model with 28 layers, on a pre-tokenised C4 corpus of 5 billion tokens. C4 is a large cleaned web-text set. The tokenizer is the OpenEuroLLM 128k one, with 131,328 rows in its tied embedding, so the checkpoint is 1.32 GiB in bfloat16. Sequences are 2,048 tokens long, the peak learning rate is 3 × 10−4, the micro-batch is 8 and the global batch is 96. Training uses torchtitan, a PyTorch training library, and Flower manages the federation. The released code is Apache-2.0.
Figure 1 plots training perplexity two ways: against tokens seen, and against connected wall-clock time. Connected wall-clock time is the paper’s axis label. We read it as the hours the sites were connected and training. The lines are two centralised baselines (4 H100 on Snellius, 8 MI250X devices on LUMI), a two-site DiLoCo run over LUMI and Snellius, and a three-site elastic run over Frontier, LUMI and Snellius in which LUMI and Frontier train together, then drop out, and Snellius continues alone.
At matched tokens and steps, centralised training wins on both quality and time. It reaches perplexity 28.2 in 5 h 41 m on Snellius. Two-site DiLoCo reaches 37.5 in 19 h 48 m. Its effective throughput is 55,000 tokens per second, against 192,000 for the centralised run. The three-site run ends at 34.7.
Check the arithmetic, because it ties the story together. 20,000 steps × 96 sequences × 2,048 tokens = 3.93 billion tokens. At 192,000 tokens per second that takes 20,460 s, which is 5 h 41 m. At 55,000 tokens per second it takes 71,500 s, about 19 h 50 m. Both match the reported times, so the throughput numbers and the step count agree.
Same model, same 20,000 steps, same 3.93 billion tokens. Choose a run and compare its perplexity (lower is better) and connected wall-clock time.
Perplexities 28.2, 37.5 and 34.7 are the paper’s (Figure 1 text and abstract). Hours (5 h 41 m, 19 h 48 m) and throughputs are from the Figure 1 discussion. The paper gives no single wall-clock figure for the three-site 20,000-step run, so none is drawn.
What does the gap cost? Perplexity is the exponent of the average loss per token. So the extra loss is ln(34.7 / 28.2) = 0.21 nats per token for the three-site run, and ln(37.5 / 28.2) = 0.29 for the two-site run. A nat is the unit of loss when we use natural logarithms. The authors report no downstream benchmarks, so we cannot say what 0.21 nats means for a task.
An earlier system, Photon, reported that federated pre-training beat a centralised baseline. The authors examine why. At matched tokens, Photon’s federated runs took roughly 8 times more optimizer steps, with higher local learning rates than the centralised run. That is a different training regime, so the comparison does not isolate federation. Here steps, tokens and the combined per-step batch all match, which removes that mechanism by design. Lesson Photon teaches the other side.
The authors add one more control. A higher peak learning rate improves the centralised run from 28.2 to 24.5, without any federation. So a tuned baseline is even further ahead. The paper reports no such tuning for the federated side.
Table 1 and Figure 2 show the overhead is flat near 110 s per round and falls to 5.7% at H = 1,000 (Chapter 4). Table 2 shows blob transport saves 14.2 s (Chapter 4). Figure 2(a) shows calibrated accumulation leaves 13 s of idle time (Chapter 5). Table 3 shows an exact ledger across four site departures, 1.2% of granted blocks reclaimed and none lost or duplicated (Chapter 6). Table 4 shows a queue-model projection that saves 18 to 43% (Chapter 7).
Notice what is not in the list. There is no ablation that removes elastic aggregation, DARL or the planner and measures the damage. The evidence for each is a design argument plus measurements of the mechanism: the ledger sums match, the overhead is flat, the projection follows from the rates. That is a fair reading of a systems paper at this size, but it is a limit.
The authors list their limits. It was a proof of concept at a single small model scale, with one epoch and one site topology, and without downstream benchmarking. Future work should test production-scale training across more facilities, stronger fault tolerance and a planner informed by historical queue traces rather than live probes alone. We add three notes. The comparison uses perplexity on held-out text only. The three-site quality number comes from one run. And Table 4 is a projection.
The nearest neighbour in the literature is FedQueue (Li and colleagues, 2026). It also predicts per-facility admission delays, but it absorbs them inside the aggregation rule, buffering late arrivals and down-weighting stale updates. This paper chooses where to submit and keeps the merge rule simple.
A last comparison, from the Core Automation post. It reports a far larger setting: a sparse mixture-of-experts model of about 32B parameters trained across 160 B300 and 160 GB300 GPUs about 9,000 miles apart, with compression and a different local optimizer. At the same compute it reached about 0.2525 bits per byte against 0.2549 for standard training. That is a different team, model and method, so the two results are not comparable. They show only that the answer may depend on scale and on method.
Chapter 9
Keep the numbers, the terms and the core code, test yourself on symptoms and fixes, and find where to read next
Here is the paper in one paragraph. Public research compute is split across sites that share no network, disk or queue. The team ran a DiLoCo-style two-loop recipe across Snellius, LUMI and Frontier. An elastic outer step lets zero, one or many sites be live. DARL leases blocks of data under heartbeat contracts, so nothing is trained twice or lost. A planner probes Slurm queues with sbatch --test-only and starts each site as soon as it frees up. The price is perplexity 34.7 against 28.2 at one site, and a flat overhead of about 110 s per round.
| What | Value | Where |
|---|---|---|
| Sites and chips | Snellius 4 × H100; LUMI and Frontier 4 × MI250X (8 devices per node); up to 7,400 km apart | Table 5, abstract |
| Model and data | Qwen3-0.6B, 28 layers, 1.32 GiB in bfloat16; C4, 5B tokens; sequence 2,048; global batch 96 | Table 6 |
| Recipe | H = 100 inner AdamW steps; outer η = 0.7, β = 0.9; 20,000 optimiser steps; 3.93B tokens | Section 3.1, abstract |
| Overhead share | 32.2% at H = 100, 5.7% at 1,000, 3.1% at 2,000; overhead 111.9, 107.0, 115.8 s | Table 1 |
| Transport | blob / HTTP saves 14.2 s (8.1%) over inline gRPC, 161.8 s against 176.0 s | Table 2 |
| The barrier | idle 127 s (75%) falls to 13 s (8%) with calibrated accumulation | Figure 2(a) |
| The ledger | 2,692 blocks of 1,024 windows; 326 grants; 2,070 granted; 2,045 committed; 25 reclaimed (1.2%); 4 TTL expiries; 23.8 h | Table 3 |
| Commit split and distance | 5.5 : 3.0 : 1.0 across Frontier, LUMI, Snellius; round trips 347, 70 and 3 ms | Table 3 |
| Queue projection | 100B tokens in 1.11, 2.28 and 1.58 days; 18 to 43% sooner than waiting for all sites | Table 4, abstract |
| Quality and speed | One site 28.2 in 5 h 41 m (192k tokens per s); two sites 37.5 in 19 h 48 m (55k); three sites 34.7 | Figure 1, abstract |
This is our sketch of the paper’s round, with the chapter that explains each line. It is not the authors’ released code.
python# on each site (client) def site_round(coord, model, opt, H, A): w = coord.download() # shared model, bfloat16, 1.32 GiB (Ch 4) model.load(w); start = clone(w) lease = coord.lease() # ceil(H*B*W*A / K) blocks (Ch 6) for step in range(H): # inner loop: AdamW, no talking (Ch 1) for _ in range(A): # accumulate to fill the barrier (Ch 5) loss = model(next_batch(lease)) / A; loss.backward() opt.step(); opt.zero_grad(); coord.heartbeat() # keeps the lease alive (Ch 6) checkpoint(model) # save BEFORE committing (Ch 6) coord.commit(lease) delta = model.weights() - start # Delta_i, same shape as the weights (Ch 1) coord.upload(delta, tokens=n_tokens, gen=coord.gen, steps=H) # on the coordinator (server) def merge_round(state, msgs): # see Chapter 3 for the full version good = [m for m in msgs if m.gen == state.gen] # drop stale generations if not good: return state # zero live sites: wait pseudo = sum(m.tokens / total(good) * m.delta for m in good) # Eq. 1 (Ch 2) eta = 1.0 if len(good) == 1 else 0.7 # solo round: full step v = state.w + eta * pseudo state.w = v + 0.9 * (v - state.v); state.v = v state.step += max(m.steps for m in good); state.gen += 1 return state
Each card describes something going wrong in a pooled run. Choose the mechanism that the paper uses to handle it.
Read the symptom, pick the mechanism, then press Next. Six cards.
The symptoms are our wording of failure modes the paper names; the mappings follow Sections 3.1 to 3.3 and Section 4.
| Term | In plain words | Chapter |
|---|---|---|
| HPC, allocation | A public supercomputer, and your budget of time on it, which expires. | 0 |
| Slurm, walltime | The scheduler that queues jobs, and the longest a job may run. | 0, 7 |
| Perplexity | How many words the model is torn between; lower is better. | 0, 8 |
| Inner and outer loop | H local steps alone, then one merge at the server. | 1 |
| Delta, pseudo-gradient | The change a site made; the token-weighted sum of deltas, treated as a gradient. | 1, 2 |
| FedAvg, Nesterov | The plain average merge; and a merge with a look-ahead memory of earlier moves. | 2 |
| Generation | The round number of the shared model a delta started from; stale ones are rejected. | 3 |
| Overhead, gRPC, blob | Time not spent training; a message protocol; a file service for big weights. | 4 |
| Barrier, straggler | Everyone waits for the slowest site; gradient accumulation fills the wait. | 5 |
| Block, lease, TTL, heartbeat | A slice of data; a loan of blocks; the loan’s expiry; the signal that renews it. | 6 |
| sbatch --test-only, waterfill | Ask Slurm when a job would start; assign work to the soonest-free site. | 7 |
The paper stands on a line of work you can read next. FedAvg gave the averaging. DiLoCo added the inner AdamW and the outer Nesterov step. OpenDiLoCo and INTELLECT-1 ran it across countries. Streaming DiLoCo overlaps the talk with the training, which would shrink the overhead of Chapter 4. Photon is the federated pre-training report this paper corrects for.
For background, read Training on Compute Islands, the Core Automation post’s own lesson. The prerequisites are Bandwidth Arithmetic, Heterogeneous and Unreliable Compute and DiLoCo and Low-Communication Pretraining. The site’s general lessons Distributed Training and Parallelism, Pipelines and FSDP cover the in-site parallelism that this paper treats as given.
Now press Present or Teach and explain one pooled round out loud, from memory: what a site uploads, how the server merges it, what happens to a stale delta, and how a crashed lease comes back. Then go back to the crash demo at the top, crash LUMI, and say which rule decides what happens to its blocks.