Skip to content

Conversation

@lizhouyu
Copy link
Contributor

Summary:

Major changes

  • Copy the following files from fb to corresponding location in the torchrec repository
    • fb/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
  • Update BUCK files in related folders
  • Update the affected repos to use torchrec modules instead of the modules in torchrec.fb
  • Update /modules/hash_mc_metrics.py
    • Replace the tensorboard module with a local file logger in hash_mc_metrics.py module
  • Update the license declaration headers for the four OSS files
  • Add Non-GPU skip condition check for the test test_dynamically_switch_inference_training_mode in torchrec/modules/tests/test_hash_mc_modules.py.
  • Rewrite downstream codes' dependencies to MPZCH modules with the open sourced one (from "//torchrec/fb/modules:hash_mc_*" to "//torchrec/modules:hash_mc_*", and from torch.fb.modules.hash_mc_* to torch.modules.hash_mc_*, except for files in the following paths: dper_lib,torchrec/fb,minimal_viable_ai,~ to avoid breaking mvai cogwheel tests.

ToDos after landing this Diff

  • Clean the duplicated hash_mc_*.py file in the fb folder for safe landing.

Differential Revision: D77558442

@facebook-github-bot facebook-github-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 Jun 30, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

lizhouyu added a commit to lizhouyu/torchrec that referenced this pull request Jun 30, 2025
Summary:
Pull Request resolved: meta-pytorch#3147

Pull Request resolved: meta-pytorch#3089

Pull Request resolved: meta-pytorch#3017

### Major changes
- Copy the following files from `fb` to corresponding location in the `torchrec` repository
  - `fb/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`
- Update `BUCK` files in related folders
- Update the affected repos to use `torchrec` modules instead of the modules in `torchrec.fb`
- Update `/modules/hash_mc_metrics.py`
  - Replace the tensorboard module with a local file logger in `hash_mc_metrics.py` module
- Update the license declaration headers for the four OSS files
- Add Non-GPU skip condition check for the test `test_dynamically_switch_inference_training_mode` in `torchrec/modules/tests/test_hash_mc_modules.py`.
- Rewrite downstream codes' dependencies to MPZCH modules with the open sourced one (from `"//torchrec/fb/modules:hash_mc_*"` to `"//torchrec/modules:hash_mc_*"`, and from `torch.fb.modules.hash_mc_*` to `torch.modules.hash_mc_*`, except for files in the following paths: `dper_lib,torchrec/fb,minimal_viable_ai,~` to avoid breaking mvai cogwheel tests.

### ToDos after landing this Diff
- Clean the duplicated `hash_mc_*.py` file in the `fb` folder for safe landing.

Differential Revision: D77558442
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

lizhouyu added a commit to lizhouyu/torchrec that referenced this pull request Jun 30, 2025
Summary:
Pull Request resolved: meta-pytorch#3147

Pull Request resolved: meta-pytorch#3089

Pull Request resolved: meta-pytorch#3017

### Major changes
- Copy the following files from `fb` to corresponding location in the `torchrec` repository
  - `fb/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`
- Update `BUCK` files in related folders
- Update the affected repos to use `torchrec` modules instead of the modules in `torchrec.fb`
- Update `/modules/hash_mc_metrics.py`
  - Replace the tensorboard module with a local file logger in `hash_mc_metrics.py` module
- Update the license declaration headers for the four OSS files
- Add Non-GPU skip condition check for the test `test_dynamically_switch_inference_training_mode` in `torchrec/modules/tests/test_hash_mc_modules.py`.
- Rewrite downstream codes' dependencies to MPZCH modules with the open sourced one (from `"//torchrec/fb/modules:hash_mc_*"` to `"//torchrec/modules:hash_mc_*"`, and from `torch.fb.modules.hash_mc_*` to `torch.modules.hash_mc_*`, except for files in the following paths: `dper_lib,torchrec/fb,minimal_viable_ai,~` to avoid breaking mvai cogwheel tests.

### ToDos after landing this Diff
- Clean the duplicated `hash_mc_*.py` file in the `fb` folder for safe landing.

Differential Revision: D77558442
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

lizhouyu added a commit to lizhouyu/torchrec that referenced this pull request Jul 1, 2025
Summary:
Pull Request resolved: meta-pytorch#3147

Pull Request resolved: meta-pytorch#3089

Pull Request resolved: meta-pytorch#3017

### Major changes
- Copy the following files from `fb` to corresponding location in the `torchrec` repository
  - `fb/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`
- Update `BUCK` files in related folders
- Update the affected repos to use `torchrec` modules instead of the modules in `torchrec.fb`
- Update `/modules/hash_mc_metrics.py`
  - Replace the tensorboard module with a local file logger in `hash_mc_metrics.py` module
