From 0d86b7a1b72270081d5cf9c511deb2510cad0a46 Mon Sep 17 00:00:00 2001 From: "promptless[bot]" <179508745+promptless[bot]@users.noreply.github.com> Date: Thu, 26 Mar 2026 13:51:06 +0000 Subject: [PATCH] Update Flash Python version requirement to 3.12 only --- flash/apps/build-app.mdx | 2 +- flash/cli/build.mdx | 11 +++-------- flash/overview.mdx | 2 +- flash/quickstart.mdx | 2 +- flash/troubleshooting.mdx | 8 ++++---- tutorials/flash/build-rest-api-with-load-balancer.mdx | 2 +- tutorials/flash/image-generation-with-sdxl.mdx | 2 +- tutorials/flash/text-generation-with-transformers.mdx | 2 +- 8 files changed, 13 insertions(+), 18 deletions(-) diff --git a/flash/apps/build-app.mdx b/flash/apps/build-app.mdx index 286dddef..1458ec7e 100644 --- a/flash/apps/build-app.mdx +++ b/flash/apps/build-app.mdx @@ -14,7 +14,7 @@ If you haven't already, we recommend starting with the [Quickstart](/flash/quick - You've [created a Runpod account](/get-started/manage-accounts). - You've [created a Runpod API key](/get-started/api-keys). -- You've installed [Python 3.10-3.12](https://www.python.org/downloads/) (3.13+ is not yet supported). +- You've installed [Python 3.12](https://www.python.org/downloads/). ## Step 1: Initialize a new project diff --git a/flash/cli/build.mdx b/flash/cli/build.mdx index eb8abdbc..ebe65cff 100644 --- a/flash/cli/build.mdx +++ b/flash/cli/build.mdx @@ -45,7 +45,7 @@ Comma-separated list of packages to exclude from the build (e.g., `torch,torchvi ## What happens during build -1. **Python version validation**: Verifies your local Python version is supported (3.10, 3.11, or 3.12). +1. **Python version validation**: Verifies your local Python version is supported (3.12). 2. **Function discovery**: Finds all `@Endpoint` decorated functions. 3. **Grouping**: Groups functions by their endpoint configuration. 4. **Manifest generation**: Creates `.flash/flash_manifest.json` with endpoint definitions. @@ -71,14 +71,9 @@ Flash automatically handles cross-platform builds: ### Python version in deployed workers -Your local Python version does not affect what runs in the cloud. `flash build` downloads wheels for the container's Python version automatically. +All Flash workers (GPU and CPU) run Python 3.12. `flash build` downloads wheels targeting Python 3.12 automatically. -| Worker type | Python version | Notes | -|-------------|----------------|-------| -| GPU | 3.12 only | The GPU base image includes multiple interpreters (3.9–3.14) for interactive pod use, but torch and CUDA libraries are installed only for 3.12. | -| CPU | 3.10, 3.11, or 3.12 | Configurable via the `PYTHON_VERSION` build arg. | - -Image tags follow the pattern `py{version}-{tag}` (for example, `runpod/flash:py3.12-latest`). +Image tags follow the pattern `py3.12-{tag}` (for example, `runpod/flash:py3.12-latest`). ## Managing deployment size diff --git a/flash/overview.mdx b/flash/overview.mdx index 9afb2fa4..169e3148 100644 --- a/flash/overview.mdx +++ b/flash/overview.mdx @@ -56,7 +56,7 @@ Flash requires a Runpod account with a verified email address. -Flash requires [Python 3.10, 3.11, or 3.12](https://www.python.org/downloads/) (Python 3.13+ is not yet supported), and is currently available for macOS and Linux. +Flash requires [Python 3.12](https://www.python.org/downloads/) and is currently available for macOS and Linux. Install Flash using `pip` or `uv`: diff --git a/flash/quickstart.mdx b/flash/quickstart.mdx index b8e48845..ad1a1db0 100644 --- a/flash/quickstart.mdx +++ b/flash/quickstart.mdx @@ -14,7 +14,7 @@ This quickstart gets you running GPU workloads on Runpod in minutes. You'll exec - [Runpod account](/get-started/manage-accounts) with a verified email address. - [An API key](/get-started/api-keys) with **All** access permissions to your Runpod account. -- [Python 3.10-3.12](https://www.python.org/downloads/) installed (3.13+ is not yet supported). +- [Python 3.12](https://www.python.org/downloads/) installed. - [uv](https://docs.astral.sh/uv/) installed. ## Step 1: Install Flash diff --git a/flash/troubleshooting.mdx b/flash/troubleshooting.mdx index 781e1d39..f52bf0db 100644 --- a/flash/troubleshooting.mdx +++ b/flash/troubleshooting.mdx @@ -209,14 +209,14 @@ Duplicate route 'POST /process' in endpoint 'my-api' **Error:** ``` Python 3.13 is not supported for Flash deployment. -Supported versions: 3.10, 3.11, 3.12 +Supported versions: 3.12 ``` -**Cause:** Flash requires Python 3.10, 3.11, or 3.12. +**Cause:** Flash requires Python 3.12. **Solution:** -Switch to a supported Python version using a virtual environment: +Switch to Python 3.12 using a virtual environment: ```bash # Using pyenv @@ -228,7 +228,7 @@ uv venv --python 3.12 source .venv/bin/activate ``` -Alternatively, use a Docker container with a supported Python version for your build environment. +Alternatively, use a Docker container with Python 3.12 for your build environment. ## Deployment errors diff --git a/tutorials/flash/build-rest-api-with-load-balancer.mdx b/tutorials/flash/build-rest-api-with-load-balancer.mdx index e46259aa..5abc959c 100644 --- a/tutorials/flash/build-rest-api-with-load-balancer.mdx +++ b/tutorials/flash/build-rest-api-with-load-balancer.mdx @@ -11,7 +11,7 @@ This tutorial shows you how to build a REST API using Flash load-balanced endpoi - You've [created a Runpod account](/get-started/manage-accounts) - You've [created a Runpod API key](/get-started/api-keys) -- You've installed [Python 3.10-3.12](https://www.python.org/downloads/) (3.13+ is not yet supported). +- You've installed [Python 3.12](https://www.python.org/downloads/). - You've completed the [Flash quickstart](/flash/quickstart) or are familiar with Flash basics ## What you'll build diff --git a/tutorials/flash/image-generation-with-sdxl.mdx b/tutorials/flash/image-generation-with-sdxl.mdx index e4042bf7..e72bc2ac 100644 --- a/tutorials/flash/image-generation-with-sdxl.mdx +++ b/tutorials/flash/image-generation-with-sdxl.mdx @@ -15,7 +15,7 @@ This tutorial shows you how to build an image generation script using Flash and - You've [created a Runpod account](/get-started/manage-accounts). - You've [created a Runpod API key](/get-started/api-keys). -- You've installed [Python 3.10-3.12](https://www.python.org/downloads/) (3.13+ is not yet supported). +- You've installed [Python 3.12](https://www.python.org/downloads/). - You've completed the [Flash quickstart](/flash/quickstart) or are familiar with Flash basics. ## What you'll build diff --git a/tutorials/flash/text-generation-with-transformers.mdx b/tutorials/flash/text-generation-with-transformers.mdx index 739961f7..64695b20 100644 --- a/tutorials/flash/text-generation-with-transformers.mdx +++ b/tutorials/flash/text-generation-with-transformers.mdx @@ -11,7 +11,7 @@ This tutorial shows you how to build a text generation script using Flash and Hu - You've [created a Runpod account](/get-started/manage-accounts). - You've [created a Runpod API key](/get-started/api-keys). -- You've installed [Python 3.10-3.12](https://www.python.org/downloads/) (3.13+ is not yet supported). +- You've installed [Python 3.12](https://www.python.org/downloads/). - You've completed the [Flash quickstart](/flash/quickstart) or are familiar with Flash basics. ## What you'll build