microsoft / DirectML

DirectML is a high-performance, hardware-accelerated DirectX 12 library for machine learning. DirectML provides GPU acceleration for common machine learning tasks across a broad range of supported hardware and drivers, including all DirectX 12-capable GPUs from vendors such as AMD, Intel, NVIDIA, and Qualcomm.
MIT License
2.22k stars 297 forks source link

support python 3.11 ? #473

Open Kyr4l opened 1 year ago

Kyr4l commented 1 year ago

are there any plans to release this software with python 3.11 compatibility ?

Adele101 commented 1 year ago

Hi @Kyr4l,thank you for submitting this request. While I can't provide a roadmap as the moment, please know that your feedback is valuable to us. We will follow up once we can review this request.

tonyspumoni commented 7 months ago

@Kyr4l - I was able to "force" install of the existing wheel (python 3.10) by downloading it with a python3.10 venv, renaming it, and installing it in my 3.11 one. Haven't fully been able to test it yet as I'm still dealing with other (non-torch-directml) dependency issues but it didn't complain on install:

source ./venv-3.10/bin/activate
pip3 download torch-directml==0.2.0.dev230426
cp torch_directml-0.2.0.dev230426-cp310-cp310-manylinux2010_x86_64.whl torch_directml-0.2.0.dev230426-cp311-cp311-manylinux2010_x86_64.whl
deactivate
source ./venv-3.11/bin/activate
pip3 install torch_directml-0.2.0.dev230426-cp311-cp311-manylinux2010_x86_64.whl
CavoCode commented 5 months ago

@tonyspumoni Did this work? I've done the same, but haven't tested yet?

mr-september commented 5 months ago

Been over a year since the issue was first raised, still the same canned response. Nobody has even "reviewed" this? Waiting for the last legacy software to deprecate 3.12 support before DirectML removes the artificial requirement of 3.11?

joshjkim commented 5 months ago

@mr-september @CavoCode @Kyr4l

We're happy to share that we now support up to Python 3.12 with our latest 5/21/24 torch-directml release. We've also expanded our sample library with popular LLMs like Phi3, Llama, Mistral in our latest commit