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 cache update function for delta in-place update #1436

Closed
wants to merge 1 commit into from

Conversation

jianyuh
Copy link
Member

@jianyuh jianyuh commented Oct 31, 2022

Summary: With inplace update, we need to update dev_weights, uvm_weights, as well as the cache_weights (note that during inference, cache is read-only; but in the inplace delta update, cache needs to be updated. Since we don't have "write back"/flushing cache (when inference finishes, or cache evicts) during inference, we need to update cache weight and the back storage (uvm weight) simultaneously during the inplace delta update.

Differential Revision: D39158010

@netlify
Copy link

netlify bot commented Oct 31, 2022

Deploy Preview for pytorch-fbgemm-docs canceled.

Name Link
🔨 Latest commit d64c490
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/636296a57a0fac00089e067e

@facebook-github-bot
Copy link
Contributor

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

jianyuh added a commit to jianyuh/FBGEMM that referenced this pull request Nov 2, 2022
Summary:
Pull Request resolved: pytorch#1436

With inplace update, we need to update dev_weights, uvm_weights, as well as the cache_weights (note that during inference, cache is read-only; but in the inplace delta update, cache needs to be updated. Since we don't have "write back"/flushing cache (when inference finishes, or cache evicts) during inference, we need to update cache weight **and** the back storage (uvm weight) simultaneously during the inplace delta update (thanks yinghai for pointing this out!).

Reviewed By: jspark1105

Differential Revision: D39158010

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

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

jianyuh added a commit to jianyuh/FBGEMM that referenced this pull request Nov 2, 2022
Summary:
Pull Request resolved: pytorch#1436

With inplace update, we need to update dev_weights, uvm_weights, as well as the cache_weights (note that during inference, cache is read-only; but in the inplace delta update, cache needs to be updated. Since we don't have "write back"/flushing cache (when inference finishes, or cache evicts) during inference, we need to update cache weight **and** the back storage (uvm weight) simultaneously during the inplace delta update (thanks yinghai for pointing this out!).

Reviewed By: jspark1105

Differential Revision: D39158010

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

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

jianyuh added a commit to jianyuh/FBGEMM that referenced this pull request Nov 2, 2022
Summary:
Pull Request resolved: pytorch#1436

With inplace update, we need to update dev_weights, uvm_weights, as well as the cache_weights (note that during inference, cache is read-only; but in the inplace delta update, cache needs to be updated. Since we don't have "write back"/flushing cache (when inference finishes, or cache evicts) during inference, we need to update cache weight **and** the back storage (uvm weight) simultaneously during the inplace delta update (thanks yinghai for pointing this out!).

Reviewed By: jspark1105

Differential Revision: D39158010

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

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

Summary:
Pull Request resolved: pytorch#1436

With inplace update, we need to update dev_weights, uvm_weights, as well as the cache_weights (note that during inference, cache is read-only; but in the inplace delta update, cache needs to be updated. Since we don't have "write back"/flushing cache (when inference finishes, or cache evicts) during inference, we need to update cache weight **and** the back storage (uvm weight) simultaneously during the inplace delta update (thanks yinghai for pointing this out!).

Reviewed By: jspark1105

Differential Revision: D39158010

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

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

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