Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon 3.8 이외의 Python 버전과 함께 Pytorch/XLA를 사용할 수 있습니까?


3.8 이외의 Python 버전과 함께 Pytorch/XLA를 사용할 수 있습니까?


예, 3.8 이외의 Python 버전과 함께 Pytorch/XLA를 사용할 수 있습니다. 그러나 호환성은 Pytorch/XLA의 특정 버전과 사용중인 Python 버전에 따라 다릅니다.

-Pytorch/XLA 2.5 :이 버전에는 호환성을 위해 Python 3.9 ~ 3.11이 필요합니다. Python 3.12를 사용하는 경우 Python 3.12 [1] [3]에서는 Pytorch/XLA 2.5 용 바퀴가 사용할 수 없기 때문에 "일치 분포 없음"과 같은 문제가 발생할 수 있습니다.

- 일반 Pytorch 호환성 : Pytorch 자체는 Pytorch 버전에 따라 3.8, 3.9, 3.10을 포함한 다양한 파이썬 버전을 지원합니다. 예를 들어, Pytorch v2.4는 Python 3.8 ~ 3.10 [2]를 지원합니다.

호환성을 보장하려면 사용중인 Pytorch/XLA 버전의 특정 요구 사항을 확인하고 Python 버전이 해당 요구 사항과 일치하는지 확인해야합니다.

인용 :
[1] https://stackoverflow.com/questions/79314991/why-am-i-getting-no-matching-matching-forch-xla-2-5-0 whenst
[2] https://www.restack.io/p/pytorch-answer-python-versions
[3] https://cloud.google.com/blog/products/ai-machine-learning/whats-new-with-pytorchxla-2-5
[4] https://awsdocs-neuron.readthedocs-hosted.com/en/latest/release-notes/torch/torch-neuronx/index.html
[5] https://pytorch.org/xla/master/torch_compile.html
[6] https://pypi.org/project/torch-xla/
[7] https://pytorch.org/xla/release/2.0/index.html
[8] https://discuss.pytorch.org/t/installing-pytorch-under-python-3-8-question-about-networkx-version/196740