Skip to content

[fp8 blockwise training] improve fp8 blockwise gemm perf; add GEMM bench script #2730

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

Closed
wants to merge 1 commit into from

Conversation

danielvegamyhre
Copy link
Contributor

@danielvegamyhre danielvegamyhre commented Aug 11, 2025

Repro for triton compiler upcasting fp8 inputs to f16 and doing mma.sync f16.f16.fp32:

  1. Check out this PR
  2. Run python benchmarks/blockwise_fp8_training/bench_gemms.py and use NCU see associated PTX
  3. Kernel name: blockwise_fp8_gemm_1x128_128x1_kernel (accepts "A" scaled with 1x128 granularity and "B" scaled with 128x128 granularity)

Copy link

pytorch-bot bot commented Aug 11, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2730

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 215e891 with merge base 1526dfe (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@danielvegamyhre danielvegamyhre added the topic: not user facing Use this tag if you don't want this PR to show up in release notes label Aug 11, 2025
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 11, 2025
@danielvegamyhre danielvegamyhre force-pushed the perf2 branch 2 times, most recently from fc0fdaf to 252da1e Compare August 13, 2025 01:03
@danielvegamyhre danielvegamyhre marked this pull request as draft August 13, 2025 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing Use this tag if you don't want this PR to show up in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant