- Engineering
- 6 min read
Serverless GPU on Cloud Run: what we measured before offering it
Cloud Run + NVIDIA L4 + Ollama
On this page
AIUBY Compute runs containerized applications in the cloud. Before accepting GPU in the runtime preview, we did what we do with any resource that costs money while idle: we stood up a real service, measured it and deleted it. This post covers what came out of that test, without rounding in our favor.
#Why measure first
Serverless GPU promises two things that pull against each other: scaling to zero when nobody is using it and responding quickly when someone shows up. What decides whether the promise holds is the time between the request and the first response with the model already in video memory. That number is not in any price table; it only shows up when you measure.
#The test
- A Cloud Run service in the
europe-west1region (Belgium). - One NVIDIA L4 (24 GB of video memory), on the minimum machine Cloud Run requires for GPU: 4 vCPU and 16 GB.
- An Ollama container serving the
gemma3:1bmodel. - One replica, scale to zero enabled.
The service was deleted right after the measurements. Test resources do not stay up.
#The numbers
| What we measured | Result |
|---|---|
| Service deployment, from request to ready | 23 seconds |
| First load of the model onto the card | about 60 seconds |
| Model in video memory | 100%, nothing fell back to the CPU |
| Generation with the model warm | about 185 tokens per second |
The honest reading: deployment is fast, but the first request after scaling to zero pays for loading the model. With a 1 billion parameter model it took about 60 seconds; larger models take longer. If you need an immediate response, you have to keep an instance running, and then the math changes, because with GPU Cloud Run bills for the running instance, with or without requests.
Limit
#Quota and region
The least obvious part was not technical. In europe-west1 the account received quota for three L4 cards automatically, on the first deploy. In us-central1 the quota was zero and the increase request was denied automatically, with no email. And in São Paulo there is nothing to request: Cloud Run does not offer the L4 in southamerica-east1.
For anyone serving Brazil, this has two consequences: network latency to Europe and data processed outside the country. That is why the region is shown on screen and in the documentation of every GPU application, instead of being buried in a detail.
#What it costs
According to the public Cloud Run price table read on November 12, 2026, an L4 with 4 vCPU and 16 GB in europe-west1 costs about US$1.05 per running hour: the card accounts for two thirds and the rest is CPU and memory, which the GPU forces you to buy along with it. Idle, with scale to zero, it costs nothing.
#How it landed in the preview
The test became a product rule. In the runtime preview, a GPU application:
- uses one card, on its exact machine (the L4 with 4 vCPU and 16 GB), with one replica;
- is created in the card's region, which stays visible;
- has a deadline: it stops on its own after 1 hour by default, 2 at most, and redeploying does not renew it;
- shares a small cap on GPU applications across the whole platform.
The limits live in code, not in configuration: a wrong value in the environment cannot open up the cost.
[config.hardware]
provider = "gcp"
cpu = 4
memoryMb = 16384
[config.hardware.gpu]
sku = "gcp-cloudrun-l4"
count = 1The full list is in Compute, in the documentation.
#What is still missing
- When this test was done, GPU existed only in the preview. Today it is also sold, per minute of running instance: GPU for sale on AIUBY Compute, by the minute.
- There is no GPU in Brazil.
- Cold start with large models has not been measured by us yet; we will publish when it is.



