Repository navigation
Fix CUDA 12 Docker dependency resolution - #30858
Conversation
There was a problem hiding this comment.
Code Review
This pull request modifies the Dockerfile to conditionally adjust dependencies in pyproject.toml for CUDA 12 environments by replacing CUDA 13 packages with their CUDA 12 equivalents. However, the feedback points out that this modification is only applied in the temporary torch_deps stage and will be lost in the final stage, which uses a fresh copy of the repository. It is recommended to apply the same sed replacements in the final stage to avoid dependency metadata inconsistencies.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
e2f8aea to
c00ab74
Compare
Summary
Pulled this fix out of the PyTorch upgrade PR. Not sure how the CUDA 12 dependency mismatch survived for this long, but this fixes #30856.
CI States
Latest PR Test (Base): ✅ Run #29149230279
Latest PR Test (Extra): ✅ Run #29208350188