Sharding is the point of FSDP: each rank holds only its portion of the parameters. The memory per rank falls roughly as one over the world size.
Implement fsdp_memory_per_rank(numel, world, nbytes), the bytes of one rank's shard.
Compute the shard size and multiply by bytes per element.
No results yet
Run your code to check it against the examples, or submit to run every test.