Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon Python 3.11과 함께 Pytorch/XLA를 사용할 수 있습니까?


Python 3.11과 함께 Pytorch/XLA를 사용할 수 있습니까?


현재 Pytorch/XLA는 Linux 배포의 경우 최대 3.11의 Python 버전을 지원합니다. 그러나 특정 요구 사항과 제한 사항이 있습니다. 예를 들어, 'Torch_xla'버전 2.5를 설치하려면 Python 3.12 이상에 사용할 수있는 바퀴가 없으므로 Python 3.9 ~ 3.11과의 호환성을 보장해야합니다 [3] [4]. 또한 Pytorch 자체는 Windows에서 Python 3.11을 지원하지 않습니다 [7].

Pytorch/XLA 버전 2.6 이상의 경우, 특정 명령을 사용하여 설치할 수있는 C ++ 11 ABI로 제작 된 바퀴를 포함하여 Python 3.11을 지원할 것입니다 [5]. 따라서 Pytorch/XLA는 Linux의 Python 3.11과 함께 사용할 수 있지만 신중한 버전 관리 및 설치가 필요합니다.

인용 :
[1] https://github.com/pytorch/xla/releases
[2] https://pytorch.org/xla/release/2.0/index.html
[3] https://stackoverflow.com/questions/79314991/why-am-i-getting-no-matching-matching-forch-xla-2-5-0 whenst
[4] https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/appnotes/torch-neuronx/introducing-pytorch-2-x.html
[5] https://github.com/pytorch/xla
[6] https://github.com/pytorch/xla/issues/4
[7] https://discuss.pytorch.org/t/pytorch-does-not-support-python-3-11/173747
[8] https://pytorch.org/xla/master/gpu.html