-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
[MPS] Fix MPS clamp issue with different dtypes between input and min/max tensors #105747
Conversation
DenisVieriu97
commented
Jul 21, 2023
- Fix the FP16 clamp issue (FP32 and FP16 are not broadcast compatible)
- Fix clamp (cached graph nodes were previously replaced with the cast version)
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/105747
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 1eae4c3: NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
* Fix the FP16 clamp issue. * Fix clamp (cached graph nodes were previously replaced with the cast version) --------- Co-authored-by: Denis Vieriu <dvieriu@apple.com>
Successfully rebased |
f29d4b2
to
1eae4c3
Compare
@pytorchbot merge -f "MPS tests & lint are green" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
@kulinseth , @DenisVieriu97 just curious, have you check if it matches cpu/CUDA behavior? I.e. I assume it should do something like that only if AMP is enable, isn't it? |
We checked with cpu @malfet |
We checked with cpu @malfet. Also it’s affecting correctness of few language models |