Momenteel ondersteunt Pytorch/XLA Python -versies tot 3,11 voor Linux -distributies. Er zijn echter specifieke vereisten en beperkingen. Om bijvoorbeeld `Torch_XLA` versie 2.5 te installeren, moet u zorgen voor compatibiliteit met Python 3.9 tot 3.11, omdat er geen wielen beschikbaar zijn voor Python 3.12 of later [3] [4]. Bovendien ondersteunt Pytorch zelf geen Python 3.11 op Windows [7].
Voor Pytorch/XLA versie 2.6 en daarna zal er ondersteuning zijn voor Python 3.11, inclusief wielen gebouwd met de C ++ 11 ABI, die kunnen worden geïnstalleerd met behulp van specifieke opdrachten [5]. Hoewel Pytorch/XLA kan worden gebruikt met Python 3.11 op Linux, vereist het dus zorgvuldig versiebeheer en -installatie.
Citaten:[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-geting-no-matching-distribution-found-for--torch-xla-2-5-0
[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