torchrec
torchrec copied to clipboard
Pytorch domain library for recommendation systems
Summary: EmbeddingEnumerator.enumerate() is O(N^2) with respect to the number of tables. For large models (5000 tables), this is very noticeable. This diff fixes the N^2 problem by constructing our sharding_options...
Summary: As titled Reviewed By: tissue3 Differential Revision: D51864844
Differential Revision: D50840897
Differential Revision: D51309697 Privacy Context Container: L1138451
In pytorch embedding module, it has scale_grad_by_freq option, to scale gradients by the inverse of frequency of the words in the mini-batch. I am thinking if this is also doable...
Provide implicit pipelining in TorchRec by using streams. StreamSyncTensor will continue on its current stream if all the incoming tensors are StreamSync tensors on that Stream. Otherwise it will sync...
Differential Revision: D51504888
Summary: Fix issue with https://fb.workplace.com/groups/1069285536500339/permalink/6853872844708217/ Differential Revision: D51479073
Summary: See https://docs.google.com/document/d/1hVIMaR6h8S7neMIeTQ3Y5pMKUTiU5IekEANklkABRnk/edit Reviewed By: ezyang Differential Revision: D51312623