fix: remove torchvision from SIZE_PROHIBITIVE_PACKAGES - #376
Open
Swigler wants to merge 1 commit into
Open
Conversation
torchvision is not present in GPU base images (only torch is), so excluding it causes silent ImportError at runtime when users explicitly request it via dependencies=["torchvision"]. The package is also only 7.3 MB now, not the 50 MB cited in the comment. Closes runpod#353
Swigler
force-pushed
the
fix/remove-torchvision-from-blacklist
branch
from
September 3, 2026 17:56
b26a2a5 to
e1e2fd7
Compare
Author
|
Ping — small fix, torchvision is flagged as prohibitive but it's a legitimate dependency for vision workloads. Ready for review. |
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
Remove
torchvisionfrom theSIZE_PROHIBITIVE_PACKAGESblacklist.Fixes #353
What was wrong
torchvisionwas unconditionally excluded from dependency installation because it was assumed to be:torchis)When a user explicitly requests
dependencies=["torchvision"], Flash silently strips it. The deploy succeeds, but the app crashes at runtime withImportError: No module named torchvision.What changed
One line removed from the
SIZE_PROHIBITIVE_PACKAGESfrozenset inbuild.py.torch(500 MB),torchaudio(30 MB), andtriton(150 MB) remain blacklisted as they are genuinely large and present in base images.Test plan
torchvisionis not in RunPod GPU base images (confirmed by issue reporter)