Skip to content
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

Store the prefetching results in a queue in SSD prefetcher, retrieve later in .forward() method #3312

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

excelle08
Copy link
Contributor

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/409

Change the design of the SSD prefetcher interface such that when prefetching, store results in a queue of the SSD prefetcher. When the TBE module's .forward() method is called, it uses the prefetcher's .get() method to pop the prefetched result.

Differential Revision: D65372062

Summary:
X-link: facebookresearch/FBGEMM#407

Add the unified prefetching API and a unit test for it to support SSD or parameter server offloading in CPU TBE.
Design doc: https://docs.google.com/document/d/10gvSl00wjFnCZ6trO2o1L5jqYG6pOHBFyqObrDDVklc/edit?usp=sharing

Differential Revision: D64705318
Summary:
X-link: facebookresearch/FBGEMM#408

Add a method `register_ssd_prefetcher` in the inference TBE module to allow converting the module to SSD mode after initialization. Also extended the unit test to test the case of registering prefetcher at/after init and adding SSD placement list during/after init.

Differential Revision: D65371577
…later in .forward() method

Summary:
X-link: facebookresearch/FBGEMM#409

Change the design of the SSD prefetcher interface such that when prefetching, store results in a queue of the SSD prefetcher. When the TBE module's `.forward()` method is called, it uses the prefetcher's `.get()` method to pop the prefetched result.

Differential Revision: D65372062
Copy link

netlify bot commented Nov 2, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 6aec72f
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67257f40a2804f00088ed9e0
😎 Deploy Preview https://deploy-preview-3312--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facebook-github-bot
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants