-
Notifications
You must be signed in to change notification settings - Fork 374
Use exp2 for mx scaling #1530
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
Use exp2 for mx scaling #1530
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1530
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 5 PendingAs of commit e5383e1 with merge base ac832b0 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
stack-info: PR: #1530, branch: drisspg/stack/26
29300f9 to
75587ff
Compare
stack-info: PR: #1530, branch: drisspg/stack/26
75587ff to
a0db83c
Compare
stack-info: PR: #1530, branch: drisspg/stack/26
a0db83c to
5bb2abf
Compare
stack-info: PR: #1530, branch: drisspg/stack/26
5bb2abf to
ffef385
Compare
stack-info: PR: #1530, branch: drisspg/stack/26
ffef385 to
71e43d3
Compare
| torch.full(max_abs.size(), 2.0, device=scale_e8m0_biased.device), | ||
| scale_e8m0_unbiased, | ||
| ) | ||
| scale_fp = torch.exp2(scale_e8m0_unbiased).to(torch.float32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL about torch.exp2
|
should ensure CI is green though |
stack-info: PR: #1530, branch: drisspg/stack/26
71e43d3 to
6238167
Compare
stack-info: PR: #1530, branch: drisspg/stack/26
6238167 to
9d068d5
Compare
|
plans on landing this? |
|
Yeah I'll fix it up |
stack-info: PR: #1530, branch: drisspg/stack/26
9d068d5 to
e5383e1
Compare
This reverts commit 890e0ac.
stack-info: PR: #1530, branch: drisspg/stack/26
Stacked PRs:
Use exp2 for mx scaling