Skip to content

Unify hash_mc_evictions.py (#3866)#3866

Open
Ali-Tehrani wants to merge 1 commit intometa-pytorch:mainfrom
Ali-Tehrani:export-D96242594
Open

Unify hash_mc_evictions.py (#3866)#3866
Ali-Tehrani wants to merge 1 commit intometa-pytorch:mainfrom
Ali-Tehrani:export-D96242594

Conversation

@Ali-Tehrani
Copy link
Contributor

@Ali-Tehrani Ali-Tehrani commented Mar 12, 2026

Summary:

Context

The goal is to remove hash_mc_evictions to unify internal with OSS.

Implementation

  • The only difference between internal and OSS, is one assertion statement.
  • Internal is imported in over 100 different places.
  • Inside Internal:
    • Added a simple depreciated warning, and imported from OSS, in this case.
    • Removed the internal tests: fb/modules/tests/test_hash_mc_evictions.py
  • Changed all internal imports for fb/ within TREC to be OSS.
    • External imports will be removed in a seperate diff

Differential Revision: D96242594

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 12, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Mar 12, 2026

@Ali-Tehrani has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96242594.

Ali-Tehrani added a commit to Ali-Tehrani/torchrec that referenced this pull request Mar 12, 2026
Summary:

Context
---------

The goal is to remove hash_mc_evictions to unify internal with OSS.

Implementation
------------------

- The only difference between internal and OSS, is one assertion statement.
- Internal is imported in over 100 different places.
- Inside Internal:
    - Added a simple depreciated warning, and imported from OSS, in this case.
    - Removed the internal tests: `fb/modules/tests/test_hash_mc_evictions.py`
- Changed all internal imports for fb/ within TREC to be OSS.
    - External imports will be removed in a seperate diff

Differential Revision: D96242594
Ali-Tehrani added a commit to Ali-Tehrani/torchrec that referenced this pull request Mar 12, 2026
Summary:

Context
---------

The goal is to remove hash_mc_evictions to unify internal with OSS.

Implementation
------------------

- The only difference between internal and OSS, is one assertion statement.
- Internal is imported in over 100 different places.
- Inside Internal:
    - Added a simple depreciated warning, and imported from OSS, in this case.
    - Removed the internal tests: `fb/modules/tests/test_hash_mc_evictions.py`
- Changed all internal imports for fb/ within TREC to be OSS.
    - External imports will be removed in a seperate diff

Differential Revision: D96242594
Ali-Tehrani added a commit to Ali-Tehrani/torchrec that referenced this pull request Mar 12, 2026
Summary:

Context
---------

The goal is to remove hash_mc_evictions to unify internal with OSS.

Implementation
------------------

- The only difference between internal and OSS, is one assertion statement.
- Internal is imported in over 100 different places.
- Inside Internal:
    - Added a simple depreciated warning, and imported from OSS, in this case.
    - Removed the internal tests: `fb/modules/tests/test_hash_mc_evictions.py`
- Changed all internal imports for fb/ within TREC to be OSS.
    - External imports will be removed in a seperate diff

Differential Revision: D96242594
Ali-Tehrani added a commit to Ali-Tehrani/torchrec that referenced this pull request Mar 12, 2026
Summary:

Context
---------

The goal is to remove hash_mc_evictions to unify internal with OSS.

Implementation
------------------

- The only difference between internal and OSS, is one assertion statement.
- Internal is imported in over 100 different places.
- Inside Internal:
    - Added a simple depreciated warning, and imported from OSS, in this case.
    - Removed the internal tests: `fb/modules/tests/test_hash_mc_evictions.py`
- Changed all internal imports for fb/ within TREC to be OSS.
    - External imports will be removed in a seperate diff

Differential Revision: D96242594
Summary:

Context
---------

The goal is to remove hash_mc_evictions to unify internal with OSS.

Implementation
------------------

- The only difference between internal and OSS, is one assertion statement.
- Internal is imported in over 100 different places.
- Inside Internal:
    - Added a simple depreciated warning, and imported from OSS, in this case.
    - Removed the internal tests: `fb/modules/tests/test_hash_mc_evictions.py`
- Changed all internal imports for fb/ within TREC to be OSS.
    - External imports will be removed in a seperate diff

Differential Revision: D96242594
@meta-codesync meta-codesync bot changed the title Unify hash_mc_evictions.py Unify hash_mc_evictions.py (#3866) Mar 12, 2026
Ali-Tehrani added a commit to Ali-Tehrani/torchrec that referenced this pull request Mar 13, 2026
Summary:

Context
---------

The goal is to remove hash_mc_evictions to unify internal with OSS.

Implementation
------------------

- The only difference between internal and OSS, is one assertion statement.
- Internal is imported in over 100 different places.
- Inside Internal:
    - Added a simple depreciated warning, and imported from OSS, in this case.
    - Removed the internal tests: `fb/modules/tests/test_hash_mc_evictions.py`
- Changed all internal imports for fb/ within TREC to be OSS.
    - External imports will be removed in a seperate diff

Differential Revision: D96242594
Ali-Tehrani added a commit to Ali-Tehrani/torchrec that referenced this pull request Mar 13, 2026
Summary:

Context
---------

The goal is to remove hash_mc_evictions to unify internal with OSS.

Implementation
------------------

- The only difference between internal and OSS, is one assertion statement.
- Internal is imported in over 100 different places.
- Inside Internal:
    - Added a simple depreciated warning, and imported from OSS, in this case.
    - Removed the internal tests: `fb/modules/tests/test_hash_mc_evictions.py`
- Changed all internal imports for fb/ within TREC to be OSS.
    - External imports will be removed in a seperate diff

Differential Revision: D96242594
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant