-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[Python] Support Python 3.9.X+ #8577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
@tkonolige do you happen to know the status of this issue? I heard some work with SYNR was occuring? |
Synr is fine, its hybrid script that needs to be updated to use synr. |
What's the status of this issue? Is there any plan to support python 3.9? |
cc @hpanda-naut can you triage |
@hsuanguo i'm not sure we've moved on this at the moment. @junrushao1994 @yelite do you know the story around hybrid script and synr? |
The current [build-environment.yaml](https://github.com/apache/tvm/blob/main/conda/build-environment.yaml) doesn't specify the python version for `tvm-build` conda environment and as a result, any python version might be selected depending on the available base conda. In my case, the base conda is 3.10 so tvm won't work given [tvm is unsupported for python >= 3.9](#8577). To validate run on `tvm-build` env ``` conda env update -f conda/build-environment.yaml ```
I guess #13269 does not fix the python 3.9 support completely? |
You can use 3.9, however some parts of TVM might not work (e.g. hybridscript). |
The current [build-environment.yaml](https://github.com/apache/tvm/blob/main/conda/build-environment.yaml) doesn't specify the python version for `tvm-build` conda environment and as a result, any python version might be selected depending on the available base conda. In my case, the base conda is 3.10 so tvm won't work given [tvm is unsupported for python >= 3.9](apache#8577). To validate run on `tvm-build` env ``` conda env update -f conda/build-environment.yaml ```
Is there a list of functionalities that might get affected when using tvm with python-3.9 ? |
Some dynamic (i.e. the shape is not known until runtime) kernels will not work due to incompatibility with ̶T̶V̶M̶s̶c̶r̶i̶p̶t̶.̶ HybridScript |
@AndrewZhaoLuo TVMScript is tested to support python 3.6-3.10, the part that doesn’t support python 3.9 is the legacy hybrid script. We need to migrate them to TVMScript |
Another possible issue: when trying to run TVM's python unit tests with Python 3.10.6, I get this:
Also:
I don't think I told pip3.10 which particular version of scipy I wanted to install. As of this writing, these TVM docs only mention using a specific scipy in the case of M1 Macs. My machine is running x86-64 on Linux (specifically, Pop!_OS 22.04). |
Is there any new progress on this issue? |
Only part of the legacy features comes with legacy dependency. Given we migrated TVMScript with python10 support, closing this for now |
This issue is to track issues with python 3.9.x+ in TVM.
@tkonolige @jroesch @areusch Please fill in when you have time.
The text was updated successfully, but these errors were encountered: