Skip to content

Fix Per Tensor 3d rehsape #2293

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

Merged
merged 1 commit into from
Jun 9, 2025
Merged

Fix Per Tensor 3d rehsape #2293

merged 1 commit into from
Jun 9, 2025

Conversation

drisspg
Copy link
Contributor

@drisspg drisspg commented Jun 3, 2025

Stacked PRs:


Fix Per Tensor 3d rehsape

drisspg added a commit that referenced this pull request Jun 3, 2025
stack-info: PR: #2293, branch: drisspg/stack/64
@drisspg drisspg force-pushed the drisspg/stack/64 branch from e04989f to e4183e5 Compare June 3, 2025 17:07
Copy link

pytorch-bot bot commented Jun 3, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit a18d989 with merge base 9d5b9ad (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-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 Jun 3, 2025
@drisspg drisspg added the topic: not user facing Use this tag if you don't want this PR to show up in release notes label Jun 3, 2025
drisspg added a commit that referenced this pull request Jun 3, 2025
stack-info: PR: #2293, branch: drisspg/stack/64
@drisspg drisspg force-pushed the drisspg/stack/64 branch from e4183e5 to fe2547d Compare June 3, 2025 17:17
stack-info: PR: #2293, branch: drisspg/stack/64
@drisspg drisspg force-pushed the drisspg/stack/64 branch from fe2547d to a18d989 Compare June 3, 2025 19:20
@drisspg drisspg requested a review from jbschlosser June 3, 2025 19:21
@jbschlosser
Copy link

Pulling this down to try it out on Flux..

Copy link

@jbschlosser jbschlosser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, thanks for the fix :)

Ideally, as we discussed offline, determination of rowwise scaling should be fixed in torch as well: https://github.com/pytorch/pytorch/blob/main/torch/_inductor/kernel/mm_common.py#L122

Comment on lines +97 to +98
return output + bias
return torch._scaled_mm(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trimmin down those lines!

@drisspg drisspg requested review from jerryzh168 and jainapurva June 3, 2025 20:09
@drisspg
Copy link
Contributor Author

drisspg commented Jun 9, 2025

@jbschlosser you wanna add yourself as a contributor so I can land this?

@jbschlosser
Copy link

@drisspg oh yeah, good call

@jbschlosser
Copy link

@drisspg try merging now?

@drisspg drisspg merged commit 83663b8 into main Jun 9, 2025
19 checks passed
@drisspg
Copy link
Contributor Author

drisspg commented Jun 9, 2025

@jbschlosser magic

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
3 participants