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 BF16 in FP8 quantize ops #1961

Closed
wants to merge 1 commit into from
Closed

Conversation

sryap
Copy link
Contributor

@sryap sryap commented Aug 21, 2023

Summary:

  • Added output_dtype for half, bfloat16 and float as output in
    dequantization functions; currently it's an integer value defined by
    Sparse_dtype (float:0, half:1, bfloat16:5)
  • Added type conversion in quant and dequant kernels by using native
    CUDA/HIP functions for half to float conversion and writing
    everything explicitly.

Differential Revision: D47904459

@netlify
Copy link

netlify bot commented Aug 21, 2023

Deploy Preview for pytorch-fbgemm-docs canceled.

Name Link
🔨 Latest commit 19fb8e1
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/64e6a4ae3f99cf000870964e

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

sryap added a commit to sryap/FBGEMM that referenced this pull request Aug 21, 2023
Summary:
Pull Request resolved: pytorch#1961

- Added output_dtype for half, bfloat16 and float as output in
  dequantization functions; currently it's an integer value defined by
  Sparse_dtype (float:0, half:1, bfloat16:5)
- Added type conversion in quant and dequant kernels by using native
  CUDA/HIP functions for half to float conversion and writing
  everything explicitly.

Differential Revision: D47904459

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

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

sryap added a commit to sryap/FBGEMM that referenced this pull request Aug 23, 2023
Summary:
Pull Request resolved: pytorch#1961

- Added output_dtype for half, bfloat16 and float as output in
  dequantization functions; currently it's an integer value defined by
  Sparse_dtype (float:0, half:1, bfloat16:5)
- Added type conversion in quant and dequant kernels by using native
  CUDA/HIP functions for half to float conversion and writing
  everything explicitly.

Reviewed By: jianyuh

Differential Revision: D47904459

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

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

sryap added a commit to sryap/FBGEMM that referenced this pull request Aug 24, 2023
Summary:
Pull Request resolved: pytorch#1961

- Added output_dtype for half, bfloat16 and float as output in
  dequantization functions; currently it's an integer value defined by
  Sparse_dtype (float:0, half:1, bfloat16:5)
- Added type conversion in quant and dequant kernels by using native
  CUDA/HIP functions for half to float conversion and writing
  everything explicitly.

Reviewed By: jianyuh

Differential Revision: D47904459

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

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

sryap added a commit to sryap/FBGEMM that referenced this pull request Aug 24, 2023
Summary:
Pull Request resolved: pytorch#1961

- Added output_dtype for half, bfloat16 and float as output in
  dequantization functions; currently it's an integer value defined by
  Sparse_dtype (float:0, half:1, bfloat16:5)
- Added type conversion in quant and dequant kernels by using native
  CUDA/HIP functions for half to float conversion and writing
  everything explicitly.

Reviewed By: jianyuh

Differential Revision: D47904459

fbshipit-source-id: 4f5bbf71cb3c5f0ec2f4ef0048f30c6cdf48cd2e
Summary:
Pull Request resolved: pytorch#1961

- Added output_dtype for half, bfloat16 and float as output in
  dequantization functions; currently it's an integer value defined by
  Sparse_dtype (float:0, half:1, bfloat16:5)
- Added type conversion in quant and dequant kernels by using native
  CUDA/HIP functions for half to float conversion and writing
  everything explicitly.

Reviewed By: jianyuh

Differential Revision: D47904459

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4920770.

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