Open IanNod opened 2 weeks ago
We should relax that to 3.10 to 3.13 and at least add unit test coverage for the older versions.
We'll want to use the newer versions for real runs because it is faster.
torch.compile
is supported for Python 3.12 since torch 2.4.0, see https://dev-discuss.pytorch.org/t/torch-compile-support-for-python-3-12-completed/2054. We explicitly pin for the CPU
https://github.com/nod-ai/SHARK-Platform/blob/c6c7321e35aae8e3385d8232b51074e58becd053/pytorch-cpu-requirements.txt#L3
whereas we do not pin for the GPU
https://github.com/nod-ai/SHARK-Platform/blob/c6c7321e35aae8e3385d8232b51074e58becd053/pytorch-rocm-requirements.txt#L3
shortfin
is now also usable and tested with Python 3.11 but tests hang for Python 3.10 (therefore it is not enabled in the CI).
I'm assuming we are pinning torch to 2.3 due to previous issues with iree-turbine. That should be resolved now so I think we can bump torch without hopefully too much issue now.
I'm assuming we are pinning torch to 2.3 due to previous issues with iree-turbine. That should be resolved now so I think we can bump torch without hopefully too much issue now.
In the CI workflow iree-turbine's unit tests recently passed with torch==2.5.1 (see the logs here). Within a quick test, I bumped torch to 2.4.1 or 2.5.1 as part of https://github.com/nod-ai/SHARK-Platform/pull/372 but this failed (see the logs here).
I've filled #495, with regards to test failures that occur for newer torch versions.
When getting setup with shortfin I see several sharktank test failures due to the Python3.12 version shortfin requires.
To recreate following setup instructions on https://github.com/nod-ai/SHARK-Platform/tree/main?tab=readme-ov-file#development-getting-started with python3.12
Errors with