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

[wip] float8 training: invert the meaning of scale #1351

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Nov 26, 2024

Summary:

Needs some work before review.

Benefit 1: less kernels for delayed scaling, so easier to debug things.
Benefit 2: aligns with other tensor subclasses in torchao better.

Test Plan:

Some FSDP2 numerics tests are still failing, TODO debug

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:

Needs some work before review.

Benefit 1: less kernels for delayed scaling, so easier to debug things.
Benefit 2: aligns with other tensor subclasses in torchao better.

Test Plan:

Some FSDP2 numerics tests are still failing, TODO debug

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link

pytorch-bot bot commented Nov 26, 2024

🔗 Helpful Links

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

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

❌ 2 New Failures

As of commit feec964 with merge base 6ff3904 (image):

NEW FAILURES - The following jobs have failed:

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 Nov 26, 2024
@@ -34,8 +34,10 @@ def addmm_float8_unwrapped(
as inputs. This is used to standardize the logic between subclassed and non subclassed
versions of the linear module.
"""
a_inverse_scale = a_scale.reciprocal()
b_inverse_scale = b_scale.reciprocal()
# a_inverse_scale = a_scale.reciprocal()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not having to do this is what reduces the # of kernels for delayed scaling

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants