Chore/ci/upgrade python 3 13 #3112
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
This PR addresses issue #2959 by upgrading the project's minimum Python version from Python 3.10 to Python 3.13. It addresses dependency constraints, updates CI configurations, and applies necessary fixes to code and tests to ensure compatibility with the updated environment.
Key Changes & Rationale:
pre_merge.yml) and documentation to use Python 3.13.pyproject.tomlanduv.lockto support Python 3.13.cu118andcu121extras topython_version < '3.13', as PyTorch does not provide wheels for these CUDA versions on Python 3.13 (which defaults to CUDA 12.4).torch.onnx.exportto use the legacy JIT exporter (dynamo=False) inexport_mixin.py.GuardOnDataDependentSymNodedue to data-dependent control flow inpost_processor.py(specificallyisnan()checks). The legacy exporter handles this correctly.test_inference_similarity(from1e-3to3-e3).✨ Changes
Select what type of change your PR is:
✅ Checklist
Before you submit your pull request, please make sure you have completed the following steps: