Skip to content

Conversation

@akshatvishu
Copy link

@akshatvishu akshatvishu commented Feb 3, 2026

What does this PR do?

Replace unsafe torch.accelerator usage with an hasattr guard for backward compatibility.

Fixes #13074

Original library don't face this issue as their minimum supported torch version is 2.7 :
https://github.com/vipshop/cache-dit/blob/main/pyproject.toml#L13

Who can review?

@sayakpaul @DN6

Replace unsafe torch.accelerator usage with an hasattr guard for backward compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Distributed gather crashes on PyTorch < 2.6

2 participants