Definitions

How computers for agents work, from the hardware to the sandbox.

Definitionsd

Distributed training

Distributed training splits the training of a model across many accelerators and machines, so that it fits in memory and finishes in reasonable time.

Distributed training spreads one training job across many GPUs or other accelerators. Large models are too big for one accelerator's memory and would take years to train on one. The work is split, and the accelerators exchange results at every step. A large training run can use thousands of accelerators for weeks.

There are several ways to split the work. Data parallelism gives each accelerator a copy of the model and a different part of the data. Model parallelism splits the model itself across accelerators, by layers or within layers. Large runs combine these, and the interconnect between accelerators often limits how fast they go.

Reinforcement learning adds a second distributed system beside the accelerators. While the accelerators train the policy, many sandboxes run its episodes and return trajectories and rewards. The two sides have to keep pace, or expensive accelerators sit idle waiting for results. Large runs therefore start and reset thousands of sandboxes for every training step.