Lambda GPU: 48 Invocations Share One Model per Environment

Published • news
GPUServerlessAI Inference

AWS Lambda Managed Instances now runs GPU-backed Event Functions. At launch, functions can run on EC2 G4dn, G5, G6, G6f, Gr6, Gr6f, and G6e instance types, deployed as OCI images while Lambda handles provisioning, scaling, and event integration. The key specification: up to 48 concurrent invocations can share one copy of a model in GPU memory per execution environment.

InfoQ's Steef-Jan Wiggers reported the launch details and first community tests after AWS published the announcement on 18 November.

Architecture and concurrency model

GPU functions run as OCI images attached to a capacity provider, which lists allowed instance types, VPC settings, and a vCPU ceiling. Lambda picks the newest generation with available capacity and falls back to older generations. The function configuration adds an AcceleratorConfig block for 3 to 48 GB of accelerator memory, along with 2 to 32 GB of memory, up to 32 GB of ephemeral storage, and container images up to 32 GB. Timeout reaches 90 minutes for asynchronous and event-source-mapping invocations.

Concurrency is set with PerExecutionEnvironmentMaxConcurrency; scaling follows GPU utilization, CPU utilization, and concurrent request counts. Publishing a version provisions environments and downloads weights before the first event lands. AWS reports Seekable OCI lazy loading can cut environment start time by up to 70 percent, a vendor-reported figure.

Inference tooling

AWS ships five curated GPU base images: CUDA only, CuPy, PyTorch, vLLM, and SGLang. The two inference-server images need no handler code. The vLLM image bundles the vLLM server, PyTorch, Transformers, and the CUDA toolkit, plus a runtime interface client built for concurrent invocations. A single MODEL_ID variable accepts a Hugging Face or ModelScope repository, an S3 prefix, or a local path; changing models is a config edit and a new version publish.

That fits constrained-inference workloads where the model is a step inside an event pipeline rather than the product. Our earlier constrained-inference analysis covers that trade-off.

A community test by AWS Community Builder xbill, reported by InfoQ, ran Gemma 4 E2B on a single g6.2xlarge with Google's 4-bit QAT weights and a speculative-decoding drafter. All 417 calls across 48 simultaneous requests succeeded. InfoQ reports roughly 130 tokens per second for one request and 3,400–3,600 tokens per second at 48-way concurrency.

Pricing and limits

InfoQ reports the GPU tier is priced at the EC2 On-Demand rate plus a 9.75 percent management fee and $0.20 per million requests. The CPU-only tier carries a 15 percent fee, so the GPU surcharge is lower on paper, though instance cost dominates. Savings Plans and Reserved Instances apply to the underlying instance; there is no duration charge while the minimum environment count stays above zero.

A capacity provider caps at 15,000 vCPUs. Classmethod's Akaike tested every accelerated instance type in us-east-1 and found 37 of 81 accepted, all G-family. P-family GPUs, G7, Inferentia, Trainium, and Graviton-based g5g were rejected, as were zip packages. Fresh accounts have a GPU vCPU quota of zero, so teams must request a quota increase before first use.

Deployment modelCooling-off to serveConcurrency ceilingCost model
Lambda GPU Event Functions~484 seconds from publish to active (reported)48 invocations / environmentEC2 On-Demand + 9.75% fee + $0.20/M requests
Dedicated EC2 G6 + self-managed vLLMInstance boot + model loadTuned by operatorEC2 On-Demand only
Serverless GPU endpoints (external providers)VariesVariableMargin included in endpoint pricing

AI Mastery analysis

The 48-invocation ceiling does the main design work. It makes one model copy serve many requests, approaching dedicated-inference utilization while keeping Lambda event-source ergonomics. But the shape is steady-state, queue-driven traffic rather than bursty chat. Yan Cui's December Managed Instances analysis still applies: launching an EC2 instance takes tens of seconds, which is a poor fit for large unpredictable spikes.

Launch constraints are material. At launch, AcceleratorConfig was absent from Terraform and the Cloud Control provider, creating a gap for declarative provisioning teams. The reported 484-second publish-to-active delay fits batch pipelines but not rapid iteration. The default handler returns complete replies instead of streaming, so time-to-first-token could not be measured in xbill's test. The practical fork: use Lambda GPU for event-backed, queue-driven model serving; run self-managed EC2 vLLM when streamed replies or full server control are required.

The deeper shift is the thinning boundary between serverless abstraction and GPU serving infrastructure—infrastructure rewrites, not model weights, drove 2026's practical AI gains. AWS is consolidating VPC, identity, event sources, and EC2 billing around GPU capacity in a way external serverless GPU vendors cannot easily match inside an AWS-native stack.

Sources

Frequently asked questions

How much does AWS Lambda GPU inference cost?

InfoQ reports the GPU tier is priced at the EC2 On-Demand instance rate plus a 9.75 percent management fee and $0.20 per million requests. The CPU-only tier carries a 15 percent fee, so the GPU management surcharge is lower on paper. Savings Plans and Reserved Instances apply to the underlying instance, with no duration charge while the minimum environment count stays above zero.

How many concurrent requests can share one GPU model on Lambda?

Up to 48 concurrent invocations can share one copy of a model in GPU memory per execution environment. Scaling follows GPU utilization, CPU utilization, and concurrent request counts. In a community test on one g6.2xlarge, all 417 calls across 48 simultaneous requests succeeded.

Which EC2 instance types does Lambda GPU support?

At launch, Lambda GPU supports G4dn, G5, G6, G6f, Gr6, Gr6f, and G6e instance types. Classmethod's testing in us-east-1 found 37 of 81 accelerated instance types accepted, all G-family. P-family GPUs, G7, Inferentia, Trainium, and Graviton-based g5g were rejected.

Can Lambda GPU functions stream tokens?

Not in the default handler path. The handler returns a complete reply rather than a stream, so time-to-first-token could not be measured in the reported xbill test. For streamed replies or full server control, AWS Community Builder xbill recommends running vLLM on EC2 G6 yourself.

What are the memory and storage limits for Lambda GPU functions?

GPU functions accept 3 to 48 GB of accelerator memory, 2 to 32 GB of standard memory, up to 32 GB of ephemeral storage, and container images up to 32 GB. Timeouts extend to 90 minutes for asynchronous and event-source-mapping invocations. Each capacity provider is capped at 15,000 vCPUs.

Free interactive tools for the decisions this piece raises.

Related Reading