You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
numerical issue when running SDPA with DTensor #267
The issue comes from the backward computation of aten.mul of two complex numbers from DTensors: the result will be b + ai when it should be a + bi. Not sure why it happens -- when doing aten operations, the input tensors have been de-sugared and should have nothing to do with DTensor.
To replicate, put the following code in pytorch/test/distributed/tensor/parallel/test_tp_examples.py
Activity
[-]numerical issue when running SDPA with [/-][+]numerical issue when running SDPA with DTensor[/+]tianyu-l commentedon Aug 2, 2024
A solution is proposed in pytorch/pytorch#130646
Fix DTensor handling of conjugate bit. (#158030)
Merge pull request pytorch#267 from google-pytorch:alekseyv