Gemm benchmark for #3290: replaced torch._scaled_mm with torch.nn.functional.scaled_mm#3342
Merged
danielvegamyhre merged 2 commits intoNov 24, 2025
Merged
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3342
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
57 tasks
Contributor
Author
|
@vkuzo lmk if you have comments or suggestions for the above changes |
Contributor
Author
|
Re linted |
Contributor
|
thanks for updating this, running CI now |
d4052c4 to
0cd581e
Compare
danielvegamyhre
approved these changes
Nov 24, 2025
namgyu-youn
pushed a commit
to namgyu-youn/ao
that referenced
this pull request
Dec 19, 2025
….nn.functional.scaled_mm (pytorch#3342) * replaced torch._scaled_mm with torch.nn.functional.scaled_mm * lint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
As discussed with @vkuzo in #3290
Replaced
torch._scaled_mmwithtorch.nn.functional.scaled_mmand ran the two benchmark (bench_1x128_128x1_gemms.pyandbench_1x128_128x128_gemms.py) scripts from hereResults on an H100 with the following setup:
Torchao: 0.15.0+git1fbc5f6a5
Python: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]
PyTorch: 2.10.0.dev20251113+cu129
CUDA: 12.9
CuDNN: 91002
[OS]
OS: Linux 6.8.0-60-generic
Distribution: Ubuntu 24.04.3 LTS
570.133.20, NVIDIA H100 PCIe, 9.0