Make torch xla available on GPU (#29334)
* add USE_TORCH_XLA env * rename torch_tpu to torch_xla * better is_torch_xla_available; fix some fsdp and performance issues * fix format * fix bug when pjrt_device is cpu * fix bug * fix the deprecation handling --------- Co-authored-by: anw90 <ang868@gmail.com> Co-authored-by: wangang.wa <wangang.wa@alibaba-inc.com>
This commit is contained in:
@@ -451,7 +451,7 @@ decorators are used to set the requirements of tests CPU/GPU/TPU-wise:
|
||||
- `require_torch_multi_gpu` - as `require_torch` plus requires at least 2 GPUs
|
||||
- `require_torch_non_multi_gpu` - as `require_torch` plus requires 0 or 1 GPUs
|
||||
- `require_torch_up_to_2_gpus` - as `require_torch` plus requires 0 or 1 or 2 GPUs
|
||||
- `require_torch_tpu` - as `require_torch` plus requires at least 1 TPU
|
||||
- `require_torch_xla` - as `require_torch` plus requires at least 1 TPU
|
||||
|
||||
Let's depict the GPU requirements in the following table:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user