Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Make code more dry and standardize on to_fp8_no_autograd #228

Closed
wants to merge 2 commits into from

Conversation

drisspg
Copy link
Contributor

@drisspg drisspg commented Feb 27, 2024

Summary

Remove direct Float Constructor invocations inside torch.autograd functions and use the to_fp8_no_autograd function
The is also fixes a problem where the DTensor tests weren't in test_everything.sh which lead to the torch__dispatch being incorrect, also fixed now.

./test/test_everything is all green

@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 Feb 27, 2024
@drisspg drisspg force-pushed the throw-it-in-the-dryer branch from 547d117 to 4d7d771 Compare February 27, 2024 04:42
@facebook-github-bot
Copy link
Contributor

@drisspg has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@wanchaol wanchaol left a comment

Choose a reason for hiding this comment

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

lgtm!

@facebook-github-bot
Copy link
Contributor

@drisspg merged this pull request in 6f22688.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants