Model Sharding
What is Model Sharding?
In one sentence: Model sharding splits a model's weights into pieces, called shards, that are stored or run on different devices or files.
Big models do not fit on one GPU, so they are split across several. Model files are also often saved as several shards to make downloading easier.
What does Model Sharding look like?
A 70B model might be sharded across 4 GPUs, each holding about a quarter of the weights.
Why does Model Sharding matter?
Sharding is how giant models run on many machines.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/model-sharding/">Model Sharding, explained simply</a> (The AI Math Dictionary)