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
chunking opt split and fix duplicate flush (#3042)
Summary:
Pull Request resolved: #3042
X-link: pytorch/FBGEMM#4260
X-link: facebookresearch/FBGEMM#1338
changesets
1. in ZeroCollisionKeyValueEmbedding, we force flush when calling split_embedding_weights, remove that to utilize the cached weights on the same global step.
2. on split embedding optimizer, rocksdb has to read the whole value part(embedding + optimizer) out into dram, without chunking we essentially read everything into dram at once(temporarily huge mem spike), with chunk loading, we could keep mem spike low.
Reviewed By: steven1327, emlin
Differential Revision: D75988991
fbshipit-source-id: 414fab2aad45e05e1da12f95a7ab99fb82c4f8aa
0 commit comments