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 support for reorder_batched_ad_indices #2116

Closed
wants to merge 1 commit into from

Conversation

lequytra
Copy link
Contributor

@lequytra lequytra commented Nov 6, 2023

Summary:
We use reorder_batched_ad_indices to rebatch id_score_list weights which is quantized to BFloat 16. However, BFloat16 is currently not supported in reorder_batched_ad_indices, see error trace: P868895010

This diff adds this support for BFloat16 dtype.

Reviewed By: YazhiGao

Differential Revision: D50817983

Summary:
We use `reorder_batched_ad_indices` to [rebatch id_score_list weights](https://www.internalfb.com/code/fbsource/[e3bbe1eaf65e]/fbcode/caffe2/caffe2/fb/predictor/rebatch/GPURebatchUtils.cpp?lines=305) which is quantized to BFloat 16. However, BFloat16 is currently not supported in `reorder_batched_ad_indices`, see error trace: P868895010

This diff adds this support for BFloat16 dtype.

Reviewed By: YazhiGao

Differential Revision: D50817983
Copy link

netlify bot commented Nov 6, 2023

Deploy Preview for pytorch-fbgemm-docs canceled.

Name Link
🔨 Latest commit f0a1a27
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/6549276a68c5de0008378f21

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 80990a6.

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