Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/runpod_flash/cli/commands/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def run_build(
Path to the created artifact archive

Raises:
typer.Exit: On build failure (including when archive exceeds 500 MB)
typer.Exit: On build failure (including when archive exceeds 1500 MB)
"""
if not validate_project_structure(project_dir):
console.print("[red]Error:[/red] Not a valid Flash project")
Expand Down
2 changes: 1 addition & 1 deletion src/runpod_flash/cli/docs/flash-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ If a package doesn't have pre-built Linux x86_64 wheels:

### Size Limits

Runpod Serverless enforces a **500MB limit** on deployment archives. Exceeding this will cause your deployment to fail.
Runpod Serverless enforces a **1.5GB limit** on deployment archives. Exceeding this will cause your deployment to fail.

### Excluding Base Image Packages

Expand Down
4 changes: 2 additions & 2 deletions src/runpod_flash/cli/docs/flash-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Only installs direct dependencies specified in `Endpoint` definitions. Useful wh
flash deploy --exclude torch,torchvision,torchaudio
```

Skips specified packages during dependency installation. Critical for staying under Runpod's 500MB deployment limit. See [flash build](./flash-build.md#managing-deployment-size) for base image package reference.
Skips specified packages during dependency installation. Critical for staying under Runpod's 1.5GB deployment limit. See [flash build](./flash-build.md#managing-deployment-size) for base image package reference.

## Preview Mode

Expand Down Expand Up @@ -282,7 +282,7 @@ If the build phase fails, see [flash build troubleshooting](./flash-build.md#tro

### Deployment Size Limit

**Problem**: Deployment exceeds Runpod's 500MB limit
**Problem**: Deployment exceeds Runpod's 1.5GB limit

**Solution**: Use `--exclude` to skip packages already in your base image:
```bash
Expand Down
2 changes: 1 addition & 1 deletion src/runpod_flash/core/resources/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ async def upload_build(self, tar_path: Union[str, Path]) -> Dict[str, Any]:

Args:
tar_path: Path to the tarball file (string or Path object)
Must be .tar.gz or .tgz, under 500MB
Must be .tar.gz or .tgz, under 1500MB

Returns:
Dictionary containing build information including the build ID
Expand Down
2 changes: 1 addition & 1 deletion src/runpod_flash/core/resources/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _endpoint_domain_from_base_url(base_url: str) -> str:

# Flash app artifact upload constants
TARBALL_CONTENT_TYPE = "application/gzip"
MAX_TARBALL_SIZE_MB = 500 # Maximum tarball size in megabytes
MAX_TARBALL_SIZE_MB = 1500 # Maximum tarball size in megabytes
VALID_TARBALL_EXTENSIONS = (".tar.gz", ".tgz") # Valid tarball file extensions
GZIP_MAGIC_BYTES = (0x1F, 0x8B) # Magic bytes for gzip files

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/core/resources/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def fake_stat(self, *args, **kwargs):
result = real_stat(self, *args, **kwargs)
# Return a mock with huge size but real st_mode for is_file()
mock_result = MagicMock(wraps=result)
mock_result.st_size = 600 * 1024 * 1024 # 600MB
mock_result.st_size = 1600 * 1024 * 1024 # 1600MB
mock_result.st_mode = result.st_mode
return mock_result

Expand Down
Loading