Skip to content

Create an example for MPZCH #3063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lizhouyu
Copy link
Contributor

@lizhouyu lizhouyu commented Jun 9, 2025

Summary:

Major changes

  • Create a mpzch folder under the torchrec/github/examples folder
  • Implement a simple SparseArch module with a flag to switch between original and MPZCH managed collision modules
  • Profile the running time and QPS for model training(GPU)/inference(CPU)
  • Create a notebook tutorial for ZCH basics and the use of ZCH modules in TorchRec

ToDos for OSS

  • When the internal torchrec MPZCH module is OSS
    • Remove the BUCK file
    • Replace all the from torchrec.fb.modules in sparse_arch.py to from torchrec.modules

Potential improvement

  • Add hash collision counter
  • Show profiling results in the Readme file
  • Add multi-batch profiling

Reviewed By: aporialiao

Differential Revision: D75570684

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

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

@facebook-github-bot
Copy link
Contributor

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

@lizhouyu lizhouyu force-pushed the export-D75570684 branch from 98ebfbf to 0f7297b Compare June 9, 2025 15:06
lizhouyu added a commit to lizhouyu/torchrec that referenced this pull request Jun 9, 2025
Summary:
Pull Request resolved: pytorch#3063

### Major changes
- Create a `mpzch` folder under the `torchrec/github/examples` folder
- Implement a simple SparseArch module with a flag to switch between original and MPZCH managed collision modules
- Profile the running time and QPS for model training(GPU)/inference(CPU)
- Create a notebook tutorial for ZCH basics and the use of ZCH modules in TorchRec

### ToDos for OSS
- When the internal torchrec MPZCH module is OSS
  - Remove the `BUCK` file
  - Replace all the `from torchrec.fb.modules` in `sparse_arch.py` to `from torchrec.modules`

### Potential improvement
- Add hash collision counter
- Show profiling results in the Readme file
- Add multi-batch profiling

Reviewed By: aporialiao

Differential Revision: D75570684
Summary:
Pull Request resolved: pytorch#3063

### Major changes
- Create a `mpzch` folder under the `torchrec/github/examples` folder
- Implement a simple SparseArch module with a flag to switch between original and MPZCH managed collision modules
- Profile the running time and QPS for model training(GPU)/inference(CPU)
- Create a notebook tutorial for ZCH basics and the use of ZCH modules in TorchRec

### ToDos for OSS
- When the internal torchrec MPZCH module is OSS
  - Remove the `BUCK` file
  - Replace all the `from torchrec.fb.modules` in `sparse_arch.py` to `from torchrec.modules`

### Potential improvement
- Add hash collision counter
- Show profiling results in the Readme file
- Add multi-batch profiling

Reviewed By: aporialiao

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

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

@lizhouyu lizhouyu force-pushed the export-D75570684 branch from 0f7297b to 01b9ba3 Compare June 9, 2025 16:35
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants