AWS Lambda’s Managed Instances now run on EC2 G‑series GPU hardware, including G4dn, G5, G6, G6f, Gr6, Gr6f and G6e. The feature is generally available in commercial regions where both Managed Instances and those GPU families exist. It uses container images that Lambda provisions, patches and scales automatically.
Configuring a GPU‑enabled function
Developers build an OCI container, set a MODEL_ID environment variable, and add an AcceleratorConfig block that declares 16 GB of GPU memory. The function definition also includes a CapacityProviderConfig that caps per‑environment concurrency at four executions, each able to handle up to 48 simultaneous calls. All 48 calls share a single copy of the model in GPU memory, reducing cold‑start overhead.
Pricing and resource limits
Charges follow the EC2 on‑demand rate for the selected G‑series instance plus a 9.75 % management fee and the standard $0.20 per million requests. Limits are 32 GB for container images, 32 GB of ephemeral storage, 2–32 GB of memory, 3–48 GB of accelerator memory, and a timeout of up to 90 minutes for async or event‑source‑mapping invocations.
Early performance numbers
A PyTorch benchmark on a G‑type instance reported roughly a 66× speed‑up compared with CPU‑only Lambda. In a separate test on a g6.2xlarge using the vLLM base image, one environment served all 48 concurrent requests, delivering about 130 tokens per second per request and 3,400–3,600 tokens per second in total. The test also noted a 484‑second gap between publishing a new version and the environment becoming active.
Operational quirks to watch
New AWS accounts start with a zero GPU‑vCPU quota, so users must request additional quota (for example, 12 vCPUs for three g6.xlarge instances). Terraform and the Cloud Control provider do not yet support the AcceleratorConfig block, requiring manual CLI updates. The GPU path is limited to Event Functions; Web Functions cannot yet use GPUs.
Why it matters
Developers can now add GPU inference to serverless workloads without managing drivers or clusters, paying only for the underlying EC2 usage. However, they must secure GPU vCPU quota and work around tooling gaps before the feature can be used in production.
What it means for you
If you run a Lambda function on a Managed Instance with a GPU‑enabled capacity provider, you will see up to 48 requests share one model copy, paying only the EC2 on‑demand price plus the 9.75 % fee.
Our take: The addition of GPU hardware removes a major friction point for serverless inference, but quota limits and tooling gaps mean early adopters still need extra steps before production use.