Ten billion parameters, one trillion tokens, GPUs on three continents joined by ordinary internet: INTELLECT-1 spent 83% of its time computing by talking once every 100 steps, in 8-bit numbers.
Learn how a model was trained by strangers’ GPUs that are far apart and slow to talk: what they send, how often, how small, and what happens when a machine disappears.
Pick a route (the United States, plus Europe, or the whole world), then switch between three ways to sync. Watch how much of the time the GPUs spend computing. Then we build, piece by piece, the recipe underneath: local steps, the outer optimizer, the int8 ring, the device mesh, the heartbeats and the ring order.
You need a rough idea of training a neural network (adjust the weights to cut the loss, one small step at a time). We explain every other term, from bandwidth to all-reduce, when it first appears.
Based on the INTELLECT-1 Technical Report by Sami Jaghouar, Jack Min Ong, Manveer Basra, Fares Obeid, Jannik Straube, Michael Keiblinger, Elie Bakouch, Lucas Atkins, Maziyar Panahi, Charles Goddard, Max Ryabinin and Johannes Hagemann (Prime Intellect and partners, December 2024). Re-taught here in our own words and devices. It reads the background lesson DiLoCo and Low-Communication Pretraining and appears in the Core Automation post The Hitchhiker’s Guide to Training on Compute Islands.
Measured, from Table 2 of the report: one round is 100 inner steps and takes 38 minutes of compute (22.8 s a step, our division); the median all-reduce takes 103 s in the United States, 382 s across US and Europe, 469 s worldwide; compute utilization is 95.7%, 85.6% and 83.0%. Scaled by us, not measured: the two 32-bit rows assume sync time grows in proportion to the bytes sent, which is 4 times the int8 payload. Payloads: 10 billion parameters at 4 bytes is 40 GB, at 1 byte is 10 GB.
Chapter 0
See why a run on strangers' GPUs cannot send gradients after every step
Picture fourteen machines in up to eight data centers, spread over three continents. They share one job: teach a single neural network to write text. Every few seconds, each machine learns something small. Before any of them can take the next step, every machine must hear what all the others learned.
Inside one data center this talk is quick. The machines sit in the same hall, joined by thick cables. Across the internet it is slow. The INTELLECT-1 report is about what you change in the training recipe when the talk is slow, and when machines can vanish at any moment.
A parameter is one number inside the model that training adjusts. INTELLECT-1 has about 10 billion of them. A training step shows the model a batch of text, measures how wrong it was, and nudges every parameter a little. The list of nudges, one per parameter, is the gradient. Think of it as a list of 10 billion small arrows, each saying “go up a bit” or “go down a bit”.
One machine is too slow to read a trillion tokens. So the work is split. In data parallel training, every machine holds a full copy of the model and reads a different slice of the text. Each one computes its own gradient. Then all machines must agree on one shared gradient, the average, so that the copies stay identical.
That agreement step is an all-reduce. Imagine ten friends who each write a number on a sticky note. After the all-reduce, every friend knows the average of all ten notes. Here each note holds 10 billion numbers. In this report a node is one server with eight GPUs (the chips that do the arithmetic), and the run used up to 14 nodes, which is 112 H100 GPUs.
Bandwidth is how many bits a link can carry each second. Picture a water pipe: a wider pipe moves more water per second. A bit is one 0 or 1. A byte is 8 bits. Gb/s means gigabits per second, a billion bits. Tb/s is a thousand times more.
The report gives two numbers. Inside a modern data center, InfiniBand networks (special fast cables between machines) reach up to 3.2 Tb/s. For INTELLECT-1, the best link between nodes was 4 Gb/s, and the worst was 500 Mb/s. The authors call this three orders of magnitude lower. The exact ratio is between 800 and 6,400 times, so “about a thousand times” is fair.
How long does a send take? Use the size of the message and the width of the pipe. Write the message size in bytes as B and the bandwidth in bits per second as R.
Each parameter's gradient is stored as a 32-bit float, a number that takes 4 bytes. Ten billion numbers times 4 bytes is 40 billion bytes, or 40 GB. That is 320 gigabits. Now apply the formula. Inside the data center, at 3,200 Gb/s, the send takes 0.1 seconds. At the best internet link, 4 Gb/s, it takes 80 seconds. At the worst, 0.5 Gb/s, it takes 640 seconds.
Compare that with the work. One node needs about 22.8 seconds to compute a training step. We get that from the report: 100 steps take 38 minutes, which is 2,280 seconds. So at 4 Gb/s, the node would work for 22.8 seconds and then wait 80 seconds. It would compute 22% of the time. This estimate ignores some real costs, such as the ring pattern that Chapter 3 explains, so the true figure is worse. Try it below.
Two bars show how long one send takes, in 32-bit numbers (40 GB) and in 8-bit numbers (10 GB). The dashed line is one 22.8-second step of compute. Drag the bandwidth, or press a preset.
The report's numbers: InfiniBand up to 3.2 Tb/s, internet links 500 Mb/s to 4 Gb/s, 100 inner steps in 38 minutes. Ours: the 10 billion parameters times 4 bytes, the single one-way send (a real all-reduce moves about twice that, Chapter 3), and the 22.8 s step, which is 2,280 s divided by 100.
Slide to 4 Gb/s. The 32-bit bar sits far to the right of the dashed line. Slide to 3,200 Gb/s and it falls far to the left. This is the whole problem in one picture. The same message that is free inside a data center costs several steps of work across the internet.
Take the best link, 4 Gb/s, and check the claim with every step written out. First, the size: 10,000,000,000 parameters times 4 bytes is 40,000,000,000 bytes, or 40 GB. Second, the bits: 40 GB times 8 is 320 Gb. Third, the time: 320 Gb divided by 4 Gb/s is 80 seconds.
Fourth, the work in one step. The report says 100 steps take 38 minutes. That is 38 times 60, or 2,280 seconds. Divide by 100 and one step takes 22.8 seconds. Fifth, the share spent computing: 22.8 divided by 22.8 plus 80 is 0.222, or 22%.
Now shrink the message. An 8-bit number takes 1 byte, so the gradient is 10 GB, or 80 Gb. At 4 Gb/s that is 20 seconds, and the share rises to 22.8 divided by 42.8, which is 53%. Better, but half the machine still idles. Something more is needed. That something is to talk less often, which is the next chapter.
One more detail is worth a sentence. A node is not one chip. It holds eight GPUs, and the eight talk to each other over a fast cable inside the box (NVLink, the report says). That inner talk is cheap. Only the talk between boxes is the problem, and the whole design of the report follows from that split: fast inside, slow outside.
There is a second trouble. The nodes were not owned by one company. Thirty independent compute providers gave machines, and these machines joined and left during the run. The number of active nodes started at 4 and climbed to 14. The authors also saw that a fast link could suddenly turn slow, for no clear reason.
So the recipe must do two jobs. It must send far less data, far less often. And it must keep going when a machine disappears. The report calls its answer PRIME, a training framework (a library of code for running the job). Here is the claim as a trade. INTELLECT-1 trained a 10 billion parameter model on one trillion tokens over the open internet, where syncing every step would stall, because it syncs once per 100 steps and sends 8-bit numbers, a saving of 400 times.
Each part of that sentence gets a chapter. If a word here is new, do not worry. We define it where it first matters. The background lesson DiLoCo and Low-Communication Pretraining goes deeper on the algorithm. The Core Automation post lists INTELLECT-1 as the December 2024 run that used “up to 112 H100s active at once” across “five countries and three continents”.
Chapter 1
Count how often workers talk when each one trains alone between meetings
Five students share one study guide with a thousand practice problems. Plan A: after each problem, all five stop, compare answers and agree on a correction. Plan B: each works alone for an hour on their own pile, then all five meet for ten minutes and merge what they learned. Plan A is careful and slow. Plan B spends most of the day working.
INTELLECT-1 uses Plan B. The idea is old. The report calls it Local SGD, citing Stich (2019). SGD is stochastic gradient descent, the plain recipe for training: look at a small random batch, compute the gradient, take a small step downhill. “Local” means each worker does this on its own, with no talking, for a while.
Call one private step an inner step. A worker takes H of them in a row. In the report H is 100. Each worker holds its own full copy of the model, and each reads its own slice of the data. All copies start the round identical. As they train, they drift apart, because each sees different text.
After H inner steps, the workers meet once. That meeting is the only time bytes cross the internet. The rest of the round is pure compute, so the cost of the meeting is spread across H steps. Make H ten times larger, and you pay for one tenth as many meetings.
The tool that takes the inner steps is AdamW. Adam is a popular optimizer (a rule for turning a gradient into a step). It keeps two running averages for each parameter, one of the gradient and one of its square, and uses them to scale the step. The W means it also shrinks the weights slightly each step, called weight decay (0.1 here). In the report the inner learning rate, the size of each step, is 7.5e-5, with 1,000 warm-up steps. Adam’s two settings, called beta 1 and beta 2, are 0.9 and 0.95.
Here is Algorithm 1 from the report, reduced to its bones. The part you have just learned is the inner loop. The last two lines are the meeting, and Chapter 2 explains them.
pythonfor t in range(1, T + 1): # outer step: one round for i in range(k): # every worker, in parallel theta_i = theta.clone() # all start from the shared weights for h in range(H): # H inner steps, no talking x = sample(D[i]) # this worker's own data loss = f(x, theta_i) theta_i = AdamW_step(theta_i, loss.grad()) delta = mean(theta - theta_i for i) # the meeting: average the drift theta = OuterOpt(theta, delta) # one step with the averaged drift
Here k is the number of workers, Di is worker i’s data shard, and T is the number of rounds. In the real run each “worker” is a whole node of eight GPUs, which Chapter 5 opens up.
Let us count. Suppose a node takes 1,000 inner steps. With H = 1 the nodes meet 1,000 times. With H = 100 they meet 10 times. With H = 500, the value the report calls typical for DiLoCo, they meet twice.
Now count bytes. Each meeting sends one gradient-sized message. In 32-bit numbers that is 40 GB. At H = 1: 1,000 times 40 GB is 40,000 GB. At H = 100: 10 times 40 GB is 400 GB. Switch to int8, which is 10 GB a message, and 10 meetings send 100 GB. The ratio 40,000 over 100 is exactly 400. That is where the report’s “400 times” comes from. Chapter 4 does it again with care.
The strip is 1,000 inner steps. Each orange tick is a meeting. Choose H and read how many meetings, and how many minutes of waiting, the global route costs.
Illustrative arithmetic on the report's numbers: 22.8 s per inner step (38 minutes for 100 steps) and a 469 s int8 all-reduce on the global route (Table 2). We hold the meeting cost at 469 s for every H, which is the paper's value for H = 100; the report did not time other values of H.
Choose H = 1. The strip is solid orange, and the nodes spend almost the whole run waiting. Choose H = 100. Ten thin ticks appear, and the compute share is the paper’s 83%. Choose H = 500. Only two ticks remain, and the share rises to 96%.
If more local steps are so cheap, why not choose H = 100,000? The answer is drift. Each copy only sees its own slice of the text. The longer it trains alone, the further it walks away from the others, and the less the average of the copies resembles a good model. In the worst case the average is worse than any single copy.
The signs are easy to name. The symptom is a loss curve that rises or stalls just after each meeting. The measurement is how far the copies sit from each other before the meeting. The fix is a smaller H, or a smarter way to combine the copies. The report picks a smaller H and a smarter combining step. It calls 100 inner steps “a conservative number” and chose it “for optimal performance”. It does not publish a sweep over H. The DiLoCo paper does, and its own lesson shows those results.
Here is the drift in one picture. Suppose two nodes are walking toward the bottom of a valley, but each sees a slightly different slope because its data differs. After 5 steps they are still close, and their average is a fair guess. After 500 steps each has settled into its own small hollow, and the average of the two may sit on a ridge between them. The loss would then jump up at the meeting. This is an illustration, not a result from the report.
Chapter 2
Turn a round of drifting copies into one careful step with momentum
Four hikers leave the same camp at dawn. Each follows a different trail, because each sees a different slice of the map. At dusk they return and report where they ended up. The camp must move tomorrow. Where should it go? A good rule: move the camp by the average of the four journeys.
That is the whole idea of this chapter. The camp is the shared model. The hikers are the nodes. The journeys are what 100 inner steps did to each copy. The average journey is the pseudo-gradient.
A true gradient points uphill for one batch at one point. The pseudo-gradient is not that. It is the distance the weights travelled over 100 steps, averaged over nodes. It is built from many gradients, so it points roughly the way the loss falls. The report writes it as the line “average outer gradients” in Algorithm 1. We write it with symbols.
Only Δ crosses the internet. It has the same shape as the model, so its size is the model’s size: 10 billion numbers. Every node ends up with the same Δ after the all-reduce, so every node can make the same next move without further talk.
The simplest outer rule is plain averaging. Set the new weights to the mean of the node weights. In symbols, θnew = θprev − Δ. It is the same as an outer step with learning rate 1 and no momentum. This is the classic rule of Local SGD.
DiLoCo does something sharper. It treats Δ as if it were a gradient and feeds it to a second optimizer, the outer optimizer. The report uses Nesterov momentum. Momentum is a running memory of past pushes: a heavy ball keeps rolling in the direction it was going. Nesterov’s version looks slightly ahead before it corrects. In the PyTorch convention the update is:
Take one parameter with θ = 1.00. Two nodes finish a round at 0.70 and 0.50. Then Δ = ((1.00 − 0.70) + (1.00 − 0.50)) / 2 = 0.40. Plain averaging gives θ = 0.60.
Now use Nesterov with μ = 0.9 and η = 0.7, starting at v = 0. Round 1: v = 0.9 × 0 + 0.40 = 0.40. The step is Δ + μv = 0.40 + 0.36 = 0.76. So θ = 1.00 − 0.7 × 0.76 = 0.468.
Round 2: suppose the nodes now report Δ = 0.20. Then v = 0.9 × 0.40 + 0.20 = 0.56. The step is 0.20 + 0.9 × 0.56 = 0.704. So θ = 0.468 − 0.7 × 0.704 = −0.025. The model moved 0.49 in a round where the nodes only walked 0.20. Momentum carried it. If the walk keeps pointing the same way, that is a win. If not, it overshoots.
Try it on a toy below. The bowl is long and thin, so one direction (up and down) is slow to learn. Plain averaging crawls along it. Momentum speeds it up, and with too much push it can swing past the bottom.
Contours show the loss on average. Each of the four coloured paths is one node walking H inner steps on its own data. The teal dot is the shared model. Press Run one round a few times, then switch the outer rule.
A toy, not the paper's model: a two-parameter bowl, loss = 0.5 (x² + 0.25 y²), where each node's data pulls its own minimum off centre by (±1.5, ±1.5), plain gradient steps of size 0.1 for the inner loop, and the outer rule above with the paper's 0.7 and 0.9. On this bowl the average of the copies is exact; on a real network it is not.
Set H to 5. Run plain averaging for ten rounds and note the distance. Reset and run Nesterov for ten. In our toy, Nesterov leaps ahead in the first two rounds (the distance falls to 1.29 by round 2, against 1.91 for the plain average). Then it overshoots and swings around the bottom, and the plain average, slow but smooth, is nearer by round 10.
That is an honest picture of momentum. It pays when pushes keep pointing the same way, and it costs when they do not. The report does not run an ablation of the outer optimizer. It adopts the DiLoCo choice of Nesterov with learning rate 0.7 and momentum 0.9, and it shows only that the whole recipe trains. Our toy has no noise and a perfect bowl, so do not read it as a result about the paper.
The report keeps this step off the GPU. After the inner steps, PRIME computes Δ on the CPU, all-reduces it, runs the outer optimizer on the CPU, copies the new weights back to the GPUs, and keeps a CPU copy of the weights for the next round’s subtraction. That costs extra CPU memory, which the authors accept because “modern GPU servers typically have abundant system memory”. The CPU work itself took only 5 to 10 seconds per round (Section 3.2).
Chapter 3
Squeeze each number into one byte and still add in full precision
Four friends sit in a circle. Each holds a card with four numbers. The goal: every friend ends up knowing the four sums, one sum per position. Nobody may shout across the circle. Each friend may only pass a note to the neighbour on the left. How do they do it fast?
This is the ring all-reduce, and the report uses it to share the pseudo-gradient (Section 2.1 cites Thakur et al., 2005, for the classic version). A ring needs no boss and no central server. Every link carries the same load at the same time, so no link sits idle.
First cut each node’s message into N equal chunks, where N is the number of nodes. In phase one, reduce-scatter, every node sends one chunk to its neighbour in each step. The neighbour adds it to its own copy of that chunk. After N − 1 steps, each node holds the complete sum of exactly one chunk.
In phase two, all-gather, the finished chunks travel around the ring. In each step every node passes on a finished chunk, and the receiver just keeps it. After another N − 1 steps, everyone holds all N sums. Step through it below.
Each row is a node and each column is a chunk of its message. Orange outlines send, purple outlines receive. Green cells hold the finished sum. Press Step until it is done.
Toy numbers made up for the demo. The step pattern is the standard ring all-reduce; the report's own implementation is a custom IP-based ring, and the 10 GB figure is its int8 payload for 10 billion parameters (our arithmetic).
Count what each node sent. Each step sends one chunk, which is 1/N of the message. There are 2(N − 1) steps in all. So each node sends 2(N − 1)/N of the message. For N = 4 that is 1.5 messages. For N = 14, the biggest run, it is 26/14, or 1.86 messages. Adding more nodes barely raises each node’s load. That is why a ring scales.
It also says why one slow link hurts. Every step, every node must wait for its neighbour’s chunk. The whole ring moves at the speed of its slowest link. Chapter 7 returns to this.
The pseudo-gradient has 10 billion numbers, each a 32-bit float. The report squeezes each into one byte, an int8, which gives 256 possible values. That cuts the payload four times, from 40 GB to 10 GB. The method comes from Ryabinin et al. (2020) and has four steps, per tensor:
The codebook is 256 numbers of 4 bytes, or 1 KB per tensor. That is nothing next to gigabytes. The width of one bucket is 12σ/256, about 0.047σ. A value is off by less than one bucket width, so the typical error is small next to the spread of the numbers.
Outliers are the danger. Suppose one number is 200σ away from the rest. If the range stretched to cover it, every bucket would grow huge, and ordinary numbers would all fall into a few buckets and lose their detail. Clipping gives up on the rare giant to keep detail for everyone else. Drag the range below on made-up data that has a few giants.
The bars count values (log scale). The shaded band is the range the 256 buckets cover. Drag the range from 1 to 16 standard deviations and watch how many values get clipped and how coarse the buckets become.
Synthetic data, not the paper's: 4,000 bell-curve values plus 8 made-up outliers between 22 and 40 raw units. The mean and standard deviation are measured on all 4,008 values, as in step 1. The recipe (6σ, 256 buckets, bucket-average codebook) is the report's.
Set the range to 1σ. The buckets are very fine, but 325 ordinary values are clipped, which is a real loss. Set it to 6σ, the report’s choice. Only the 8 giants are clipped and the typical error is 0.013σ. Set it to 12σ. The giants are still clipped, and each bucket is twice as wide, so the error doubles for nothing. In this toy a smaller range such as 3σ would also work. Real pseudo-gradients may have heavier tails than a bell curve, and the report does not test other ranges, so 6σ is best read as a safe default.
A trap lies in the ring. Each step adds a received chunk to a local one. If you add the 8-bit codes, rounding errors pile up. The report states the problem: Q(a) + Q(b) is not equal to Q(a + b), where Q is the quantizer. A small case shows it. Let buckets have width 1, so Q rounds to a whole number. Take a = 0.4 and b = 0.4. Then Q(a) + Q(b) = 0 + 0 = 0, but Q(a + b) = Q(0.8) = 1.
So PRIME quantizes only what travels. A node decodes the incoming chunk to fp32, adds it in fp32, and re-encodes for the next hop. The report says the reduction runs “in full precision (fp32)”. It does not list every hop, so the re-encode per hop is our reading.
Quantizing 10 billion numbers costs compute. The authors hide it two ways. First, they pipeline the ring: while one chunk is on the wire, the next is being encoded. Second, they wrote the encode and decode in multithreaded C++ on uint8, which is more than 60 times faster than the PyTorch version. The goal was to keep up with the biggest link they expected, 4 Gb/s.
One more argument is worth knowing, and worth doubting. Quantizing weights during training is known to hurt over long runs, because outliers accumulate. The authors claim that quantizing the pseudo-gradient is “inherently more robust”, because it holds the change between two moments, not the absolute value. They give this as an argument. The report shows no ablation that compares int8 with fp32 pseudo-gradients, so treat it as a hypothesis the final model quality supports, not proves.
Chapter 4
Work out the savings, then check them against the measured table
You buy groceries and read the receipt. Two discounts stack: one for buying in bulk, one for smaller packages. The report’s receipt works the same way. One discount is “meet less often” and the other is “send smaller numbers”. The total saving is their product. Let us check the maths, then check the report’s own table.
Take the ordinary way to train in many places: data parallel, sync every step, 32-bit numbers. Over H steps it sends H messages of S bytes each, so H × S in all. DiLoCo sends one message per H steps. If that message is 4 times smaller, it sends S/4 bytes.
With H = 100 the saving is 400. With H = 500 it is 2,000. Both numbers appear in the report. The abstract says “400×”, the setup section says “a factor of 400×” for the real run, and the introduction says “up to 2000×” when the outer sync happens every 500 steps. They are not in conflict. The real run used H = 100, so 400 is the number that happened. The 2,000 is what the same recipe would give at H = 500.
Saving bytes is only a means. What matters is how much of the day the GPUs spend computing. The report calls this compute utilization: the share of time the training is not communicating. A round has two parts: compute time Tc (38 minutes, or 2,280 seconds) and all-reduce time Ta.
Now test it against Table 2. In the United States the median all-reduce took 103 s, so U = 2,280 / (2,280 + 103) = 0.957. That is the report’s 95.7%. Across the US and Europe, 382 s gives 2,280 / 2,662 = 0.856, which is the printed 85.6%. Worldwide, 469 s gives 2,280 / 2,749 = 0.829, and the table prints 83.0%. The 0.1 gap is rounding in “38 minutes”.
| Scenario | MFU | Inner step time | Median all-reduce | Compute utilization |
|---|---|---|---|---|
| Baseline (no comm) | 43.3% | 38 min | none | 100% |
| USA | 41.4% | 38 min | 103 s | 95.7% |
| USA + Europe | 37.1% | 38 min | 382 s | 85.6% |
| Global | 36.0% | 38 min | 469 s | 83.0% |
Table 2 of the report, reproduced. “Inner step time” there means the time for the 100 inner steps of one round.
MFU is model FLOPs utilization: the arithmetic the model needs, divided by the arithmetic the chips could do at their peak. (A FLOP is one floating-point operation, one add or multiply.) The no-communication baseline reaches 43.3%, which is typical for large training. Multiply that by the utilization: 43.3 × 0.957 = 41.4, and 43.3 × 0.856 = 37.1. Both match the table. The global row gives 43.3 × 0.830 = 35.9, close to the table’s 36.0. So the MFU column is nothing more than the baseline times the share of time spent computing.
Try the curve below. Drag the all-reduce time or pick a measured point. Then change H and see how the same wait costs less when rounds are longer.
The curve shows compute utilization against the all-reduce time of one round. Blue dots are the report’s three measured medians at H = 100. Pick a point, or drag the time yourself.
Measured: the 103, 382 and 469 s medians and the 43.3% baseline MFU (Table 2). The report says the slowest global all-reduces took up to 2 times the median (Section 3.2), so 938 s is our "bad day". Other H values keep the same all-reduce time, which the report did not measure.
Suppose you add a fourth route and measure a median all-reduce of 760 seconds. Use the formula: 2,280 / (2,280 + 760) = 2,280 / 3,040 = 0.75. The GPUs compute 75% of the time. The MFU would be about 43.3 × 0.75 = 32.5%. Is that acceptable? It depends on the price of a GPU hour. At 75%, one GPU hour in four is spent waiting, so the cost of useful compute is 1 / 0.75, or 1.33 times the sticker price.
Now ask the opposite question. What all-reduce time would hold utilization at 90%? Solve U = 0.9: Ta = Tc (1 / U − 1) = 2,280 × 0.111 = 253 seconds. The United States median of 103 seconds clears that bar. The transatlantic median of 382 seconds does not, unless H is raised so that Tc grows. At H = 200 the compute time doubles to 4,560 seconds, and 382 seconds gives 92%. This is the trade of Chapter 1 again: longer rounds hide slower links, and the price is more drift.
A careful reader finds small mismatches, and you should too. Section 3.1 says communication takes “just 2-10% of the total training time”. The table says 4.3% (USA) to 17% (global). The text says 10 minutes of all-reduce for global training, but the table median is 469 s, about 7.8 minutes, and the introduction says 1 to 7. The MFU for the global case is 36.0 in the table, 36.2 in the text and the abstract. None of this changes the story. It does say that the table is the measurement and the prose is a summary.
The spread matters too. Figures 3 and 4 show that all-reduce time varies far more as distance grows. In the global setting, some syncs took up to 2 times the median. A round that hits 938 s drops utilization from 83% to 71%, as the “bad day” chip shows. The authors read this as a reason to keep robust buffering and quantization.
Chapter 5
Follow one pseudo-gradient shard from GPU memory to the wire and back
A node is a server with eight GPUs inside one box, joined by a very fast cable. Think of a restaurant kitchen with eight cooks at one long counter. The cooks pass plates at arm’s length. The restaurant itself trades with other restaurants by slow mail. A good plan keeps the busy passing inside the kitchen and uses the mail rarely.
That plan is the “hybrid FSDP and DiLoCo” of Section 2.3. FSDP rules inside the box. DiLoCo, the local-steps-plus-outer-step method, rules between boxes. This chapter shows what each one holds and who talks to whom.
Training needs more memory than the weights alone. For each parameter the GPU also keeps its gradient and, for Adam, two running averages. In 32-bit that is 4 + 4 + 4 + 4 = 16 bytes per parameter. For 10 billion parameters that is 160 GB. An H100 GPU has 80 GB. So even one GPU cannot hold it. (This is our arithmetic. The report does not state the precision of each piece, so treat 16 bytes as the plain, upper-end case.)
FSDP stands for Fully Sharded Data Parallel. A shard is one slice. FSDP cuts every tensor into 8 slices and gives each GPU one slice of the weights, the gradients and the Adam state. Each GPU permanently holds one eighth, which is 1.25 billion parameters. Before a layer runs, the 8 GPUs briefly share their slices so each sees the whole layer, then drop the extras again. That sharing is a gather. It is why the cable inside the box needs to be fast. The report names it: NVLink/SXM.
Spread 160 GB over 8 GPUs and each holds 20 GB, comfortably inside 80 GB. The rest of the memory is free for the activations, the numbers a forward pass creates.
Every process in PRIME gets two addresses. The local rank says which GPU in the box it is, from 0 to 7. The global rank says which box. Figure 1 of the report draws this as a grid. The paper calls the whole thing the ElasticDeviceMesh: a grid of M GPUs per node and N nodes. Local ranks form the FSDP groups, so they follow the columns. Global ranks form a separate, fault-tolerant data-parallel group, so they follow the rows.
The rule in Section 2.3 is the key: only ranks with the same shard talk across nodes. GPU 3 of node A trades only with GPU 3 of every other node, because those GPUs hold the same slice of the model. GPU 3 never needs to hear from GPU 5, since they hold different slices. So the one big ring of Chapter 3 becomes eight small rings running side by side, one per row.
Each column is a node with 8 GPUs. Each row is a shard of the model. Switch between the two kinds of talk and change the number of nodes.
Layout from Figure 1 and Section 2.3 of the report. Sizes are ours: 10 billion parameters in 8 shards, the int8 payload at 1 byte a number and the ring cost 2(N−1)/N from Chapter 3. The report says the run had up to 14 nodes.
Follow one rank, say GPU 3, at the end of a round. Its shard has 1.25 billion numbers.
The CPU therefore holds three fp32 tensors of the shard: θprev, Δ and the velocity. That is 15 GB per rank and 120 GB per node by our count. The report says only that this takes “additional CPU memory”. A GPU server has plenty, so the GPU memory stays the same as in normal training. That was the design goal.
Why does only the CPU hold the outer state? Because the outer step runs once per 38 minutes, so it can afford to be slow. The GPU memory is the scarce resource, and the inner steps need all of it. Moving the rare, big, slow job to the roomy CPU memory keeps the busy job unchanged. It is the same logic as keeping the chatty traffic inside the box.
The report explains in Section 2.4.1 that data parallel suits a shifting crowd for three reasons. An all-reduce works with any number of participants. Ranks can be given out in any order, because everyone is treated alike. And every node holds a full replica, so no one has a special piece that is lost when they leave. Splitting the model itself across nodes would break all three. The next chapter builds on this.
Chapter 6
Watch heartbeats evict a dead node and a new node join mid-run
Imagine a rowing crew where seats are volunteers. Some arrive in the middle of a race. Some stop rowing without warning. The boat must keep moving, and the crew must never row in circles because half of them think a seat is empty and half think it is full.
INTELLECT-1 was that boat. Thirty independent providers lent machines. Figure 5 of the report shows the count of active nodes starting at 4 and growing to 14, with many small changes on the way. A training run that needs all machines to stay alive for 42 days would never finish. So PRIME treats leaving and joining as normal events.
Every running node starts a small side process that sends a heartbeat to the master key-value store every 2 seconds. A key-value store is a shared notice board where each machine writes a note under its name. If a node’s note does not refresh for 6 seconds, the others evict it from the process group (the list of machines in the current all-reduce).
There are two ways to leave. In a graceful exit, the node writes a “deathrattle” note and is removed at once, without waiting. In a crash, the node cannot write anything. The report says it makes a best-effort deathrattle just before a crash. If that fails, the heartbeat timeout is the fallback.
Say heartbeats go out at 0, 2, 4, 6 seconds, and a node crashes at 5.3 s. Its last heartbeat was at 4 s. Six seconds later, at 10 s, it is evicted. The delay from the crash is 4.7 seconds. If it had crashed at 4.1 s, just after a heartbeat, the delay would be 5.9 s. If it had crashed at 5.9 s, just before the next one, the delay would be 4.1 s. So a crash is noticed 4 to 6 seconds after it happens (our arithmetic from the two numbers in Section 2.4.3). Try it.
Pick an event. Each tick is a heartbeat from one node. Drag the slider to change when the event happens, and read when the rest of the crew finds out.
Measured by the report: a heartbeat every 2 s, eviction after 6 s of silence, an immediate removal on a deathrattle, 30 to 60 minutes for a checkpoint transfer, and new nodes added "every few days". Our assumptions: heartbeats at even seconds, 12 active nodes, and a join every 3 days.
A new machine has no model. It must copy the current weights and the optimizer state, called the checkpoint, from a live peer. There is no central file server. The newcomer downloads straight from any active node. The report describes two ways to do it.
In non-blocking sync, training continues while the download runs. The newcomer then skips the rest of that round of inner steps, and joins at the next outer step with zero pseudo-gradients (it has nothing to add yet). This wastes no cluster time. In blocking sync, all active nodes pause until the download ends. That is safe but costs everyone’s time.
Which one did the run use? Blocking. The report says non-blocking worked and caused no instability, but the authors saw “small loss spikes in the new joiners’ initial steps”. New nodes were rare, about every few days, and a transfer finished within 30 to 60 minutes. So they paid for safety. Here is the price: a 45-minute pause once every 3 days is 0.75 hours out of 72, about 1.0% of the time. With 12 nodes active, that is 9 node-hours each time. A real price, but a small one.
A joining node arrives with a full copy of the model, but it has not trained on this round’s data. If it simply joined the average, its stale weights would drag the result back. The report’s answer for the non-blocking case is to give it a pseudo-gradient of zero for the round it missed, then let it train normally from the next round. The report does not say whether the divisor of the average counts the newcomer, so we do not claim either reading.
Compare with a leaver. When a node is removed, the all-reduce simply sums fewer pseudo-gradients. Data parallelism has no special roles, so nothing else needs repair. This is the property Chapter 5 listed. Each node holds the same full model, and the sum works with any group size.
A node can die during a ring all-reduce. PRIME then retries without it. It excludes the failed node and finishes the operation with the healthy ones. The hard case is a failure that hits only some of a node’s eight processes. Those processes may then disagree about who is alive, with misaligned timeouts and, in the authors’ words, behaviour that is not defined at all. Each shard group also has its own TCP store (the notice board), which keeps traffic local but makes it harder to keep every board in agreement. The report is candid that the timeout values are set by experiment, and that consistent timeouts “remain an open challenge”.
One failure the system did not absorb: losing 4 of 12 nodes at once. The authors saw that this hurt stability and chose to resume from a checkpoint. They call such events rare. Slow churn is fine for this design. A sudden loss of a third of the fleet is not.
Chapter 7
Pick the order of nodes that keeps the slowest link as fast as possible
Fourteen servers in homes, offices and data centers want to form a ring. None of them sits on the same private network. Each sits behind a router, with its own address and its own firewall. Before any ring can turn, every machine must be able to find and call every other machine. And once it turns, it must turn at a decent speed.
The communication library the run used, Gloo (an open-source library for collective operations such as all-reduce), needs every process to be reachable on a private network interface. The authors solved that with a shared VPN, a virtual private network: software that makes machines far apart look as if they share one private network, and encrypts the traffic. They used Tailscale, a service built on WireGuard (a modern VPN protocol).
A side benefit came from the design of Chapter 5. Each rank has its own process group, so the nodes could open many connections at once, one per rank. The report says this “seems to have provided a noticeable increase in the communication bandwidth”. It gives no number. A common reason is that one TCP connection (the basic reliable stream of the internet) often cannot fill a long, fast path by itself, but eight can. That reason is our explanation, not the report’s.
In the first days the authors noticed that bandwidth between two nodes “might suddenly become slow randomly and for no apparent reason”. They also saw Tailscale beat ordinary internet routing on some paths and lose on others, which they link to routing choices under BGP (the protocol that decides how internet traffic travels between networks). In the end Tailscale became a bottleneck, especially between continents. They suggest a library that works over public IP addresses, as Hivemind does (Ryabinin et al., 2020).
Recall Chapter 3. In every step of a ring all-reduce, each node sends a chunk to its neighbour and waits for a chunk from the other side. A step ends when the slowest transfer ends. So the whole ring runs at the speed of its slowest link, called the bottleneck. Let w be the bandwidth of that link, B the message in bytes and N the number of nodes. Then:
A worked case: N = 7, B = 10 GB, which is 80 Gb. The factor 2 × 6 / 7 times 80 Gb is 137 Gb. If the slowest link is 0.5 Gb/s, then t = 274 seconds. If the slowest is 2 Gb/s, then t = 69 seconds. Same machines, same message, four times faster, only because the ring visits the nodes in a better order.
A ring is just an order in which nodes pass chunks. Different orders use different links. So PRIME runs a background process that keeps measuring the bandwidth between every pair of nodes. It then picks the order that makes the slowest link in the ring as fast as possible. The report writes this as
It is a cousin of the Traveling Salesperson Problem. The count of rings is (N − 1)!/2. For 7 nodes that is 360, which our toy checks by brute force in a blink. For 14 nodes it is 3,113,510,400, so a smarter search is needed. The report does not say how it searches.
Seven nodes with random link speeds. The ring is drawn in bold. Switch between the order in which nodes joined and the best order. Then slow one link in the ring and watch the best ring route around it.
Toy speeds, random between 0.5 and 4 Gb/s (the range the report gives for its links), seeded so the first picture is the same each visit. The search is brute force over all 360 rings. The time uses the formula above with a 10 GB message.
Press Best order. The bold ring avoids the weakest links, and the bottleneck rises. Then press Slow one ring link: one link in the current ring falls to 0.3 Gb/s. Switch back to Best order and the ring re-routes. That is the report’s fix for links that go bad. The background measuring never stops, so the order can change when a link slows or a node leaves.
One more practical point follows from Chapter 4. The bottleneck link also sets how bad a bad day is. If a single link in the ring drops from 2 Gb/s to 0.3 Gb/s for ten minutes, a ring that cannot route around it stretches a 70-second all-reduce to over 450 seconds (by the formula above, our arithmetic). Because a round is 38 minutes of compute, one slow sync adds roughly 390 extra seconds, more than 15% on top of that round. A ring that re-orders itself within a round or two keeps such events rare.
Section 2.6 says the run showed a need to replace the usual stack of communication software for the internet, because data-center libraries serve very different needs. The authors began a library called PCCL, the Prime Collective Communications Library. It uses a custom TCP-based protocol named “Collective Communications over IP”, and aims to handle peers joining and leaving, to sync shared state, and to optimize the topology by bandwidth. At the time of the report it was work in progress.
Chapter 8
Read the data mix, the curves and the benchmark tables without overclaiming
After 42 days and a trillion tokens, what came out? A model. It is a decent, ordinary model for its size, and that is the point. The achievement is not the score. It is that the score came from machines in different countries, some of which came and went, with 83% of the time spent computing.
INTELLECT-1 follows the Llama 3 design. Table 5 gives 42 layers, a hidden width of 4,096, 32 attention heads, 8 key/value heads, a vocabulary of 128,256 tokens and a sequence length of 8,192. It differs from Llama 3 8B only in having more layers (42 instead of 32). By our count that adds up to about 10.2 billion parameters, assuming the same feed-forward width as Llama 3 8B, 14,336. The report rounds to 10B.
Training used the inner AdamW rate 7.5e-5 with 1,000 warm-up steps, a constant stretch, then an anneal (a gradual cool-down to a low rate) over the last 20%. This is the WSD schedule: warm-up, stable, decay. (The report spells the first letter out as “weight-space decay”, but its Figure 6 labels the phases warm-up, stable and annealing, so we read it as warm-up, stable, decay.) A schedule with a long flat part suits this run because the number of tokens was open-ended: the authors could choose to start the anneal when enough compute had joined. The outer step used Nesterov with rate 0.7 and momentum 0.9, as Chapter 2 showed. A small extra loss, the max z-loss with weight 2e-4, penalised very large output scores to keep training stable.
Table 1 lists five sources. Most of the mix is FineWeb-Edu (55%), a filtered set of educational web pages. Then StackV1-popular code (20%), FineWeb (10%), DCLM-baseline (10%) and OpenWebMath (5%). Over 6 trillion tokens were available, and the run used 1 trillion. When the anneal began at step 74,700, about 80% of the way through, the mix changed: FineWeb-Edu rose to 80%, and DCLM and OpenWebMath went to 0. The authors say they shifted weight toward segments with higher loss, since code had much lower loss than text.
Figure 5 shows the node count rising from 4 to 14. Figure 6 shows perplexity (a measure of how surprised the model is by text; lower is better) falling steadily, with a bump when the data mix changed. The authors call the convergence stable “despite significant dynamic on-/off-boarding of compute”.
One number puzzled us, and checking it is good practice. Table 5 gives a batch size of 128 and a sequence length of 8,192, which is 1,048,576 tokens. A trillion tokens at that size would take about 954,000 steps. Yet the plots end near step 93,000 (74,700 is 80%). A reading that fits: the batch of 128 is per node. With about 10 nodes active, each step covers about 10.5 million tokens, and a trillion tokens needs about 95,000 steps. That matches. It is our reading, since the report does not say it.
The base model then became a chat model in three stages with Arcee AI’s tools. First, 16 supervised fine-tuning runs (training on example conversations) of 1 to 3.3 billion tokens each, the best using 2.4 billion tokens for 3 epochs. Second, 8 runs of DPO (direct preference optimization, which trains the model to prefer good answers over bad ones from pairs). Third, 16 merges of candidate models. Because INTELLECT-1 uses the Llama 3 tokenizer, the authors could distill from the logits (raw scores) of Llama 3.1 405B. One practical lesson: with a generic ChatML template and no begin-of-sequence token, the starting loss was about 15; with the Llama 3.1 chat template it started near 1.1.
The device below holds Tables 3 and 4. Choose base or instruct and a benchmark. Bars are sorted from best to worst, and INTELLECT-1 is drawn in teal.
Pick the base model table (Table 3) or the instruction-tuned table (Table 4), then a benchmark. Each bar is a score from the report.
All scores are copied from Tables 3 and 4 of the report. The other models were trained centrally, on different data, for different token counts (labelled on each bar). The benchmarks are not all measured on the same scale, so compare bars within one benchmark only.
Look at MMLU in the base table. INTELLECT-1 scores 37.5. That is above MPT-7B (26.8), Falcon-7B (26.2) and Pythia-12B (26.5), and close to LLaMA-7B at 35.1, which also saw 1 trillion tokens. It is far from LLaMA2-13B at 54.8 on 2 trillion. On HellaSwag it sits below every model except Pythia-12B. Now flip to instruct. On GSM8K, a grade-school math test, INTELLECT-1-Instruct scores 38.58, higher than LLaMA2-7B-chat (23.96) and LLaMA2-13B-chat (37.15). On IFEval, it scores 40.39, below both LLaMA2 chat models.
Be careful about what these tables prove. The abstract says the method delivers performance “comparable” to traditional data parallel training. But the report contains no control run: no centralized training of the same model on the same data with the same budget. The comparison is with other published models trained with other data. The report also has no sweep over H, no ablation of the outer optimizer, and no run with 32-bit pseudo-gradients. For those, the report leans on earlier work (Douillard et al., 2024; Jaghouar et al., 2024). The authors write that the benchmarks are “promising” and give “strong evidence” that DiLoCo scales to 10B. Read that as evidence of feasibility, not a controlled proof of equal quality. They also say the model “still lags” the best models trained on ten times more tokens.
The report’s last pages argue for more open, community-pooled training and note how Bitcoin’s network grew to over 10 gigawatts in 12 years. That is the authors’ view of where this could go. The experiment itself shows that the pieces work at 10B, on 14 nodes.
Chapter 9
Keep the numbers, the checklist, the code and the way onward
You can now rebuild the INTELLECT-1 report from memory: why the internet breaks ordinary data parallel training, how local steps and an outer optimizer cut the talk, how int8 shrinks each message, how the mesh keeps the busy traffic inside the node, how heartbeats keep the crew honest, how the best ring hides the slow links, and what the finished model does and does not prove. This page keeps the numbers, the words, a checklist and the core code in one place.
Training a 10B model on strangers’ GPUs fails if every step syncs a 40 GB gradient over a 0.5 to 4 Gb/s link. PRIME instead lets each node (8 GPUs, sharded with FSDP2) train alone for H = 100 inner steps with AdamW. It then forms the pseudo-gradient (start weights minus end weights), quantizes it to int8 (±6σ, 256 buckets), and all-reduces it around a bandwidth-optimised ring with fp32 accumulation. A Nesterov outer optimizer (rate 0.7, momentum 0.9) turns the average into the next shared weights. Heartbeats evict dead nodes in 6 s, and new nodes copy a checkpoint from a peer. The result sends 400 times fewer bytes than syncing every step in 32-bit, keeps 83% to 96% of the time for compute, and gave a model that scores in line with its size class.
| What | Number | Why it matters |
|---|---|---|
| The run | 10B parameters, 1T tokens, 42 days, up to 14 nodes (112 H100s), 30 providers | The scale of the first globally pooled run of this size |
| Model | Llama 3 layout, 42 layers, width 4,096, 8,192 context | Only the layer count differs from Llama 3 8B |
| Links | 0.5 to 4 Gb/s between nodes, against 3.2 Tb/s InfiniBand | Communication, not compute, is the limit |
| Local steps | H = 100 inner steps, 38 minutes | One meeting per 38 minutes of compute |
| Optimizers | Inner AdamW 7.5e-5; outer Nesterov 0.7, momentum 0.9 | The DiLoCo recipe, kept as is |
| Int8 quantizer | ±6σ, 256 buckets, bucket-mean codebook, fp32 sums | 4 times fewer bytes, no rounding drift in the sums |
| Traffic saving | 4 × H = 400 (2,000 at H = 500) | Two savings multiply |
| All-reduce, median | 103 s (US), 382 s (US+EU), 469 s (global) | Distance raises both the median and the spread |
| Compute utilization | 95.7%, 85.6%, 83.0% | 2,280 / (2,280 + all-reduce) |
| MFU | 41.4%, 37.1%, 36.0% against 43.3% with no communication | Baseline MFU times the utilization |
| Fault tolerance | Heartbeat 2 s, evict at 6 s; blocking join 30 to 60 min | About 1% of time for joins every 3 days (our estimate) |
| Base model scores | MMLU 37.5, HellaSwag 72.26, ARC-C 52.13, GSM8K 8.1 | In line with LLaMA-7B on 1T tokens |
| Instruct scores | MMLU 49.89, GSM8K 38.58, IFEval 40.39 | After 16 SFT runs, 8 DPO runs, 16 merges |
| Word | Plain meaning | Chapter |
|---|---|---|
| All-reduce | Every machine ends with the sum or average of everyone’s numbers | 0, 3 |
| Bandwidth | Bits a link carries per second; a wider pipe | 0 |
| Inner step, H | One private training step; H of them between meetings | 1 |
| Pseudo-gradient | The average distance the nodes walked in a round | 2 |
| Outer optimizer | The rule that turns the pseudo-gradient into a shared step, here Nesterov | 2 |
| int8, codebook | One byte per number; a table that maps bytes back to values | 3 |
| Compute utilization | Share of time not spent communicating | 4 |
| MFU | Needed arithmetic divided by the chips’ peak arithmetic | 4 |
| FSDP, shard | Each GPU holds one slice of weights, gradients and optimizer state | 5 |
| Heartbeat, deathrattle | A note every 2 s saying “alive”; a final note saying “leaving” | 6 |
| VPN, Gloo | A private network over the internet; the library that runs the all-reduce | 7 |
| Bottleneck link | The slowest link in the ring, which sets the speed | 7 |
This is a sketch of one outer step on one rank, with the shapes in comments. The helper names (quantize, ring_all_reduce_int8, best_ring) stand for the pieces described above. It is our reading of Sections 2.1 to 2.5, not the authors’ code.
pythondef train_round(model, cpu, mesh, H=100): for _ in range(H): # inner loop: FSDP inside the node, no internet loss = forward(model, next(batches)) # tokens [128, 8192] per node loss.backward(); inner_opt.step(); inner_opt.zero_grad() # AdamW, lr 7.5e-5 shard = flat(model.local_shard()).cpu() # fp32 [1.25e9] on this rank delta = cpu.theta_prev - shard # pseudo-gradient, 5 GB codes, book = quantize(delta, k=6, buckets=256) # uint8 [1.25e9] + fp32 [256] delta = ring_all_reduce_int8( # sum in fp32, ship int8 codes, book, group=mesh.same_shard_ranks(), order=best_ring()) / mesh.n_nodes cpu.v = 0.9 * cpu.v + delta # Nesterov, PyTorch form cpu.theta_prev -= 0.7 * (delta + 0.9 * cpu.v) model.local_shard().copy_(cpu.theta_prev.cuda()) # other shards arrive by FSDP gather def heartbeat(store, me): # side process on every node while alive: store.set(me, now()); sleep(2) # peers evict after 6 s of silence
INTELLECT-1 follows DiLoCo (Douillard et al., 2024) and its open reproduction OpenDiLoCo (Jaghouar et al., 2024), which the report cites for the evidence that the algorithm converges. This report adds the engineering for scale: int8, the hybrid mesh, fault tolerance and the ring. The Core Automation post lists it in its timeline of the large-model era as the December 2024 run, followed by Streaming DiLoCo and later work. The report’s limits are plain: one run, no centralized control, no ablation of H or of int8, a Tailscale layer that the authors say hurt intercontinental speed, and a design that tolerates slow churn but not the sudden loss of a third of the fleet.
Credit: INTELLECT-1 Technical Report by Sami Jaghouar, Jack Min Ong, Manveer Basra, Fares Obeid, Jannik Straube, Michael Keiblinger, Elie Bakouch, Lucas Atkins, Maziyar Panahi, Charles Goddard, Max Ryabinin and Johannes Hagemann (Prime Intellect, Hugging Face, Arcee AI and Together AI), arXiv 2412.01152, December 2024. Read the paper. The model, data and PRIME code are released by the authors. This lesson re-teaches the report in our own words; every unlabelled number is from the report, and the arithmetic labelled "ours" is not.
Now press Present or Teach and explain the run from memory: why syncing every step fails, what the pseudo-gradient is, how int8 and H multiply to 400, who talks to whom in the mesh, how a crash is noticed, and why the ring order matters. Then go back to the instrument at the top, pick the global route, and explain each of the three bars to a friend.