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 dynamic quantize gemm benchmark [step 2: fp16->int8 quantize] #2295

Closed
wants to merge 1 commit into from

Conversation

jiyuanzFB
Copy link
Contributor

Summary:

  • Add FX Kernel benchmark for dynamic quantized gemm step-2
  • Use quantize_step parameter to differentiate different stages
  • Separate Net modules for step-2 vs step-1 --

Differential Revision: D52136852

Copy link

netlify bot commented Jan 30, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 6fdfde4
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/65c2b28a2d8803000867ab82
😎 Deploy Preview https://deploy-preview-2295--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.

@facebook-github-bot
Copy link
Contributor

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

jiyuanzFB pushed a commit to jiyuanzFB/FBGEMM that referenced this pull request Jan 31, 2024
…torch#2295)

Summary:

- Add FX Kernel benchmark for dynamic quantized gemm step-2
- Use `quantize_step` parameter to differentiate different stages
- Separate Net modules for step-2 vs step-1 --

Differential Revision: D52136852
jiyuanzFB pushed a commit to jiyuanzFB/FBGEMM that referenced this pull request Jan 31, 2024
…torch#2295)

Summary:

- Add FX Kernel benchmark for dynamic quantized gemm step-2
- Use `quantize_step` parameter to differentiate different stages
- Separate Net modules for step-2 vs step-1 --

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

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

jiyuanzFB pushed a commit to jiyuanzFB/FBGEMM that referenced this pull request Jan 31, 2024
…torch#2295)

Summary:

- Add FX Kernel benchmark for dynamic quantized gemm step-2
- Use `quantize_step` parameter to differentiate different stages
- Separate Net modules for step-2 vs step-1 --

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

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

jiyuanzFB pushed a commit to jiyuanzFB/FBGEMM that referenced this pull request Feb 1, 2024
…torch#2295)

Summary:

- Add FX Kernel benchmark for dynamic quantized gemm step-2
- Use `quantize_step` parameter to differentiate different stages
- Separate Net modules for step-2 vs step-1 --

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

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

jiyuanzFB pushed a commit to jiyuanzFB/FBGEMM that referenced this pull request Feb 1, 2024
…torch#2295)

Summary:

- Add FX Kernel benchmark for dynamic quantized gemm step-2
- Use `quantize_step` parameter to differentiate different stages
- Separate Net modules for step-2 vs step-1 --

Differential Revision: D52136852
jiyuanzFB pushed a commit to jiyuanzFB/FBGEMM that referenced this pull request Feb 1, 2024
…torch#2295)

Summary:

- Add FX Kernel benchmark for dynamic quantized gemm step-2
- Use `quantize_step` parameter to differentiate different stages
- Separate Net modules for step-2 vs step-1 --

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

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

jiyuanzFB pushed a commit to jiyuanzFB/FBGEMM that referenced this pull request Feb 1, 2024
…torch#2295)

Summary:
Pull Request resolved: pytorch#2295

- Add FX Kernel benchmark for dynamic quantized gemm step-2
- Use `quantize_step` parameter to differentiate different stages
- Separate Net modules for step-2 vs step-1 --

Differential Revision: D52136852

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

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

jiyuanzFB pushed a commit to jiyuanzFB/FBGEMM that referenced this pull request Feb 1, 2024
…torch#2295)

Summary:
Pull Request resolved: pytorch#2295

- Add FX Kernel benchmark for dynamic quantized gemm step-2
- Use `quantize_step` parameter to differentiate different stages
- Separate Net modules for step-2 vs step-1 --

Differential Revision: D52136852

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

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

jiyuanzFB pushed a commit to jiyuanzFB/FBGEMM that referenced this pull request Feb 1, 2024
…torch#2295)

Summary:
Pull Request resolved: pytorch#2295

- Add FX Kernel benchmark for dynamic quantized gemm step-2
- Use `quantize_step` parameter to differentiate different stages
- Separate Net modules for step-2 vs step-1 --

Differential Revision: D52136852

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

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

…torch#2295)

Summary:

- Register the 2nd step operator `qlinear_quant` into FX stack
- Add FX Kernel benchmark for dynamic quantized gemm step-2
- Use `quantize_step` parameter to differentiate different stages
- Separate Net modules for step-2 vs step-1 --

result:
https://fb-my.sharepoint.com/:x:/g/personal/jiyuanz_meta_com/Ec94q-KgmslMtQ7nIYT4240BZUyWiK-iQvP1cBgzfgEDWg?e=DfP82U

1K x 1K: 638 cycles (5.10 us) --> 411 GB/s
2K x 2K: 1200 cycles (9.6 us) --> 873 GB/s

Reviewed By: charliezjw

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 44fc10a.

PaulZhang12 added a commit to PaulZhang12/FBGEMM that referenced this pull request Aug 14, 2024
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