Skip to content

use torch.float8_e8m0fnu in mx_formats #1966

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 34 commits into from
Mar 28, 2025
Merged

use torch.float8_e8m0fnu in mx_formats #1966

merged 34 commits into from
Mar 28, 2025

Conversation

vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Mar 26, 2025

Summary:

After pytorch/pytorch#148461 lands, we
can use torch.float8_e8m0fnu throughout our codebase and compile
will still work, removing the workarounds.

Test Plan:

pytest test/prototype/mx_formats/ -s -x

Reviewers:

Subscribers:

Tasks:

Tags:

vkuzo added 22 commits March 21, 2025 06:59
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Copy link

pytorch-bot bot commented Mar 26, 2025

🔗 Helpful Links

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

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.

vkuzo added a commit that referenced this pull request Mar 26, 2025
Summary:

After pytorch/pytorch#148461 lands, we
can use `torch.float8_e8m0fnu` throughout our codebase and compile
will still work, removing the workarounds.

Test Plan:

```
pytest test/prototype/mx_formats/ -s -x
```

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 278117bb3a470bb9a28ea9a69b4d543cdd7c25d5
ghstack-comment-id: 2755728114
Pull Request resolved: #1966
@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 Mar 26, 2025
vkuzo added a commit that referenced this pull request Mar 26, 2025
Summary:

After pytorch/pytorch#148461 lands, we
can use `torch.float8_e8m0fnu` throughout our codebase and compile
will still work, removing the workarounds.

Test Plan:

```
pytest test/prototype/mx_formats/ -s -x
```

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 278117bb3a470bb9a28ea9a69b4d543cdd7c25d5
ghstack-comment-id: 2755728114
Pull Request resolved: #1966
@vkuzo vkuzo added the topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) label Mar 26, 2025
vkuzo added 11 commits March 27, 2025 07:23
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Mar 28, 2025
Summary:

1. the PR that added this test was landed after
   #1966, so updating to use e8m0fnu
2. the tests are not passing on my B200, so skipping for now to keep
   local CI clean for upcoming branch cut

We should figure out what is wrong here and reenable at a future time.

Test Plan:

```
pytest test/prototype/mx_formats/ -s -x
```

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 70a1abf87dfa2efe0ff310777d6edcc16c3bb9ba
ghstack-comment-id: 2761624330
Pull Request resolved: #1977
vkuzo added a commit that referenced this pull request Mar 28, 2025
Summary:

1. the PR that added this test was landed after
   #1966, so updating to use e8m0fnu
2. the tests are not passing on my B200, so skipping for now to keep
   local CI clean for upcoming branch cut

We should figure out what is wrong here and reenable at a future time.

Test Plan:

```
pytest test/prototype/mx_formats/ -s -x
```

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 6a2f467b2595fa7cb31bfd6d2178b5e0632ac434
ghstack-comment-id: 2761624330
Pull Request resolved: #1977
[ghstack-poisoned]
@vkuzo vkuzo changed the base branch from gh/vkuzo/80/head to main March 28, 2025 20:00
@vkuzo vkuzo merged commit 59bf666 into main Mar 28, 2025
15 checks passed
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: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants