Repository navigation
Fix CUDA CI runtime for Python 3.14t and stable PyTorch 2.15 - #5103
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The source-release install in run 44224550990 used the old CUDA 13.0 runtime and cu130 wheel index, which cannot satisfy the current Torch requirement. Publication gates used
!cancelled()and could run after installation failed.Unify the affected CUDA unit, source-release, and setuptools lanes on CPython 3.14.10t with GIL=0, stable PyTorch 2.15.0+cu132, and a digest-pinned public CUDA 13.2.1 image. Require a successful clean-environment installation before publication. The new validation workflow can test the sdist without publication credentials.
What Changed
25 files, +646/-444 lines.
TorchAO is pinned to the public 0.18.0 universal wheel by URL and SHA256 because the CUDA-index abi3 wheel is incompatible with cp314t. NVFP4 Python imports are checked; native TorchAO GPU operators remain unqualified here. Python is pinned to the current stable patch for reproducibility; future patches require updating the pin and assertion together.
Tests
test_install_smoke_uses_the_pinned_backend_and_propagates_resolver_failures[37]verifies exit-code propagation and that dependency/import checks are not called after failure.Exact commands used (temporary paths identify the isolated local environments):
actionlint1.7.12 used a local config declaring the existingxeon5runner label. Bash syntax checks and Ruff checks of the changed Python scripts also passed. The setuptools pip path was dry-run checked with the same constraints; a full fresh pip/setuptools matrix was not executed locally.The lightweight PR workflow intentionally deselects the full model-stack import test; the local full run and manual sdist smoke include that check. Triton emits nanobind reference-leak diagnostics at interpreter shutdown, as recorded in the existing GIL ledger; successful exit status is not a claim that those upstream leaks are fixed.
Model Support / Module Plan
Not applicable: no model registration, aliases, definitions, module plans, or fusion support changed.
AWQ onboarding safety
Not applicable: no AWQ grouping, replay, folding, or model onboarding changed.
Logic Flow Documentation
setup-ci-runtimeaction to create and verify the exact managed interpreter.torch>=2.15.0requirement on Python 3.14. The unit matrix pinned an older Torch and bypassed the safety gate.torch-cu132.txtconstrains Torch to 2.15.0+cu132 and uv selects the cu132 backend explicitly. The normal Torch safety gate applies.!cancelled()for release upload and PyPI steps, so a failed install could still reach publication.flowchart TD A["Old release-source job"] --> B["CUDA 13.0 image and host bootstrap"] B --> C["Build and check source distribution"] C --> D["Install with cu130"] D -->|Resolution failure| E["Job fails"] D -->|Success| F["Check publication event"] E -->|Job not cancelled| F F --> G["Release upload or PyPI confirmation and upload"] classDef failed fill:#fee2e2,stroke:#b91c1c,color:#111827 class E failedflowchart TD A["Release or CI runtime validation"] --> B["setup-ci-runtime verifies CPython 3.14.10t and GIL=0"] B --> C["release-source-common builds and checks the sdist"] C --> D["ci_release_test_install.sh installs into a fresh venv"] D --> E["ci_assert_free_threaded.py checks installed imports"] D -->|Install or dependency failure| H["Job fails"] E -->|Version, origin, or GIL mismatch| H E -->|Success| F["Upload workflow artifact"] F --> G{"Publication enabled and requested?"} G -->|Yes| I["Release asset or confirmed PyPI upload"] G -->|No| J["Validation complete"] classDef failed fill:#fee2e2,stroke:#b91c1c,color:#111827 class H failedThe publication lifecycle is owned by
.github/actions/release-source-common/action.yml:60(installation) and:81(publication gates). The previous!cancelled()gates at lines 77,85, and 92 of the base version admitted a failed installation.
stateDiagram-v2 [*] --> Validating Validating --> Blocked: Build, check, install, or import fails Validating --> Validated: All validation succeeds Validated --> Complete: Publication disabled or not requested Validated --> Publishing: Publication enabled and requested Publishing --> Complete: Requested upload succeeds Publishing --> Blocked: Confirmation or upload fails Blocked --> [*] Complete --> [*]Review Requirements
Opened as a draft. Readiness requires checking the exact pushed head against the current remote main; merging is not part of this change.
Kernel Accuracy Requirements
Not applicable to code changes: no quantization math or kernel implementation changed. GPU execution, NVIDIA driver compatibility, multi-GPU streams/P2P, and native TorchAO GPU operators remain unverified because this device has no GPU. CPU tests and installation smoke are not native GPU qualification.
Notes
No PyPI upload/deletion, release creation, container-image publication, or release-workflow dispatch was performed. The tested artifact is a locally built source distribution; this does not retroactively certify the previously published PyPI release.
Self-hosted jobs now download the public image and provision runtime tools from the checkout. GPU CI must validate the image against runner drivers. Existing model/dataset mounts and GPU allocation remain required. ROCm and other backends are outside this CUDA CI change.