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

fix bug with float8 + inference_mode #659

Merged
merged 1 commit into from
Aug 12, 2024
Merged

fix bug with float8 + inference_mode #659

merged 1 commit into from
Aug 12, 2024

Conversation

vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Aug 12, 2024

Summary:

Fix #643

As titled, just needed to add reshape to supported ops.

Test Plan:

pytest test/float8/test_base.py -s -x -k inference_mode

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:

As titled, just needed to add `reshape` to supported ops.

Test Plan:

```
pytest test/float8/test_base.py -s -x -k inference_mode
```

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link

pytorch-bot bot commented Aug 12, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 0e874fb with merge base 9eef1ae (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 Aug 12, 2024
Copy link
Contributor

@drisspg drisspg left a comment

Choose a reason for hiding this comment

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

I am surprised this works without: pytorch-labs/float8_experimental#251

@msaroufim msaroufim merged commit d3b8d43 into main Aug 12, 2024
14 checks passed
@msaroufim msaroufim deleted the 20240812_f8_bug branch August 12, 2024 15:59
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.

[BUG] Float8Linear does not work with torch.inference_mode
4 participants