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 AMD Rowwise FP8 Matmul #2611

Closed
wants to merge 1 commit into from
Closed

Conversation

jwfromm
Copy link
Contributor

@jwfromm jwfromm commented May 21, 2024

Summary: This diff extends the fp8fp8bf16_rowwise gemm operation to AMD through a new CK kernel. The new kernel requires new stride support implemented by @zjing14 that is only available in developer branches of CK, so we must rely on the ai_codesign/gen_ai CK repo. I also extend the fp8 benchmarking suite to include rowwise measurements. I'll soon add detailed benchmarking results but the quick summary is that performance looks quite good, typically inline with tensorwise quantization and sometimes faster, presumably due to using the latest and greatest CK pipelines.

Differential Revision: D57600068

@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented May 21, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 040a80e
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/664d135577527a000775ffbb
😎 Deploy Preview https://deploy-preview-2611--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Summary:

This diff extends the `fp8fp8bf16_rowwise` gemm operation to AMD through a new CK kernel. The new kernel requires new stride support that is only available in developer branches of CK, so we must rely on the `ai_codesign/gen_ai` CK repo. I also extend the fp8 benchmarking suite to include rowwise measurements. I'll soon add detailed benchmarking results but the quick summary is that performance looks quite good, typically inline with tensorwise quantization and sometimes faster, presumably due to using the latest and greatest CK pipelines.

Reviewed By: jianyuh

Differential Revision: D57600068
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 8e335d3.

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