Skip to content

Nightly python packages for python 3.14#26397

Merged
tianleiwu merged 15 commits intomainfrom
cuda130_nightly
Nov 4, 2025
Merged

Nightly python packages for python 3.14#26397
tianleiwu merged 15 commits intomainfrom
cuda130_nightly

Conversation

@tianleiwu
Copy link
Copy Markdown
Contributor

@tianleiwu tianleiwu commented Oct 23, 2025

Update python packaging pipeline to support python 3.14. This is to add python 3.14 wheels to both CUDA 12 and CUDA 13 nightly packaging pipelines. The CUDA 13 pipelines were added in #26420.

For linux, two wheels are added for python 3.14 and 3.14t.
For Windows, a wheel is added for pyhthon 3.14.

Known issues:

  1. onnx does not have prebuild package for python 3.14, which causes some pipelines failed.
  2. onnxscript and onnx-ir depends on onnx.
  3. The CI machine for Windows cuda python packaging has cuda driver 553.24, which does not support CUDA 13.0. TODO: Update cuda driver to 580 or later to test properly.

Walkarounds for issues 1 and 2:

  • For python 3.14, we skip onnx, onnxscript and onnx-ir in requirements.txt.
  • Disable related tests.

When onnx package supports python 3.14 in the future, we can undo the walkarounds and re-enable those tests.

@tianleiwu tianleiwu marked this pull request as draft October 23, 2025 20:34
@tianleiwu tianleiwu changed the title Nightly package for CUDA 13 and python 3.14 Nightly package for python 3.14 Oct 27, 2025
@tianleiwu tianleiwu changed the title Nightly package for python 3.14 Nightly python packages for python 3.14 Nov 3, 2025
@tianleiwu tianleiwu marked this pull request as ready for review November 3, 2025 23:39
@tianleiwu tianleiwu requested a review from snnn November 4, 2025 00:40
@snnn
Copy link
Copy Markdown
Contributor

snnn commented Nov 4, 2025

The CI machine for Windows cuda python packaging has cuda driver 553.24, which does not support CUDA 13.0.

If you mean the A10 machines, they use a special driver from https://learn.microsoft.com/en-us/azure/virtual-machines/windows/n-series-driver-setup

Now the driver is preinstalled in the VM images. But, now our infra has the ability to help us auto install the driver when VM starts up. We can use that feature then we won't need to remember to update the drivers. So, I need to create a new VM image without driver and test it.

@tianleiwu
Copy link
Copy Markdown
Contributor Author

tianleiwu commented Nov 4, 2025

The CI machine for Windows cuda python packaging has cuda driver 553.24, which does not support CUDA 13.0.

If you mean the A10 machines, they use a special driver from https://learn.microsoft.com/en-us/azure/virtual-machines/windows/n-series-driver-setup

Now the driver is preinstalled in the VM images. But, now our infra has the ability to help us auto install the driver when VM starts up. We can use that feature then we won't need to remember to update the drivers. So, I need to create a new VM image without driver and test it.

Right. Updating driver is independent of python 3.14. I think we can update the driver in another PR.

@tianleiwu tianleiwu merged commit 32fa490 into main Nov 4, 2025
133 of 141 checks passed
@tianleiwu tianleiwu deleted the cuda130_nightly branch November 4, 2025 17:50
tianleiwu added a commit that referenced this pull request Nov 6, 2025
This is a follow up change for
#26397:
(1) Enable python 3.14 for webgpu package
(2) Skip python tests for python 3.14 just like in python cuda package
pipelines.

onnx package does not support python 3.14 right now, so python tests
depending on onnx will fail. Example error in python package pipeline:
```
Traceback (most recent call last):
  File "E:\_work\1\s\build\Release\Release\onnx_backend_test_series.py", line 14, in <module>
    import onnx
ModuleNotFoundError: No module named 'onnx'
```

This is a temporary walkaround to unblock python packaging pipeline for
python 3.14. We can re-enable the test after onnx next release (in a few
weeks?)
tianleiwu added a commit that referenced this pull request Nov 6, 2025
Missed it in #26397. 
Add it to make the cpu python package complete.
Rohanjames1997 pushed a commit to Rohanjames1997/onnxruntime that referenced this pull request Dec 4, 2025
Update python packaging pipeline to support python 3.14. This is to add
python 3.14 wheels to both CUDA 12 and CUDA 13 nightly packaging
pipelines. The CUDA 13 pipelines were added in
microsoft#26420.

For linux, two wheels are added for python 3.14 and 3.14t.
For Windows, a wheel is added for pyhthon 3.14.

Known issues:
1. onnx does not have prebuild package for python 3.14, which causes
some pipelines failed.
2.  onnxscript and onnx-ir depends on onnx.
3. The CI machine for Windows cuda python packaging has cuda driver
553.24, which does not support CUDA 13.0. TODO: Update cuda driver to
580 or later to test properly.

Walkarounds for issues 1 and 2:
* For python 3.14, we skip onnx, onnxscript and onnx-ir in
requirements.txt.
* Disable related tests.

When onnx package supports python 3.14 in the future, we can undo the
walkarounds and re-enable those tests.
Rohanjames1997 pushed a commit to Rohanjames1997/onnxruntime that referenced this pull request Dec 4, 2025
This is a follow up change for
microsoft#26397:
(1) Enable python 3.14 for webgpu package
(2) Skip python tests for python 3.14 just like in python cuda package
pipelines.

onnx package does not support python 3.14 right now, so python tests
depending on onnx will fail. Example error in python package pipeline:
```
Traceback (most recent call last):
  File "E:\_work\1\s\build\Release\Release\onnx_backend_test_series.py", line 14, in <module>
    import onnx
ModuleNotFoundError: No module named 'onnx'
```

This is a temporary walkaround to unblock python packaging pipeline for
python 3.14. We can re-enable the test after onnx next release (in a few
weeks?)
Rohanjames1997 pushed a commit to Rohanjames1997/onnxruntime that referenced this pull request Dec 4, 2025
Missed it in microsoft#26397. 
Add it to make the cpu python package complete.
tianleiwu pushed a commit that referenced this pull request Feb 26, 2026
### Description
The requires-python field in the
[metadata](https://pypi.org/pypi/onnxruntime/json) is currently set to
`python >= 3.10`. However, since ONNX Runtime has dropped support for
`Python 3.10`, this constraint is now inaccurate and may lead to
dependency resolution issues in `uv lock`.

Related Commits: #26397
tianleiwu pushed a commit that referenced this pull request Mar 16, 2026
### Description
The requires-python field in the
[metadata](https://pypi.org/pypi/onnxruntime/json) is currently set to
`python >= 3.10`. However, since ONNX Runtime has dropped support for
`Python 3.10`, this constraint is now inaccurate and may lead to
dependency resolution issues in `uv lock`.

Related Commits: #26397
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants