Tinker Many chips, one model

by Samy (Kondasamy Jayaraman)

4 copies, hop 0 of 6: stand-in gradients, 32 bytes each.

Chapter 2 of 7

Copies and slices of data

The simplest split: every chip trains its own copy of Fernhill 4 on a different slice of each batch.

This chapter: How do copies that saw different data stay the same model?

About this chapter

You will learn

  • How copies share out a batch
  • How a ring averages gradients
  • Why each chip sends about the same

Words you’ll meet

Data parallel
Each chip trains a whole copy of the model on its own slice of the batch.
All-reduce
Every chip ends with the sum (here, the mean) of every chip’s numbers.
Ring
Chips in a loop, each passing to the next: the usual way to all-reduce.

Step 1 of 4

4 chips each train a copy on their own slice of the batch: . Their gradients differ.

Press Step until every bucket is full.