-
Notifications
You must be signed in to change notification settings - Fork 32
docs: Remove numpy from auto-excluded build packages #581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,8 +84,7 @@ Image tags follow the pattern `py{version}-{tag}` (for example, `runpod/flash:py | |
|
|
||
| Runpod Serverless has a **1.5GB deployment limit**. Flash automatically excludes packages that are pre-installed in the base image: | ||
|
|
||
| - `torch`, `torchvision`, `torchaudio` | ||
| - `numpy`, `triton` | ||
| - `torch`, `torchvision`, `torchaudio`, `triton` | ||
|
|
||
| These packages are excluded at archive time, so you don't need to specify them manually. | ||
|
|
||
|
|
@@ -101,8 +100,9 @@ flash build --exclude scipy,pandas | |
|
|
||
| | Resource type | Base image | Auto-excluded packages | | ||
| |--------------|------------|------------------------| | ||
| | GPU | PyTorch base | `torch`, `torchvision`, `torchaudio`, `numpy`, `triton` | | ||
| | CPU | Python slim | `torch`, `torchvision`, `torchaudio`, `numpy`, `triton` | | ||
| | GPU | PyTorch base | `torch`, `torchvision`, `torchaudio`, `triton` | | ||
| | CPU | Python slim | `torch`, `torchvision`, `torchaudio`, `triton` | | ||
|
|
||
|
|
||
| <Tip> | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Citation: PR #263 renames |
||
|
|
@@ -126,7 +126,7 @@ def my_function(data): | |
|
|
||
| ### Archive is too large | ||
|
|
||
| Base image packages (`torch`, `numpy`, `triton`, etc.) are auto-excluded. If the archive is still too large, use `--exclude` to skip additional packages or `--no-deps` to skip transitive dependencies: | ||
| Some CUDA packages (`torch`, `torchvision`, `torchaudio`, `triton`) are auto-excluded. If the archive is still too large, use `--exclude` to skip additional packages or `--no-deps` to skip transitive dependencies: | ||
|
|
||
| ```bash | ||
| flash build --exclude scipy,pandas | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Citation: Updated to match the new
SIZE_PROHIBITIVE_PACKAGESconstant insrc/runpod_flash/cli/commands/build.py. Each package is annotated with its approximate size: torch (~500 MB), torchvision (~50 MB), torchaudio (~30 MB), triton (~150 MB).View source