You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add load checkpoint support for virtual table (#4250)
Summary:
X-link: pytorch/torchrec#3037
X-link: facebookresearch/FBGEMM#1329
Pull Request resolved: #4250
after all of the rebasing and landing, the trunk still missed some of the needed changes for checkpoint loading:
* change `create_virtual_table_global_metadata` to respect local_weight_count on each rank, or just use the param size as number of rows on each rank
* register register_load_state_dict_post_hook in ShardedEmbeddingCollection to let it ignore loading the weight tensor
Reviewed By: emlin
Differential Revision:
D75843542
Privacy Context Container: L1138451
fbshipit-source-id: 8b3c8d76bb2e7ba2137c8899de2c03d534f1365c
0 commit comments