-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Make torch xla available on GPU #29334
Changes from all commits
fccdd0d
5504241
82d0d76
ce73774
0d218e2
f761c88
1d6223e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -1092,6 +1092,7 @@ | |||||||
"is_torch_npu_available", | ||||||||
"is_torch_tpu_available", | ||||||||
"is_torchvision_available", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to keep whilst it's still being deprecated
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||||||||
"is_torch_xla_available", | ||||||||
"is_torch_xpu_available", | ||||||||
"is_vision_available", | ||||||||
"logging", | ||||||||
|
@@ -5895,6 +5896,7 @@ | |||||||
is_torch_neuroncore_available, | ||||||||
is_torch_npu_available, | ||||||||
is_torch_tpu_available, | ||||||||
is_torch_xla_available, | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||||||||
is_torch_xpu_available, | ||||||||
is_torchvision_available, | ||||||||
is_vision_available, | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't equivalent, previously, we were checking for a device, but by default that isn't happening anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to align with PR of the accelerate library. If users do not wish to use torch_xla in an environment where torch_xla is installed, they can configure it using USE_TORCH_XLA, which is also the purpose of this PR.