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

Add OptimType.NONE in SplitTBE (defuse bwd and optim) #1820

Closed
wants to merge 2 commits into from

Conversation

sryap
Copy link
Contributor

@sryap sryap commented Jun 10, 2023

Summary:
This diff is the frontend part

This diff introduces OptimType.NONE. Unlike other OptimTypes,
OptimType.NONE does not perform the optimizer step during SplitTBE's
backward pass. With OptimType.NONE, SplitTBE deduplicates output
gradients in the backward pass and generates a sparse gradient tensor
(PyTorch's sparse_coo_tensor) for the device's weight (FQN:
weights_dev).

Currently, OptimType.NONE only supports the case where the embedding
dimensions of all embedding tables are identical.

Differential Revision: D46618714

@netlify
Copy link

netlify bot commented Jun 10, 2023

Deploy Preview for pytorch-fbgemm-docs canceled.

Name Link
🔨 Latest commit e020383
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/648749dc327eef000935f456

@facebook-github-bot
Copy link
Contributor

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

sryap added a commit to sryap/FBGEMM that referenced this pull request Jun 12, 2023
Summary:
Pull Request resolved: pytorch#1820

This diff is the **frontend** part

This diff introduces `OptimType.NONE`.  Unlike other `OptimType`s,
`OptimType.NONE` does not perform the optimizer step during SplitTBE's
backward pass.  With `OptimType.NONE`, SplitTBE deduplicates output
gradients in the backward pass and generates a sparse gradient tensor
(PyTorch's `sparse_coo_tensor`) for the device's weight (FQN:
`weights_dev`).

Currently, `OptimType.NONE` only supports the case where the embedding
dimensions of all embedding tables are identical.

Differential Revision: D46618714

fbshipit-source-id: 39309a9e7d03e43d8d8e81f1339091076557ed3e
@facebook-github-bot
Copy link
Contributor

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

sryap added a commit to sryap/FBGEMM that referenced this pull request Jun 12, 2023
Summary:
Pull Request resolved: pytorch#1820

This diff is the **frontend** part

This diff introduces `OptimType.NONE`.  Unlike other `OptimType`s,
`OptimType.NONE` does not perform the optimizer step during SplitTBE's
backward pass.  With `OptimType.NONE`, SplitTBE deduplicates output
gradients in the backward pass and generates a sparse gradient tensor
(PyTorch's `sparse_coo_tensor`) for the device's weight (FQN:
`weights_dev`).

Currently, `OptimType.NONE` only supports the case where the embedding
dimensions of all embedding tables are identical.

Differential Revision: D46618714

fbshipit-source-id: eac1334c2abea1561870a11ad1f1acbaa002e5c0
@facebook-github-bot
Copy link
Contributor

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

sarunya and others added 2 commits June 12, 2023 09:35
Differential Revision: D44392172

fbshipit-source-id: 60df0822cbc7d7341ab01ed7e0b67cb435a70395
Summary:
Pull Request resolved: pytorch#1820

This diff is the **frontend** part

This diff introduces `OptimType.NONE`.  Unlike other `OptimType`s,
`OptimType.NONE` does not perform the optimizer step during SplitTBE's
backward pass.  With `OptimType.NONE`, SplitTBE deduplicates output
gradients in the backward pass and generates a sparse gradient tensor
(PyTorch's `sparse_coo_tensor`) for the device's weight (FQN:
`weights_dev`).

Currently, `OptimType.NONE` only supports the case where the embedding
dimensions of all embedding tables are identical.

Differential Revision: D46618714

fbshipit-source-id: 3458c8b3e286573654b7a250f053f8fe8fd577cf
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 5cef9fc.

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.

None yet

2 participants