Sharding Weights Across GPUs
Start Timer
0:00:00
Four GPUs train a model with many layers. Each GPU normally stores a quarter of each layer’s weights. To run a layer, it fetches the other three quarters and releases them afterward.
Your teammate says, “While a GPU is running a layer, it still needs all of that layer’s weights.”
If your teammate is right, how can sharding help a model fit in GPU memory, and what does the GPU have to do each time it runs a layer to get that benefit?
.
.
.
.
.
.
.
.
.
Comments