ci: move torch-tensorrt to GPU-only test requirements#21575
Merged
bhimrazy merged 2 commits intoLightning-AI:masterfrom Mar 9, 2026
Merged
ci: move torch-tensorrt to GPU-only test requirements#21575bhimrazy merged 2 commits intoLightning-AI:masterfrom
bhimrazy merged 2 commits intoLightning-AI:masterfrom
Conversation
torch-tensorrt is GPU-only (requires CUDA) and all its tests use `@RunIf(min_cuda_gpus=1)`, so installing it in CPU CI provides no value while blocking PyTorch version upgrades due to wheel compatibility lag.
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #21575 +/- ##
=========================================
- Coverage 87% 79% -8%
=========================================
Files 270 267 -3
Lines 24078 24019 -59
=========================================
- Hits 20869 18953 -1916
- Misses 3209 5066 +1857 |
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.
What does this PR do ?
torch-tensorrtis a GPU-only package (requires CUDA) and all its tests are gated behind@RunIf(min_cuda_gpus=1)— they're always skipped on CPU runners.Installing it in CPU CI provides zero value but blocks PyTorch version upgrades because
torch-tensorrtwheels often lag behind new PyTorch releases, causing resolution failures across the entire CPU test matrix.📚 Documentation preview 📚: https://pytorch-lightning--21575.org.readthedocs.build/en/21575/