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

Optimize _PaddedFP8rowwise_to_float_cuda_kernel for nrows == 1 #1858

Closed
wants to merge 1 commit into from

Conversation

sryap
Copy link
Contributor

@sryap sryap commented Jun 30, 2023

Summary:
Optimize _PaddedFP8rowwise_to_float_cuda_kernel by using one thread
block to dequantize one row for the nrows == 1 case. Prior to this
diff, one thread dequantizes one row.

_PaddedFP8rowwise_to_float_cuda_kernel removes padding, scale, and
pad value from the input. Please see the attached figure for the
input and output layouts.

{F1039403748}

Differential Revision: D47068547

@netlify
Copy link

netlify bot commented Jun 30, 2023

Deploy Preview for pytorch-fbgemm-docs canceled.

Name Link
🔨 Latest commit 4c90c6d
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/64a3122d3350250008e83a0f

@facebook-github-bot
Copy link
Contributor

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

sryap added a commit to sryap/FBGEMM that referenced this pull request Jul 3, 2023
…ch#1858)

Summary:
Pull Request resolved: pytorch#1858

Optimize `_PaddedFP8rowwise_to_float_cuda_kernel` by using one thread
block to dequantize one row for the `nrows == 1` case.  Prior to this
diff, one thread dequantizes one row.

`_PaddedFP8rowwise_to_float_cuda_kernel` removes padding, scale, and
pad value from the input.  Please see the attached figure for the
input and output layouts.

 {F1039403748}

Reviewed By: xiaosun86, jianyuh

Differential Revision: D47068547

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

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

…ch#1858)

Summary:
Pull Request resolved: pytorch#1858

Optimize `_PaddedFP8rowwise_to_float_cuda_kernel` by using one thread
block to dequantize one row for the `nrows == 1` case.  Prior to this
diff, one thread dequantizes one row.

`_PaddedFP8rowwise_to_float_cuda_kernel` removes padding, scale, and
pad value from the input.  Please see the attached figure for the
input and output layouts.

 {F1039403748}

Reviewed By: xiaosun86, jianyuh

Differential Revision: D47068547

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f509314.

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