diff --git a/src/runpod_flash/cli/commands/build.py b/src/runpod_flash/cli/commands/build.py index 25500ee2..202acbfb 100644 --- a/src/runpod_flash/cli/commands/build.py +++ b/src/runpod_flash/cli/commands/build.py @@ -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") diff --git a/src/runpod_flash/cli/docs/flash-build.md b/src/runpod_flash/cli/docs/flash-build.md index afafb44c..231170ed 100644 --- a/src/runpod_flash/cli/docs/flash-build.md +++ b/src/runpod_flash/cli/docs/flash-build.md @@ -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 diff --git a/src/runpod_flash/cli/docs/flash-deploy.md b/src/runpod_flash/cli/docs/flash-deploy.md index 0ee5380f..15a1567c 100644 --- a/src/runpod_flash/cli/docs/flash-deploy.md +++ b/src/runpod_flash/cli/docs/flash-deploy.md @@ -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 @@ -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 diff --git a/src/runpod_flash/core/resources/app.py b/src/runpod_flash/core/resources/app.py index d3a32024..2d065761 100644 --- a/src/runpod_flash/core/resources/app.py +++ b/src/runpod_flash/core/resources/app.py @@ -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 diff --git a/src/runpod_flash/core/resources/constants.py b/src/runpod_flash/core/resources/constants.py index d7ab668b..c443546d 100644 --- a/src/runpod_flash/core/resources/constants.py +++ b/src/runpod_flash/core/resources/constants.py @@ -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 diff --git a/tests/unit/core/resources/test_app.py b/tests/unit/core/resources/test_app.py index 3f3babec..09700283 100644 --- a/tests/unit/core/resources/test_app.py +++ b/tests/unit/core/resources/test_app.py @@ -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