OSS TorchRec MPZCH Modules #3162
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Major changes
fb
to corresponding location in thetorchrec
repositoryfb/distributed/hash_mc_embedding.py → torchrec/distributed/hash_mc_embedding.py
fb/modules/hash_mc_evictions.py → torchrec/modules/hash_mc_evictions.py
fb/modules/hash_mc_metrics.py → torchrec/modules/hash_mc_metrics.py
fb/modules/hash_mc_modules.py → torchrec/modules/hash_mc_modules.py
fb/modules/tests/test_hash_mc_evictions.py → torchrec/modules/tests/test_hash_mc_evictions.py
fb/modules/tests/test_hash_mc_modules.py → torchrec/modules/tests/test_hash_mc_modules.py
/modules/hash_mc_metrics.py
hash_mc_metrics.py
module to avoid OSS CI test failurestorchrec/fb
folder.unittest.skipif
condition totest_dynamically_switch_inference_training_mode
andtest_output_global_offset_tensor
to skip these tests when GPU is not available.torch/modules/tests/test_hash_mc_modules.py
andtorch/modules/tests/test_hash_mc_evictions.py
fromtorch.fb.modules.hash_mc_*
totorch.modules.hash_mc_*
. And update the BUCK file correspondingly from/torchrec/fb/modules/hash_mc_*
totorchrec/modules/hash_mc_*
Next step
fbpkg
to pick up the Diff and update the existing dependencies on MPZCH modules fromtorchrec/fb/module
totorchrec/modules
.torchrec/fb/module
.Differential Revision: D77825114