- Update the license declaration headers for the four OSS files
- Add Non-GPU skip condition check for the test `test_dynamically_switch_inference_training_mode` in `torchrec/modules/tests/test_hash_mc_modules.py`.
- Rewrite downstream codes' dependencies to MPZCH modules with the open sourced one (from `"//torchrec/fb/modules:hash_mc_*"` to `"//torchrec/modules:hash_mc_*"`, and from `torch.fb.modules.hash_mc_*` to `torch.modules.hash_mc_*`, except for files in the following paths: `dper_lib,torchrec/fb,minimal_viable_ai,~` to avoid breaking mvai cogwheel tests.

### ToDos after landing this Diff
- Clean the duplicated `hash_mc_*.py` file in the `fb` folder for safe landing.

Differential Revision: D77558442
@lizhouyu lizhouyu force-pushed the export-D77558442 branch from 7a2ab18 to 9d13e6e Compare July 1, 2025 00:14
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

lizhouyu added a commit to lizhouyu/torchrec that referenced this pull request Jul 1, 2025
Summary:
Pull Request resolved: meta-pytorch#3147

Pull Request resolved: meta-pytorch#3089

Pull Request resolved: meta-pytorch#3017

### Major changes
- Copy the following files from `fb` to corresponding location in the `torchrec` repository
  - `fb/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`
- Update `BUCK` files in related folders
- Update the affected repos to use `torchrec` modules instead of the modules in `torchrec.fb`
- Update `/modules/hash_mc_metrics.py`
  - Replace the tensorboard module with a local file logger in `hash_mc_metrics.py` module
- Update the license declaration headers for the four OSS files
- Add Non-GPU skip condition check for the test `test_dynamically_switch_inference_training_mode` in `torchrec/modules/tests/test_hash_mc_modules.py`.
- Rewrite downstream codes' dependencies to MPZCH modules with the open sourced one (from `"//torchrec/fb/modules:hash_mc_*"` to `"//torchrec/modules:hash_mc_*"`, and from `torch.fb.modules.hash_mc_*` to `torch.modules.hash_mc_*`, except for files in the following paths: `dper_lib,torchrec/fb,minimal_viable_ai,~` to avoid breaking mvai cogwheel tests.

### ToDos after landing this Diff
- Clean the duplicated `hash_mc_*.py` file in the `fb` folder for safe landing.

Differential Revision: D77558442
@lizhouyu lizhouyu force-pushed the export-D77558442 branch from 9d13e6e to 137821c Compare July 1, 2025 00:20
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

lizhouyu added a commit to lizhouyu/torchrec that referenced this pull request Jul 1, 2025
Summary:
Pull Request resolved: meta-pytorch#3147

Pull Request resolved: meta-pytorch#3089

Pull Request resolved: meta-pytorch#3017

### Major changes
- Copy the following files from `fb` to corresponding location in the `torchrec` repository
  - `fb/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`
- Update `BUCK` files in related folders
- Update the affected repos to use `torchrec` modules instead of the modules in `torchrec.fb`
- Update `/modules/hash_mc_metrics.py`
  - Replace the tensorboard module with a local file logger in `hash_mc_metrics.py` module to avoid OSS CI test failures
  - The original tensorboard version is kept in the `torchrec/fb` folder.
- Update the license declaration headers for the four OSS files
- Add Non-GPU skip condition check for the test `test_dynamically_switch_inference_training_mode` in `torchrec/modules/tests/test_hash_mc_modules.py`.
- Rewrite downstream codes' dependencies to MPZCH modules with the open sourced one (from `"//torchrec/fb/modules:hash_mc_*"` to `"//torchrec/modules:hash_mc_*"`, and from `torch.fb.modules.hash_mc_*` to `torch.modules.hash_mc_*`, except for files in the following paths: `dper_lib,torchrec/fb,minimal_viable_ai,~` to avoid breaking mvai cogwheel tests.

### ToDos after landing this Diff
- Clean the duplicated `hash_mc_*.py` file in the `fb` folder for safe landing.

Differential Revision: D77558442
@lizhouyu lizhouyu force-pushed the export-D77558442 branch from 137821c to e4c47bb Compare July 1, 2025 00:46
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

@lizhouyu lizhouyu force-pushed the export-D77558442 branch from e4c47bb to a8758ce Compare July 1, 2025 01:20
lizhouyu added a commit to lizhouyu/torchrec that referenced this pull request Jul 1, 2025
Summary:
Pull Request resolved: meta-pytorch#3147

Pull Request resolved: meta-pytorch#3089

Pull Request resolved: meta-pytorch#3017

### Major changes
- Copy the following files from `fb` to corresponding location in the `torchrec` repository
  - `fb/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`
- Update `BUCK` files in related folders
- Update the affected repos to use `torchrec` modules instead of the modules in `torchrec.fb`
- Update `/modules/hash_mc_metrics.py`
  - Replace the tensorboard module with a local file logger in `hash_mc_metrics.py` module to avoid OSS CI test failures
  - The original tensorboard version is kept in the `torchrec/fb` folder.
- Update the license declaration headers for the four OSS files
- Add Non-GPU skip condition check for the test `test_dynamically_switch_inference_training_mode` in `torchrec/modules/tests/test_hash_mc_modules.py`.
- Rewrite downstream codes' dependencies to MPZCH modules with the open sourced one (from `"//torchrec/fb/modules:hash_mc_*"` to `"//torchrec/modules:hash_mc_*"`, and from `torch.fb.modules.hash_mc_*` to `torch.modules.hash_mc_*`, except for files in the following paths: `dper_lib,torchrec/fb,minimal_viable_ai,~` to avoid breaking mvai cogwheel tests.

### ToDos after landing this Diff
- Clean the duplicated `hash_mc_*.py` file in the `fb` folder for safe landing.

Differential Revision: D77558442
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

lizhouyu added a commit to lizhouyu/torchrec that referenced this pull request Jul 1, 2025
Summary:
Pull Request resolved: meta-pytorch#3147

Pull Request resolved: meta-pytorch#3089

Pull Request resolved: meta-pytorch#3017

### Major changes
- Copy the following files from `fb` to corresponding location in the `torchrec` repository
  - `fb/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`
- Update `BUCK` files in related folders
- Update the affected repos to use `torchrec` modules instead of the modules in `torchrec.fb`
- Update `/modules/hash_mc_metrics.py`
  - Replace the tensorboard module with a local file logger in `hash_mc_metrics.py` module to avoid OSS CI test failures
  - The original tensorboard version is kept in the `torchrec/fb` folder.
- Update the license declaration headers for the four OSS files
- Add Non-GPU skip condition check for the test `test_dynamically_switch_inference_training_mode` in `torchrec/modules/tests/test_hash_mc_modules.py`.
- Rewrite downstream codes' dependencies to MPZCH modules with the open sourced one (from `"//torchrec/fb/modules:hash_mc_*"` to `"//torchrec/modules:hash_mc_*"`, and from `torch.fb.modules.hash_mc_*` to `torch.modules.hash_mc_*`, except for files in the following paths: `dper_lib,torchrec/fb,minimal_viable_ai,~` to avoid breaking mvai cogwheel tests.

### ToDos after landing this Diff
- Clean the duplicated `hash_mc_*.py` file in the `fb` folder for safe landing.

Differential Revision: D77558442
@lizhouyu lizhouyu force-pushed the export-D77558442 branch from a8758ce to 98a0c9d Compare July 1, 2025 01:26
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

@lizhouyu lizhouyu force-pushed the export-D77558442 branch from 98a0c9d to 9ea2d09 Compare July 1, 2025 04:09
lizhouyu added a commit to lizhouyu/torchrec that referenced this pull request Jul 1, 2025
Summary:
Pull Request resolved: meta-pytorch#3147

Pull Request resolved: meta-pytorch#3089

Pull Request resolved: meta-pytorch#3017

### Major changes
- Copy the following files from `fb` to corresponding location in the `torchrec` repository
  - `fb/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`
- Update `/modules/hash_mc_metrics.py`
  - Replace the tensorboard module with a local file logger in `hash_mc_metrics.py` module to avoid OSS CI test failures
  - The original tensorboard version is kept in the `torchrec/fb` folder.
- Update the license declaration headers for the four OSS files

Differential Revision: D77558442
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

lizhouyu added a commit to lizhouyu/torchrec that referenced this pull request Jul 1, 2025
Summary:
Pull Request resolved: meta-pytorch#3147

Pull Request resolved: meta-pytorch#3089

Pull Request resolved: meta-pytorch#3017

### Major changes
- Copy the following files from `fb` to corresponding location in the `torchrec` repository
  - `fb/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`
- Update `/modules/hash_mc_metrics.py`
  - Replace the tensorboard module with a local file logger in `hash_mc_metrics.py` module to avoid OSS CI test failures
  - The original tensorboard version is kept in the `torchrec/fb` folder.
- Update the license declaration headers for the four OSS files

Differential Revision: D77558442
@lizhouyu lizhouyu force-pushed the export-D77558442 branch from 9ea2d09 to 0770298 Compare July 1, 2025 07:49
Summary:



### Major changes
- Copy the following files from `fb` to corresponding location in the `torchrec` repository
  - `fb/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`
- Update `/modules/hash_mc_metrics.py`
  - Replace the tensorboard module with a local file logger in `hash_mc_metrics.py` module to avoid OSS CI test failures
  - The original tensorboard version is kept in the `torchrec/fb` folder.
- Update the license declaration headers for the four OSS files

Reviewed By: kausv

Differential Revision: D77558442
@lizhouyu lizhouyu force-pushed the export-D77558442 branch from 0770298 to f3afaa8 Compare July 1, 2025 15:46
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77558442

@facebook-github-bot
Copy link
Contributor

This pull request has been reverted by 8b9c461.

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 Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants