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を使用している場合、Pytorch/XLA 2.5のホイールがPython 3.12 [1] [3]には利用できないため、「一致する分布が見つかりません」などの問題に遭遇する可能性があります。

- 一般的なPytorchの互換性:Pytorch自体は、Pytorchバージョンに応じて、3.8、3.9、3.10、および潜在的に新しいバージョンを含むさまざまなPythonバージョンをサポートしています。たとえば、Pytorch V2.4はPython 3.8から3.10 [2]をサポートしています。

互換性を確保するには、使用しているPytorch/XLAのバージョンの特定の要件を確認し、Pythonバージョンがそれらの要件と一致するようにすることが不可欠です。

引用:
[1] https://stackoverflow.com/questions/79314991/why-am-i-getting-no-matching-distribution-found-for-torch-xla-2-5-0-nest
[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