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

Added softmax to autocast policy #8509

Merged
merged 3 commits into from
Dec 20, 2024
Merged

Added softmax to autocast policy #8509

merged 3 commits into from
Dec 20, 2024

Conversation

avizon-aws
Copy link
Collaborator

Softmax operation was not added to the autocast policy previously which led to its computation in BF16. Since this is a non linear operation, we want to preserve precision and perform it in FP32. This PR adds its support as well as a HLO based unit test.

@avizon-aws avizon-aws requested a review from cowanmeg December 20, 2024 04:54
@lsy323 lsy323 added the tpuci label Dec 20, 2024
@lsy323
Copy link
Collaborator

lsy323 commented Dec 20, 2024

Hi @avizon-aws, thank you for sending the PR! Could you force push again to trigger TPU CI?

@lsy323
Copy link
Collaborator

lsy323 commented Dec 20, 2024

@avizon-aws LGTM, thanks!

@lsy323 lsy323 merged commit 38d0868 into master Dec 20, 2024
12 checks passed
avizon-aws added a commit that referenced this pull request Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants