For 9.75% on top of the EC2 instance price, AWS takes over drivers, CUDA, scaling and event wiring for your GPU inference. As of 18 November 2026, Lambda Event Functions can run on G-family GPU instances through Lambda Managed Instances (LMI), and the feature is GA from day one.
This is not classic Lambda with a GPU bolted on. LMI runs your functions on EC2 instances in your own account that Lambda provisions and scales, at EC2 prices. What is new is that those instances can now be G4dn, G5, G6, G6f, Gr6, Gr6f or G6e.
What changes
- OCI containers: GPU functions ship as images of up to 32 GB (10 GB per file), with up to 32 GB of NVMe ephemeral storage in
/tmp. - AWS base images:
base:cuda,cupy:cuda,pytorch:cuda, and for model serving,vllm:cudaandsglang:cuda. - Concurrency per GPU: each execution environment handles up to 48 concurrent requests on the same GPU. With vLLM, invocations share a single copy of the model and the server batches them.
- Limits: 2,048 to 32,768 MB of memory, 3 to 48 GB of accelerator memory, and a timeout of up to 90 minutes for asynchronous invocations and event source mappings.
- GPU metrics (utilisation, memory and power) in CloudWatch alongside the function's own.
AWS is explicit about the fit: inference, not training, and custom or small models rather than the large foundation models already on Bedrock. Think vision, speech, recommendations, small language models inside an app, transcoding and rendering.
What it costs
You pay for the underlying EC2 instance, plus a 9.75% management fee for GPU instances and the usual Lambda request fee of $0.20 per million requests. Savings Plans and Reserved Instances apply to the EC2 part.
Here is an example with the g6.2xlarge AWS uses in its demo, at $0.9776/hour on demand according to Vantage:
| Item | Plain EC2 | Lambda on GPU |
|---|---|---|
| Instance (730 h) | $713.6 | $713.6 |
| Management (9.75%) | — | $69.6 |
| 10 million requests | — | $2.0 |
| Monthly total | $713.6 | $785.2 |
That is roughly $72 a month per instance in exchange for not maintaining drivers, AMIs, scaling logic or SQS and S3 integrations. For a small team already living in Lambda, it is an easy call. For a large GPU fleet with Kubernetes and operators already in place, that 9.75% is a fixed overhead that grows with every instance.
How to set it up
There are four steps: create a capacity provider listing the allowed instance types, push the image to ECR, create the function with AcceleratorConfig, and publish a version. AWS's vLLM image fits in one line:
FROM public.ecr.aws/lambda/deep-learning-containers/vllm:cuda-v1You pick the model with the MODEL_ID variable (a Hugging Face or ModelScope repo, an S3 path or a local path) and the GPU memory with AcceleratorMemorySize. The capacity provider, the function and the version are created from the CLI:
aws lambda create-capacity-provider \
--cli-input-json file://create-capacity-provider_gpu.json
aws lambda create-function \
--cli-input-json file://create-gpu-llm-function.json
aws lambda publish-version --function-name lmi-gpu-inference \
--publish-to LATEST_PUBLISHEDThe cold start happens at publish time: each environment downloads the weights and warms up the engine before it goes live, so the first caller never pays for it. Responses are OpenAI-compatible completion objects, so any OpenAI client works. In AWS's test, four concurrent invocations took about as long as one.
Gotchas
- G-instance quota starts at 0 on new accounts ("Running On-Demand G and VT instances"). Request the increase first or the capacity provider won't come up.
- You pay for instances for as long as the capacity provider exists. When you're done testing, delete the function and then the capacity provider. This is the biggest mental shift from classic Lambda, which costs nothing at rest.
- You may get more GPU than you asked for:
AcceleratorMemorySizeis a floor, and Lambda places the function on the smallest available GPU that meets it. - Capacity: list several instance types so Lambda can fall back to another generation when capacity is tight, and if you need guaranteed availability, create an On-Demand Capacity Reservation that matches the configuration.
- Weights in S3: for production, AWS recommends copying the model to a bucket in the same Region and setting
VLLM_LOAD_FORMAT=runai_streamer, so cold starts don't depend on the Hugging Face Hub.
Sources
- AWS Lambda now supports GPU instances for Event Functions on Lambda Managed Instances — AWS News Blog, 2026-11-18
- g6.2xlarge pricing and specs — Vantage