Strangers trained an 8.6-billion-parameter model on home internet links. Agora shrinks the signal between model pieces 100 times and shares only 5% of the weights at a time.
Drag the link speed down to a home connection, then switch between the standard method and Agora. Watch which one keeps the GPU busy. Then we build, piece by piece, every part that makes this work.
You need a rough idea of a neural network layer and what a megabit is (a million on-or-off signals). We build the rest from zero.
A reading of Agora: Collective and Permissionless Internet-Scale Pretraining of Large Language Models by Gil Avraham, Violetta Shevchenko, Hadi Mohaghegh Dolatabadi, Karol Pajak and colleagues at Pluralis Research (arXiv 2607.13332, July 2026). It is one of the papers behind Rohan Anil’s post The Hitchhiker’s Guide to Training on Compute Islands (Core Automation). The background lives in Heterogeneous and unreliable compute.
Paper numbers: a 4,096 × 5,120 activation in FP32 (32-bit numbers) is 671 Mbit (Section 4.1), the 100× subspace rate and the 5% share every 20 steps are Pluralis-8B’s settings (Table 1), and a 12d² block is about 10 Gbit (Section 4.2). The 276 ms is the median compute per microbatch on body stages (Figure 18). The step time of 49 s is derived: 8.39M tokens per step at about 170k tokens/s. Transfer times are bits divided by link speed, nothing more.
Chapter 0
See why the usual way of training a big model needs a purpose-built building, and what Agora must change to use a bedroom GPU instead
Picture one hundred people who each own a gaming PC. Each PC has a strong graphics card, a GPU (a chip built to do millions of small sums at once, the engine of all modern AI training). Together they hold more raw compute than many labs. Can they train one language model together over their home internet?
For years the answer was no. The first cause is not the chips. It is the cable between them. A training run is a conversation, and the conversation is very loud.
Pretraining means teaching a model to predict the next word on a huge pile of text. The model is a pile of numbers called weights. Each step shows the model a batch of text, measures its mistakes, and nudges every weight a little. The nudge for each weight is called its gradient.
One GPU cannot hold a big model, so the work is split. The usual split is data parallelism: every GPU keeps a full copy of the model and reads different text. After each step the copies must agree. So they all add up their gradients and share the sum. That group sum is an all-reduce. (Data parallelism and all-reduce teaches it slowly; Distributed training shows the whole family.)
Look at the size of that sum. There is one gradient number per weight. A model with a billion weights makes about four gigabytes of gradients in 32-bit numbers. A ring all-reduce moves roughly twice that volume over each GPU’s link. The paper puts the gradients at “tens of gigabytes” for a billion-parameter-scale model, a rougher figure than our four. It says one exchange over a home link “takes on the order of tens of minutes”. In a datacenter the link is fast and the exchange takes a moment. At home, it does not.
Bandwidth is how many bits a link carries each second. Think of the width of a pipe. A megabit per second (Mbit/s) is a million bits each second. A home connection offers hundreds of them. A datacenter fabric offers hundreds of gigabits, a thousand times more. Latency is the delay for one message to arrive, the length of the pipe. The paper puts datacenter latency at single-digit microseconds and home latency at tens to hundreds of milliseconds.
Now move the sliders. The device sizes the all-reduce for a model with one gradient per weight, in 32-bit numbers, over a ring.
The bar is the time the whole group waits, every single step, on a log scale. The dashed line is a datacenter step, under one second. Drag the model size and the link speed.
Illustrative sizing: 32 bits per gradient, and a ring all-reduce that moves 2 × the gradient volume over each link, as the paper describes in Section 2.2. The paper’s own statement is “tens of minutes” against sub-second datacenter steps. Real systems compress, which is the point of later chapters.
At 200 Mbit/s the 8.6-billion-weight model waits 46 minutes for one exchange. A datacenter step lasts under a second. The GPUs would sit idle almost all the time. Training does not fail. It just becomes absurdly slow.
The paper names three assumptions that datacenter training rests on. First, a fast fabric with a fixed, known layout. Second, identical GPUs. Third, a stable fleet that you own and that fails only now and then. Agora removes all three at once.
The third one hurts most. A normal run is synchronous: every step is a global barrier, and a step cannot finish until every GPU has. One dead GPU halts everyone. Even in a well-run cluster this happens often. The Llama 3 405B run, at the scale of tens of thousands of accelerators, recorded 419 unexpected interruptions in 54 days, about one every three hours. The fix there is a restart from a saved checkpoint, which works because the cluster is owned and the replacement GPU is identical.
Now imagine nodes owned by strangers who leave every few minutes. A standard communication library fixes its member list at the start. When one member vanishes mid-all-reduce, the call hangs until a timeout and then kills the whole job. Restarting from a checkpoint every few minutes makes almost no net progress.
Agora trains an 8.6B-parameter model on 500B tokens, over 40 days, with 330 contributor nodes on internet links, and reaches 63% of the efficiency of an H100 cluster. It pays for this with three ideas. It sends a 100 times smaller signal between pieces of the model. It averages only 5% of the weights at a time, in the background. And it makes every node replaceable, so joining and leaving are normal events.
The Core Automation post places Agora in the “model-parallel” family of low-communication methods, where one model is split across participants who pass activations to each other. That is the family we study here. If any word in this chapter was new, Heterogeneous and unreliable compute and Bandwidth arithmetic teach the background; The parallelism zoo explains pipeline and tensor splits.
Chapter 1
Cut the model into stages, give each stage many interchangeable workers, and let a light trainer carry every microbatch down the line and back
You and six friends each own a graphics card with 24 GB of memory. The model you want to train is far too big for one card. So you do what a factory does: you build a production line. Friend one runs the first few layers, friend two runs the next few, and so on. Text goes in at one end. A loss comes out at the other.
This is pipeline parallelism. The layers of the model are cut into consecutive groups called stages. Each stage lives on its own GPU. The data that flows from one stage to the next is called an activation: the layer outputs for every token, a tensor of numbers. (The parallelism zoo compares this with the other splits.)
Pluralis-8B has 32 transformer blocks. Agora cuts them into seven stages. The first stage, the head, holds the token embeddings and 6 blocks. Five body stages hold 4 blocks each. The last stage, the tail, holds 6 blocks, the output projection and the loss. Check: 6 + 5 × 4 + 6 = 32.
One chain of seven GPUs is fragile and slow. So Agora puts many workers on every stage. A worker is one GPU node that holds one copy, a replica, of exactly one stage. In the real run the head had 8 operator nodes, the tail 16, and each body stage 4 operator nodes plus contributors (a median of about 15 workers per body stage). Replicas of one stage do data parallelism among themselves: they process different text at the same time.
Here is the unusual part. Workers never talk to the next stage. A second role, the trainer, sits in the middle. It has no GPU and holds no weights. It reads a shard of text, sends one sample to a worker in the head stage, receives the activation, sends that to a worker in the next stage, and so on to the tail. The tail returns the loss.
Then the trainer walks back. It sends each stage its saved input plus the gradient that arrived from the stage after it. That gradient is the activation gradient, the answer to “how should this stage’s output change to lower the loss?” Each worker computes its own parameter gradients and keeps them. They never leave the machine.
Watch one microbatch go down and back. A microbatch here is a small piece of a batch, in the paper often a single sample of 4,096 tokens.
Seven columns are the seven stages; each dot is a worker. The trainer bar on top is the hub. Press Send a microbatch, then break a worker and send another.
Toy picture: three workers per stage and fixed speeds (fast, medium, slow) so you can see load-aware choice. The real run had 8 to 16 workers per stage. The stage layout (6, 4, 4, 4, 4, 4, 6 blocks) and the trainer-as-conduit design are the paper’s (Sections 3.2 and 3.3, Table 3).
Two details in the picture matter. First, the backward pass goes to the same worker that ran the forward pass. The device draws it so. Chapter 4 explains why this is not optional. Second, the trainer saves every activation it relays. A worker keeps nothing after it replies.
A normal training step stores each layer’s intermediate numbers between forward and backward, so backward can reuse them. An Agora worker does not. When the backward request arrives, the trainer sends the saved input. The worker re-runs its forward pass to rebuild what it needs, then runs backward. This is activation checkpointing (recompute instead of store), applied to a whole stage. It costs extra compute. It buys a worker with no per-request memory, which any fresh node can replace.
Worked example with the real shapes. A sample is 4,096 token ids: shape [1, 4096]. The head turns it into [1, 4096, 5120] and returns it. The trainer forwards that to a body worker, which returns a tensor of the same shape, and so on. At the tail the loss is a single number. Backward returns six tensors of shape [1, 4096, 5120], one per stage boundary. In 32-bit numbers each tensor is 671 Mbit. Chapter 2 shrinks it.
So who ever sees the whole model? No one. A worker knows only its stage. The trainer knows the order of the stages but holds zero weights. The paper calls the whole design a protocol: nodes interact with a run only through a few defined calls (forward, backward, average with stage peers). That is the heart of what Pluralis names Protocol Learning.
There is no master list. Each stage keeps a distributed hash table (DHT), a shared notebook of key and value pairs that every node of the stage can read and write. A worker re-announces itself there every 30 seconds with a short expiry. The trainer also checks about every 30 seconds, adds new workers and drops those that went quiet. In the real run the DHT instances were still hosted by Pluralis, which the paper says openly.
Failure mode. Symptom: a worker’s reply never comes. Measurement: the call times out and the trainer logs the failure. Fix: the trainer retries on another replica and bans the silent one for a while. Because the worker was stateless, nothing was lost but a little time.
Chapter 2
Shrink the signal between two stages a hundredfold without losing a single number, by building the model so its messages live in a thin slice of space
The trainer has just received the output of stage 2: a table with one row per token, 4,096 rows, and one column per feature, 5,120 columns. It must pass this table to stage 3. Each entry is a 32-bit number. The table holds 4,096 × 5,120 × 32 = 671 million bits.
On a 200 Mbit/s link that is 3.4 seconds. The GPU finishes its own work on a microbatch in about 0.28 seconds. So the GPU would wait twelve times longer than it works, at every one of the six stage boundaries, in both directions. The pipeline is communication-bound long before it is compute-bound.
A transformer has a useful habit. Each layer does not replace the table. It adds a correction to it. This is the residual stream: a river that the layers pour into. After layer l the table is the starting table plus the sum of all earlier corrections. Each correction leaves its layer through an output projection, a weight matrix that maps the layer’s result back into the stream’s 5,120 columns.
Now the key idea. Suppose every row of every output projection lies in one thin subspace. A subspace is a flat slice of the big space, like a sheet of paper inside a room. Describe it with k basis vectors, columns of a matrix Uk of shape d × k, each of length one and at right angles to the others (orthonormal). Then every correction lies in that slice, and so does their sum.
The fixed pieces, the position information and the frozen part of the token embedding, are known to both sender and receiver, so nobody needs to send them. Subtract them. What is left lives in the slice, and k numbers per token describe it exactly.
Compression is d divided by k. Try it. The grid below is a toy table of 8 tokens by 24 features. Choose a rate, and see how many columns travel.
Bright columns are sent; faded ones are rebuilt by the receiver. The bar is the real transfer time for the paper’s table on a 200 Mbit/s link. Switch the weight constraint off to see what a broken subspace costs.
Toy grid: 8 tokens, 24 features, so k is d/rate rounded up to at least 1. Transfer times are the paper’s table (671 Mbit) divided by the rate and by 200 Mbit/s. The loss when the constraint is off assumes the signal is spread evenly over all d directions, an illustration, not a measurement. The 51× setting is the rank-40 1B ablation (2,048 / 40).
At 100 times, the table shrinks from 671 Mbit to 6.7 Mbit and crosses in 34 ms, well inside the 276 ms window. The compute stays the bottleneck, which is what you want from a pipeline.
There is one trap. The trick is exact only if the weights truly stay in the slice. Turn off the toggle above: the receiver gets the coordinates but the part outside the slice is gone. The earlier method, subspace networks (SSN), kept full-size projection matrices and, after every optimizer step, pushed them back into the slice. That costs memory and compute, and it showed spiky gradients early in training.
Agora uses a reparameterization. A matrix has its rows in the slice exactly when it factors as W = Z Uk⊤. So the model stores only the small factor Z, with k columns instead of d, and builds W when needed. The embedding table is factored the same way. By construction nothing can leave the slice, so the signal is rebuilt losslessly. By the chain rule the gradient for Z is the usual gradient times Uk, so the optimizer needs no special handling.
The 1B ablation (Section 6.1) shows three results. The reparameterized and original SSN loss curves coincide with each other and with the central reference. Body stages hold about 35% fewer trainable weights, the head about 50% fewer. The lighter head cuts its averaging time by roughly a quarter. For Pluralis-8B this means about 8.6B trainable weights against about 12B dense-equivalent.
Chapter 3
Keep the copies of a stage in agreement by sharing a small rotating slice of weights in the background, instead of all the gradients at every step
Chapter 1 gave every stage many replicas. Each replica reads different text, so each computes different gradients and wanders to a slightly different place. If nothing pulls them together, they drift into different models. Something must keep them in consensus, meaning close enough to count as one stage.
The datacenter answer is to share the gradients at every step. Chapter 0 showed what that costs at home. Node0, the earlier Pluralis run, shrank the size of this exchange with PowerSGD, which sends two thin matrices P and Q instead of a full gradient G (G is about P Q⊤). It added error feedback: each replica remembers what it left out and adds it back next time, so nothing is lost forever. The paper writes this memory as Et+1 = Et + Gt − C(Et + Gt), where C is the compressor.
But the size was not the real trouble. The timing was. A gradient is only meaningful for the step that produced it, and gradients jump sharply from one step to the next. So the exchange cannot be postponed or run on old values. It must finish, with everyone waiting, before every optimizer step.
A weight is the running total of all past nudges. One step changes it by a small, smoothed amount. A replica’s weights at step 100 and step 101 are nearly the same. That means weights tolerate exactly what gradients do not: old values, rare exchange, no waiting.
Sharing all the weights would bring the size problem back. One Llama-style block holds about 12d2 weights. At d = 5,120 that is 12 × 5,1202 = 314.6 million weights, or 10.07 Gbit in 32-bit numbers. At 200 Mbit/s that is 50 seconds for one block.
SPARTA (sparse parameter averaging, from earlier Pluralis work) answers: share only a small fraction p of the weights each round. Pick a set of positions I, take those weights from every replica, average them, and write the average back.
Worked example. 5% of a block is 0.05 × 314.6M = 15.7 million weights, about 0.50 Gbit. At 200 Mbit/s: 2.5 seconds instead of 50. And because the weights change slowly, the average can be built from values sent a step or two earlier. So the transfer runs asynchronously, in the background, while the GPU keeps training. This is AsyncSPARTA.
Pluralis-8B cuts the weight vector into 20 disjoint segments of 5% each. Every 20 optimizer steps one round averages one segment, in a fixed order. After 20 rounds, 400 steps, every weight has been averaged once. A joining worker uses this number later: 400 steps absorbs a full copy of the stage.
So the replicas are never fully together. A segment averaged just now agrees across replicas. One averaged 380 steps ago has drifted. The paper measured this on the real run (Figure 25): the variance between replicas ramps up linearly with the time since a segment was last averaged. Play with the rotation below.
Twenty bars are the twenty segments. Each bar is how many steps ago that segment was last averaged. Drag the training step. Then break segment 3’s reducer and see its bar keep climbing.
Schedule from Pluralis-8B (Table 1, Algorithm 3): 20 segments, one round every 20 steps. Bar height is the time since last averaging; the paper’s Figure 25 finds replica variance grows linearly with it. The broken-reducer case follows Section 5.7, where a missed reduce leaves that partition unaveraged for every worker.
At step 410 the freshest segment was averaged 10 steps ago and the stalest 390 steps ago. Break one reducer and its segment waits 400 steps longer for its next turn. This is why the paper tracks reducer failures so closely.
Rounds never overlap: the timeout is set below the time of 20 steps. A round starts with a short matchmaking wait (up to 40 s) where peers register in the stage’s DHT. Then the weights in the chosen segment are cut into 2 MiB chunks. Optimizer states are not exchanged, which saves bandwidth. Chapter 6 takes the all-reduce apart.
Failure mode. Symptom: one replica’s weights stray from its siblings. Measurement: variance per segment in snapshots every 500 steps. Fix: more rounds succeed, or the straying node leaves. Chapter 4 adds two fixes that stop the drift hurting training.
Chapter 4
Apply the average as a correction instead of a replacement, send each backward pass home to the replica that ran its forward pass, and clip gradients without asking anyone
Imagine you and a friend each edit your own copy of an essay. Every twenty minutes a courier takes a photo of paragraph three from both copies, walks it to a shared desk, averages the two, and walks back. The walk takes ten minutes. In those ten minutes you kept writing paragraph three. When the courier hands you the average, pasting it over your paragraph deletes ten minutes of your work.
That is the first problem of AsyncSPARTA. The second is quieter and costs more. Both come from one fact: replicas are now allowed to differ.
A round runs in the background while the replica keeps training. The paper notes a single round can span as many as five optimizer steps. Call the weights the replica contributed at the start its snapshot θ*. By the time the average θ̄ returns, the replica holds newer weights θ. Writing θ̄ straight in discards everything between θ* and θ.
The delta rule adds only the shift that consensus caused:
The local update θ − θ* is kept. The replica still moves toward the average. The paper calls this a special case of the correction in AsyncMesh with its coefficient set to 1. (In the code, a reducer returns the difference between the average and the sender’s own slice, so the delta arrives ready to add.)
Worked example, toy numbers. A weight starts the round at θ* = 1.00. Peers made the snapshot average 0.94. The replica trains on and loses 0.04 per step. The round lands after N = 4 steps, so the replica sits at 1.00 − 0.16 = 0.84. Replace gives 0.94: it undoes 0.10 of progress. Delta gives 0.84 + (0.94 − 1.00) = 0.78: both the local work and the consensus pull survive.
One weight over time. The round starts at step 0 and lands after N steps. Choose how it is written back, and drag N.
Toy numbers: snapshot 1.00, average of snapshots 0.94, local progress 0.04 per step. The paper reports rounds spanning up to five steps (Section 4.2.2). Only the idea, adding θ̄ − θ* instead of overwriting, is the paper’s.
With N = 5 the replica would lose 0.20 of local progress in every round if the average replaced it. Over many rounds that is a constant drag on training.
Chapter 1 said a worker recomputes its forward pass when the backward request arrives. That only gives the right gradient if it recomputes with the same weights as the first time. When all replicas were identical, any replica would do. Now they differ.
Toy case. A stage computes f(X; θ) = θ2X with X = 2. Replica A has θ = 1.0 and returns 2.0. Downstream replies with a gradient for that output. If replica B (θ = 1.2) rebuilds the graph, it evaluates the derivative 2θX at its own weight: 4.8, not A’s 4.0. The parameter gradient is wrong by 20% from a 20% weight gap, and it was built from an output (2.88) that never existed downstream.
So Agora pins the backward pass to the worker that ran the forward. The trainer records the sampled route and reuses it. If that worker has gone, it falls back to a random one. The 1B ablation (Section 6.2) tested this: with stochastic backward routing the loss curve separates from deterministic routing by about step 1,000 and ends roughly 0.4 nats apart at step 8,000. A nat is the natural-log unit of loss, so 0.4 is a large gap.
Gradient clipping shrinks a gradient whose total length (norm) is too big, so one wild step cannot wreck the model. Global clipping needs the norm over the whole model, which needs every stage to report before any stage updates: a barrier at every step. Agora clips each stage alone: 0.3779 for head and body, 0.7558 for the tail, whose gradients are larger. No message crosses a stage boundary for it.
Chapter 5
Hand more work to faster workers, merge small requests on weak GPUs, and see why the whole pipeline moves at the speed of its slowest stage
A pizza kitchen has one oven that bakes four pizzas an hour and another that bakes one. A waiter who sends orders alternately, one to each oven, will soon have a queue at the slow oven and an idle fast oven. A good waiter sends four orders to the fast oven for every one to the slow oven. Agora’s trainers are that waiter.
Contributor GPUs differ by up to ten to one in how many microbatches they process. For each stage the trainer keeps its workers in a min-heap, a list that always hands you the entry with the smallest key. The key is virtual runtime: a running account of how much work that worker has been given, in units of time.
Only the forward pass is balanced this way. The backward pass follows the forward route (Chapter 4). Failures are handled by retries and temporary bans. Try both strategies on four workers of unequal speed.
Four workers have speeds 4, 2, 1 and 1. Bars show how many microbatches each receives. The marker shows when it finishes. Switch strategy and drag the number of microbatches.
Illustrative speeds (4, 2, 1, 1 microbatches per time unit). The routing rule is the paper’s (Section 3.3.2): a min-heap on accumulated speed-weighted runtime. The stage finishes when its slowest-loaded worker does.
With 24 microbatches, round robin gives each worker 6. The speed-1 workers need 6 time units, while the speed-4 worker finishes in 1.5 and sits idle. The load-aware rule hands out 12, 6, 3 and 3, and everyone finishes together near 3.
Trainers send one sample at a time, because they cannot know which GPU can take how much. A worker with spare memory merges whatever waits in its queue into one bigger batch, up to a limit set by its memory. This is batch coalescing. It merges only forward requests together, or only backward ones, choosing the queue with the oldest request. The price is a variable batch size, so the compiled graph must accept a flexible batch dimension.
All stages process the same samples, in the same order of microbatches, so one stage cannot get ahead. Throughput, tokens per second, is the global batch times sequence length divided by the time of one optimizer step. It is the same number at every stage. The pipeline runs at the pace of its slowest stage. Table 4 of the paper (steps 20k to 30k, 171.5k tokens/s) shows the balance. Times are medians per microbatch.
| Stage | Comms ms | Compute ms | Coalesced size | GPU util % |
|---|---|---|---|---|
| head | 19 | 293 | 2.9 | 87.4 |
| body-1 | 138 | 261 | 1.1 | 44.8 |
| body-3 | 140 | 306 | 1.1 | 50.4 |
| body-5 | 128 | 255 | 1.1 | 45.9 |
| tail | 23 | 501 | 2.8 | 80.9 |
Read it in three steps. The bodies wait about 140 ms for data and compute for about 280 ms, so communication is hidden behind compute: they are compute-bound, which is the goal. Their coalesced size near 1.1 shows that bodies were kept over-provisioned: queues were short, so churn would not starve the stage. The tail is the heaviest, with 501 ms of compute for 6 blocks plus the output projection over the full vocabulary and the loss. It paced the pipeline. The authors still did not add tail nodes. More replicas would raise the risk of weight divergence, and slower convergence would outweigh the gain.
Efficiency is tokens per pooled TFLOP/s of spec-sheet compute across all GPUs (one TFLOP/s is a trillion arithmetic operations each second). The run reached a peak of 5.45 and settled at 4.2, about 63% of the 8B Llama baseline on H100s, so that baseline works out near 6.7. In the 20k to 30k window the pooled compute was 39,749 TFLOP/s.
A trainer keeps one microbatch in flight, and that microbatch occupies one stage at a time. One trainer would leave six stages idle. The pipeline is saturated by many trainers whose requests pile up at each stage. Figure 4c shows throughput rising with the trainer count, then flattening once workers become compute-bound. The run used 745 trainers to feed about 170k tokens/s. Adding stages makes each microbatch take more trainer round-trips, which more trainers must hide.
Chapter 6
Let strangers join with stale weights, leave without notice and miss averaging rounds, and still finish every step
It is day twelve of the run. A stranger in another country starts the Agora software on a 4090. Their copy of the model is a checkpoint saved some time ago. The stage they join has moved on by hundreds of steps. If they simply start training, their old weights will pull the stage’s average backward, like a late student reading yesterday’s notes aloud to a class that has moved on.
A small service, the Authorizer, is the gatekeeper. It verifies the software package and the hardware, admits nodes at a limited rate, and places each newcomer on whichever stage has too few workers. Entry demands at least 24 GB of GPU memory, 80 GB of RAM, 200 Mbit/s of download speed and latency no greater than 80 ms. In the real run, contributors made 3,334,054 join requests from 612 distinct clients; 695 succeeded, because the run capped contributors at about 60 at a time.
A joiner downloads the newest saved stage state from cloud storage, written every 500 steps. If that state is more than S = 3 steps behind the stage’s current step, the joiner enters a two-phase sync mode:
Why 400 and 100? A full pass over the weights needs 20 rounds of 20 steps: 400 steps. The optimizer (AdamW) keeps a running average of squared gradients with β2 = 0.95, a time constant of 1/(1 − 0.95) = 20 steps. After 100 steps, five time constants, the stale start has decayed to 0.95100 ≈ 0.6%. A joiner also waits for a quiet window so it never enters in the middle of an averaging round.
Worked example of weight zero. Two good replicas hold the value 1.00 and 1.02 after processing 100 samples each. The stale joiner holds 0.70. The average is weighted by samples: (100 × 1.00 + 100 × 1.02 + 0 × 0.70) / 200 = 1.01. With equal weights it would be 0.907, dragging the stage backward.
Drag the number of steps since the worker joined and watch what it may do in each phase.
Phase lengths are Pluralis-8B’s (400 weight-sync steps, 100 optimizer-sync steps; Algorithm 1). Only the body stages used sync phases in the run; the head and tail ran on stable operator nodes that fetch fresh state from peers.
Now the all-reduce itself, the weight averaging of Chapter 3. Think of it in two moves. Reduce-scatter: cut the vector into slices, one per reducer, and every peer sends each slice to its reducer, who averages. All-gather: the reducers send the averaged slices back to everyone. (Chapter 2 of the background series draws both moves.) Agora uses one such round, a modified butterfly all-reduce.
The twist: only the operator’s Pluralis nodes, with fast stable links, are reducers. Contributors are senders. Everything moves in 2 MiB chunks. A reducer adds each chunk to its running sum as it arrives, weighted by the sender’s sample count, then returns the difference between the average and the sender’s own slice. A sender that misses its per-chunk timeout (30 s) is banned for the round, and the rest proceed. If an averaged slice does not come back (reducer timeout 60 s), the peer keeps its local values for that slice. A round therefore always finishes, possibly only partly.
Six contributors send to three reducers. Remove contributors one at a time, or bring down reducer A, and read the three bars.
Toy sizes (6 senders, 3 reducers, equal weights). The metric names follow Section 5.7: reduce success is the share of parameters a reducer receives, averaging success the share of averaged slices a node gets back. The 85% line is the paper’s empirical operating threshold from the 1B ablation (Chapter 8).
Lose two of six contributors: the reducers still average the four who arrived, those four get everything back, and the two leavers keep their own values. Reduce success is 67%. Bring reducer A down and its slice stays unaveraged for everybody: averaging success falls to 67% for all, and the replicas drift further apart.
Nobody can force a stranger’s machine to stop. So each worker runs a local rulebook and terminates itself: at once for a CUDA failure, invalid gradient values, lost peer-to-peer contact or no view of global progress; after a threshold for RAM overuse; and when it fails two of its last three all-reduce rounds. A terminated worker may rejoin through the same door and the same sync phases.
Chapter 7
Read the run the way the paper reports it: who joined, how fast it went, how efficient it was, and how close the loss stayed to a central reference
Forty days. A model with 8.6 billion trainable weights. 500 billion tokens of text. Hundreds of strangers whose machines came and went. This chapter reads what the paper reports and what each figure actually shows, in the order you would audit it.
The run began on 14 May 2026 and ended on 23 June. It processed 500B tokens of FineWeb-Edu (a 1.3-trillion-token, education-focused filter of a large web crawl) and performed a measured 30.8 zettaFLOPs, or 3.08 × 1022 operations. The global batch was 2,048 sequences, about 8.4 million tokens, for 60,000 optimizer steps (the learning-rate schedule was set for 154,900). For the first 5,000 steps only Pluralis nodes took part. Then the run opened to the public.
The data was cut into 10,080 pre-shuffled shards, three per trainer. Covering 500B tokens took about 1,290 trainers streaming through their shards. A monitor rotated finished shards to fresh ones so trainers never idled.
The head and tail stayed on Pluralis nodes alone: 8 and 16 of them. The five body stages took contributors, capped at about 60 at a time. Admitted GPUs were consumer cards plus the L40S. Across the run, 330 contributor nodes took part, from 176 unique operators.
Choose a view. Each bar is a number printed in the paper, with its figure or section in the read-out.
Fleet counts are Figure 14a (the RTX 6000 Ada count of 14 is the remainder of 330). Efficiency: 5.45 peak and 4.2 steady are Section 5.4; the implied baseline of about 6.7 is 4.2 divided by 0.63, derived here. Churn: Figure 15. Admission: Figure 16 and Section 5.3.
Fleet (Figure 14). The RTX 4090 and 5090 made up 55% of nodes, the L40S 22% and the rest were RTX 6000 Ada and RTX PRO 6000. Download speed ran from 213 Mbit/s to 7.7 Gbit/s (median 703 Mbit/s). Latency reached the 80 ms ceiling; the median was 28 ms. RAM ran from the 80 GB floor to 2 TB (median 504 GB). The pool was truly mixed.
Churn (Figure 15). 669 joins and 607 departures. The live fleet sat at about 61 nodes (peak 63). Each body stage held 19.5% to 20.4% of the nodes all run long, so the Authorizer’s placement kept the stages balanced. The GPU mix drifted toward newer cards: the 4090 fell from about 32% to 9%, the 5090 rose from 17% to 31%.
Admission (Figure 16). Demand far outran capacity. 99.98% of 3.33 million join requests were turned away; 89% simply because the run was full, 10.5% were malformed. Of 612 clients, 208 got in at least once. Those who got in waited a median of 5.8 hours. Those who gave up did so after a median of 8 minutes.
Throughput and efficiency (Figure 17, Table 4). The run held about 170k tokens/s with 745 active trainers, with two transient drops near steps 38k and 52k. The first came from a large loss of compute in one body stage that bottlenecked the pipeline. The second came from too few trainers, which starved the pipeline of batches. Steady efficiency was 4.2 tokens per TFLOP against a peak of 5.45, which the paper puts at 63% of a centralized H100 baseline, training Llama 3.1 8B with TorchTitan and FSDP2 (a standard datacenter training library and its sharded data-parallel mode).
The paper picks its yardstick on purpose: it does not claim a state-of-the-art model. It asks whether training matches centralized training. The reference is a TorchTitan run with the same subspace reparameterization and SPARTA averaging, on a dedicated homogeneous cluster with reliable collectives. So any gap between curves reflects only the decentralized execution. Pluralis-8B ended at a training loss of 2.41 after 60k steps and 500B tokens.
Figure 19 reads like this. The central curve sits slightly lower. The Pluralis curve is jagged early, when weights change fastest and replicas are most sensitive to partial averaging. It smooths out later. Near step 40k a large set of contributors left at once, and the loss bumped, then recovered within a few thousand steps without intervention. Two honest limits: the reference ran only 27k iterations, and the text gives no number for the gap.
Figure 20 shows the cost in averaging success. Often at least one worker fails its shard completely. A failed reduce is worse, because the partition stays unaveraged for all, but those are rare. Figure 22 shows the sync phases work: no significant spikes in loss or gradient as workers exited them. Figure 23 shows one side effect: the spread of step counts between stages climbs with each burst of optimizer-sync activity.
Chapter 8
Read the 1B ablations to see which design choices carry the weight, then list the limits a careful reader should hold on to
A big run proves the system can work once. An ablation removes or changes one piece at a time on a smaller model, to find out which pieces matter. Pluralis ran theirs on a 1B model: 16 layers, hidden size 2,048, four pipeline stages, a rank-40 subspace (51 times compression), AdamW, AsyncSPARTA with p = 5% every 20 steps. It is the same recipe as Pluralis-8B, shrunk.
1. Reparameterized versus original SSN (Section 6.1). Same compression, different enforcement. The loss curves coincide with each other and with a central reference. The reparameterized version is lighter: body stages about 35% fewer trainable weights, head about 50%, and the head’s averaging time falls by roughly a quarter (ratio 0.77 to 0.78). Its gradients stay calm, while the original SSN shows large spikes early.
2. Pinned versus random backward (Section 6.2). Four stages, 8 data-parallel pipes, cadence N = 20. The curves start to separate at about step 1,000 and end roughly 0.4 nats apart at step 8,000, in favour of the pinned backward pass. The error is a small bias in each step that adds up.
3. Heterogeneity and churn (Section 6.3). The authors tuned bandwidth and latency to make joining workers process fewer batches than the best worker: about 2:1, 4:1 and 10:1 for fast, medium and slow tiers. About 87 joins and 87 drops happened during the run. The loss generally tracked the homogeneous no-churn baseline. A heavier stress phase near step 6,500 used links of 80 ms latency. Individual rounds took up to about 277 s, 7 of 36 stressed workers (19%) terminated themselves after repeated failures, and convergence got temporarily shallower. It recovered as those workers were pruned. The paper’s summary: tolerates batch-size heterogeneity up to 10:1.
4. All-reduce failures (Section 6.4). The authors injected four failure types (a peer hanging or exiting abruptly, during either the gather or return phase) on a schedule from clean through light (about one round in five), heavy (every second round) to zombie contributors that fail every round without being kicked out. In the harshest phase the loss curve flattened near 3.1. It resumed its fall once faulty workers were removed: from roughly 3.04 to 2.97 at the end, with reducer participation back at 100% near step 14k. The strongest slowdown coincided with participation below about 85%. That produced the final rule: a worker terminates after two failures in any three consecutive rounds, not only two in a row.
Pick an ablation to see its numbers. In the participation view, drag the slider and see which side of the paper’s 85% line you land on.
All numbers are from the paper’s 1B ablations (Sections 6.1 to 6.4). The 85% value is an empirical observation about when loss reduction slowed, not a theorem; the paper calls it an operating threshold. The 23% head averaging cut is derived from the 0.77x ratio.
None of this weakens the main result. It marks where the next paper has to go. For the data-parallel family, where each site holds a full replica, see the Core Automation post’s two-cluster run and Training on compute islands.
Chapter 9
Keep the numbers, the terms and the core loops in one place, then pick where to read next
Agora is a protocol for pretraining one language model over the public internet. The model is cut into pipeline stages; each stage has many stateless workers; light trainers carry microbatches down and back. A subspace reparameterization shrinks the stage-boundary signal 100 times, exactly. AsyncSPARTA keeps replicas of a stage together by averaging a rotating 5% of weights every 20 steps in the background, with a delta rule and a pinned backward pass. Load-aware routing, batch coalescing, sync phases for stale joiners, a fault-tolerant partial all-reduce and self-termination make joining and leaving normal. Pluralis-8B ran 40 days on 500B tokens with 330 contributor nodes, reached 63% of an H100 baseline in tokens per TFLOP, and ended at a loss of 2.41.
| What | Number | Why it matters |
|---|---|---|
| Stage-boundary activation | 4,096 × 5,120 FP32 = 671 Mbit; 100× smaller | 3.4 s at 200 Mbit/s raw; 34 ms compressed |
| One block of weights | 12d² = 314.6M, about 10 Gbit; 5% = 0.5 Gbit | 50 s raw vs 2.5 s per round at 200 Mbit/s |
| AsyncSPARTA schedule | 5% every 20 steps; 20 segments; 400-step cycle | Every weight averaged once per 400 steps |
| Stages | 7: head 6 blocks, 5 body of 4, tail 6; 32 blocks | Tail is the heaviest (501 ms compute) |
| Batch | 2,048 sequences, about 8.4M tokens; 60k steps | 500B tokens in all |
| Join sync | 400 weight-sync + 100 optimizer-sync steps | Weight 0 until the stale start has decayed |
| Admission floor | 24 GB VRAM, 80 GB RAM, 200 Mbit/s, 80 ms | Keeps comms inside the compute window |
| Throughput and efficiency | 170k tokens/s; 4.2 steady, 5.45 peak tokens per TFLOP; 63% | Cost of using strangers’ GPUs |
| Churn | 669 joins, 607 drops; about 61 live; 745 trainers | Throughput held through turnover |
| Loss | 2.41 at step 60k | Central reference slightly lower, 27k steps only |
| Ablations (1B) | 0.4 nats from unpinned backward; 85% participation; 10:1 heterogeneity | Which choices carry weight |
A sketch of one worker’s step and one averaging round, following Algorithms 2 and 3. Names are ours, not the paper’s code.
pythondef worker_optimizer_step(w): # runs after each backward request w.apply_finished_round() # delta rule: theta += avg_snapshot - my_snapshot w.grad_acc += w.stage_grad # parameter grads never leave this node dht.publish(w.stage, w.id, samples=w.n_samples if w.mode == "NORMAL" else 0) if dht.stage_samples(w.stage) >= 2048: # target batch B reached swarm-wide g = clip(w.grad_acc / w.n_samples, 0.3779) # per-stage clip, no cross-stage message adamw_step_on_cpu(w.master, g); w.t += 1 if w.t % 20 == 0 and not w.round_in_flight: w.round_in_flight = background(averaging_round, w) # returns at once def averaging_round(w): peers = matchmake(dht, w.stage, window_s=40) # no leader; same order on every peer P = segment((w.t // 20) % 20) # rotating 5% of the weights snap = w.master[P].copy() weight = w.n_samples if w.mode == "NORMAL" else 0 # joiners add nothing for chunk in split(snap, reducers(peers), size_mib=2): send(chunk, to=chunk.reducer) # reducer: acc += weight * chunk, ban on timeout deltas = receive_back(timeout_s=60) # missing slices: keep local values w.pending = (P, deltas) # applied a step or two later
The trainer’s side is shorter: for each sample, x = ids; for each stage pick worker = heap_min(stage), call it, keep the input; at the tail get the loss; walk back calling backward(saved_input, grad) on the same workers.
Agora belongs to the model-parallel family in the Core Automation post, next to SWARM parallelism and Node0. Data-parallel low-communication methods such as DiLoCo keep a full replica at each site and sync rarely; see SWARM parallelism for Agora’s closest ancestor and PowerSGD for the compressor Node0 used. The post’s own two-cluster run, in the other family, is covered in Training on compute islands.
Now press Present or Teach and explain one training step of Agora from memory, from a sample on the trainer to the background round. Then go back to the link and drag it again: you now know where each bar comes from.