Sharded Training
A model with seventy billion parameters does not fit on one GPU, and the bookkeeping that training it requires is several times larger still. Sharded training is the answer that does not involve waiting for a bigger GPU: cut the state into pieces and give each device one piece.
What actually gets splitTraining memory is three things — the weights, their gradients, and the optimiser's running moments, two per parameter for Adam, which is why the bill is a multiple of the model size. Sharded training partitions all three across devices. Every GPU still runs the full model on its own slice of the batch, but stores only 1/N of the state: before a layer executes, the shards for that layer are gathered over the interconnect, used, and discarded. This is ZeRO in DeepSpeed and FSDP in PyTorch.
What it costs- Communication replaces memory. Every step pushes parameters and gradients across the network, so NVLink or InfiniBand bandwidth becomes the ceiling instead of capacity.
- The stages trade one against the other: sharding optimiser state alone is nearly free, sharding weights as well saves the most and talks the most.
- Spilling shards to CPU memory stretches a small cluster further at a steep latency cost.
Keep it distinct from tensor and pipeline parallelism, which split the computation — one layer across devices, or the stack into stages. Sharding splits the state while each device computes the whole model. It is how open models are trained and fine-tuned today: a LoRA run on a 70B model over eight consumer cards is a sharded run, and without it that job simply reports out of memory.
Sharded training splits a model's weights, gradients and optimiser state across many devices so no single GPU holds the whole thing. Each device runs the full model on its own slice of data, gathering a layer's shards over the interconnect just before it is needed and releasing them afterwards. Implemented as ZeRO in DeepSpeed and FSDP in PyTorch, it trades network bandwidth for memory capacity, and it is what makes training or fine-tuning a multi-billion-parameter model possible at all.
Imagine a jigsaw far too big for any one table. The fix is not a bigger table — it is twenty tables, each holding a few pieces, with people passing pieces across as the picture comes together.
Sharded training does this when teaching an AI language system. These systems are too large to fit in the memory of a single graphics chip, along with all the working notes that training requires. So the whole thing is sliced up and spread across dozens or thousands of chips, each keeping its own slice and handing it over whenever another chip needs it. The chips spend a lot of time talking to each other, but the job becomes possible at all — which it otherwise would not be.