ปัจจุบัน Pytorch/XLA รองรับรุ่น Python สูงถึง 3.11 สำหรับการแจกแจง Linux อย่างไรก็ตามมีข้อกำหนดและข้อ จำกัด เฉพาะ ตัวอย่างเช่นในการติดตั้ง `Torch_xla` เวอร์ชัน 2.5 คุณต้องตรวจสอบให้แน่ใจว่าเข้ากันได้กับ Python 3.9 ถึง 3.11 เนื่องจากไม่มีล้อสำหรับ Python 3.12 หรือใหม่กว่า [3] [4] นอกจากนี้ Pytorch เองไม่รองรับ Python 3.11 บน Windows [7]
สำหรับ Pytorch/XLA เวอร์ชัน 2.6 ขึ้นไปจะมีการรองรับ Python 3.11 รวมถึงล้อที่สร้างด้วย C ++ 11 ABI ซึ่งสามารถติดตั้งได้โดยใช้คำสั่งเฉพาะ [5] ดังนั้นในขณะที่ Pytorch/XLA สามารถใช้กับ Python 3.11 บน Linux ได้ แต่ต้องใช้การจัดการและติดตั้งเวอร์ชันอย่างระมัดระวัง
การอ้างอิง:[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-distribute-found-for-torch-xla-2-5-0-when-inst
[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