Repository navigation
fix(locks): fixing onnx runtime cuda problem - #162
Conversation
Signed-off-by: Konrad Nowicki <knowicki@nvidia.com>
Signed-off-by: Konrad Nowicki <knowicki@nvidia.com>
…ing_onnx_runtime_cuda_problem
Signed-off-by: Konrad Nowicki <knowicki@nvidia.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Signed-off-by: Konrad Nowicki <knowicki@nvidia.com>
| run: | | ||
| uv venv | ||
| printf "tensorrt\n" > cu12-excludes.txt | ||
| printf "tensorrt\ncupy-cuda13x\n" > cu12-excludes.txt |
There was a problem hiding this comment.
|
|
||
| [[tool.uv.index]] | ||
| name = "ort-cuda-12-nightly" | ||
| url = "https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/" |
There was a problem hiding this comment.
To look into the index: one needs to add a package name.
| onnxruntime-gpu = [ | ||
| { index = "ort-cuda-13-nightly", extra = "onnxruntime-gpu-cuda13" }, | ||
| { index = "pypi", extra = "onnxruntime-gpu-cuda12" }, | ||
| { index = "ort-cuda-12-nightly", extra = "onnxruntime-gpu-cuda12" }, |
There was a problem hiding this comment.
pypi has mixed cuda versions for ort:
ort < 1.27 -> cu12
ort >= 1.27 -> cu13
https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements
| cuda_image: 12.9.2-devel-ubuntu24.04 | ||
| cuda_major: 12 | ||
| uv_extra_args: nvidia-cuda-runtime-cu13==0.0.0a0 --excludes ./cu12-excludes.txt --reinstall-package tensorrt-cu12 --reinstall-package tensorrt-cu12-bindings --reinstall-package tensorrt-cu12-libs | ||
| uv_extra_args: nvidia-cuda-runtime-cu13==0.0.0a0 cupy-cuda12x --excludes ./cu12-excludes.txt --reinstall-package tensorrt-cu12 --reinstall-package tensorrt-cu12-bindings --reinstall-package tensorrt-cu12-libs |
There was a problem hiding this comment.
Suggestion (not for this PR, future enhancement): Given the complexity of the installation, it would be valuable to add an install.sh (or similarly named script) that:
- Detects installed CUDA version
- Includes those extra flags from here to support CUDA 12
- Installs CUDA 13 dependencies otherwise
Then the whole CI calls install.sh and we wouldn't have to maintain installation paths at different places. The install.sh script could also be the starting point for users to install AITune.
szysad
left a comment
There was a problem hiding this comment.
Should this change also include updating https://github.com/ai-dynamo/aitune/blob/main/docs/learn/install.md?plain=1#L60?
I believe now --no-sources should be skipped.
Summary by CodeRabbit