torchrec
torchrec copied to clipboard
Add unsharded module reference to sharded modules
Summary:
Adding a simple unsharded module reference to sharded modules. This will be used in Dynamic Sharding by DistributedModelParallel to reshard an already-sharded_module.
As DMP is created with only one-way relationship in mind, accessing the unsharded module type will help determine which sharder to use in 'resharding'.
Differential Revision: D73407830