[Distributed] add FP8 support to NaN checker#135891
[Distributed] add FP8 support to NaN checker#135891kwen2501 wants to merge 2 commits intogh/kwen2501/59/basefrom
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/135891
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 27e3426 with merge base 0216936 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
PR Reviewer Guide 🔍
|
wconstab
left a comment
There was a problem hiding this comment.
LGTM, except for missing optimized template for the f8 kernel. Can you determine if its worth adding before deciding to land this as is or optimize further?
Adding support for `torch.float8_e4m3fn` and `torch.float8_e5m2` cc XilunWu H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o [ghstack-poisoned]
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
We check 8 x FP8 simultaneously, at size of 8 bytes. Pull Request resolved: #135961 Approved by: https://github.com/yifuwang, https://github.com/Skylion007 ghstack dependencies: #135891
Add support for Float8_e5m2, following similar algorithm used for Float8_e4m3fn (i.e. overflow check). Made `HasNanFP8x8` a template so that it is extendable based on dtype. Pull Request resolved: #136115 Approved by: https://github.com/Skylion007 ghstack dependencies: #135891, #135961
Adding support for `torch.float8_e4m3fn` and `torch.float8_e5m2` Pull Request resolved: pytorch#135891 Approved by: https://github.com/wconstab
We check 8 x FP8 simultaneously, at size of 8 bytes. Pull Request resolved: pytorch#135961 Approved by: https://github.com/yifuwang, https://github.com/Skylion007 ghstack dependencies: pytorch#135891
Add support for Float8_e5m2, following similar algorithm used for Float8_e4m3fn (i.e. overflow check). Made `HasNanFP8x8` a template so that it is extendable based on dtype. Pull Request resolved: pytorch#136115 Approved by: https://github.com/Skylion007 ghstack dependencies: pytorch#135891, pytorch#135961
ghstack-source-id: a9fb66a Pull Request resolved: pytorch/pytorch#135891
Stack from ghstack (oldest at bottom):
Adding support for
torch.float8_e4m3fnandtorch.float8_e5m2cc @XilunWu @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o