AivexaNewsSearch
AI news for builders and product teamsChecked every hour

AWS Lambda Now Runs GPU Inference with 48 Concurrent Invocations Sharing One Model per GPU

Collected Nov 22, 2026

AWS has added GPU support to Lambda, letting Event Functions deployed on Lambda Managed Instances run on EC2 G-series hardware. At launch the supported families are G4dn, G5, G6, G6f, Gr6, Gr6f and G6e, deployed as container images and triggered by the same event sources as any other function. The feature is generally available in the commercial regions where both Managed Instances and G-series instances exist. InfoQ's Steef-Jan Wiggers reported the launch.

Managed Instances, covered by InfoQ last December, let a function run on EC2 capacity the customer selects and pays for, with Lambda handling provisioning, patching and scaling and several invocations sharing one execution environment. GPUs were absent from that first release. Daniel Abib, a senior specialist solutions architect at AWS, describes the operator experience as building an OCI image, pointing the function at it, and leaving provisioning, scaling and event integration to Lambda, with no GPU drivers, CUDA versions, AMIs, clusters or device plugins to reconcile.

Configuration happens through a capacity provider, which lists allowed instance types, a VPC and a vCPU ceiling. Lambda picks the newest generation with available capacity and falls back to older ones when newer hardware is short. A snippet from the launch shows an InstanceRequirements block permitting g5.2xlarge, g6.2xlarge and g6e.2xlarge, with an auto scaling mode capped at 96 vCPUs. The function itself declares GPU memory through a new AcceleratorConfig block alongside memory, timeout, storage and per-environment concurrency; the example sets 16 GiB of accelerator memory, a 900-second timeout, 32 GB of ephemeral storage, a MODEL_ID environment variable and a per-environment concurrency of four.

Concurrent invocations inside one environment share a single copy of the model in GPU memory, up to 48 per environment, and scaling follows GPU utilization, CPU utilization and concurrency. Publishing a version provisions environments, downloads weights and warms the inference engine before the first event arrives. Seekable OCI lazy loading can cut environment start time by up to 70 percent, according to the launch post.

Five GPU base images ship with the feature: CUDA only, CuPy, PyTorch, vLLM and SGLang. The two inference servers need no handler code. A MODEL_ID variable points at a Hugging Face or ModelScope repository, an S3 prefix or a local path, and swapping models becomes a configuration change followed by a new version. Published limits include container images up to 32 GB, 32 GB of ephemeral storage, 2 to 32 GB of memory, 3 to 48 GB of accelerator memory, 15,000 vCPUs per capacity provider, and a timeout of up to 90 minutes for asynchronous and event source mapping invocations. Abib draws the contrast with serverless GPU offerings elsewhere in AWS terms: those services often sit outside the customer's AWS environment, without native event sources, identity or networking.

Early hands-on reports arrived within a day. Classmethod's Akaike, who had corrected a conference talk in December after finding that no G-type instance was accepted, tried every accelerated instance type in us-east-1 and found 37 of 81 accepted, all in the G family. P-family, G7, Inferentia, Trainium and the Graviton-based g5g were refused, as were zip packages. A PyTorch benchmark ran roughly 66 times faster on the L4 GPU than on the instance's CPU. Two gaps surfaced: neither Terraform nor the Cloud Control provider recognized AcceleratorConfig, and the GPU vCPU quota in a fresh account is zero. Akaike notes that using g6.xlarge at 4 vCPUs with the default three instances requires a quota of 12 vCPUs. A Terraform provider issue and pull request opened on 16 November by a user named sasidhar-aws, plus a second pull request from the same user, remain open.

A second test, by an AWS Community Builder writing as xbill, ran Gemma 4 E2B on a single g6.2xlarge through the vLLM image, with 4-bit QAT weights and a speculative-decoding drafter baked into a 9 GB image. One environment served all 48 simultaneous requests and all 417 calls succeeded, at roughly 130 tokens per second for a single request and 3,400 to 3,600 at 48. The friction was in the pipeline rather than the GPU: 484 seconds from publish to an active version, a Docker image index Lambda rejected until pushed as a single-platform manifest, and a handler returning complete replies, which meant time to first token could not be measured. His conclusion: for a model behind events, queues or other AWS services, the Lambda GPU function is the simpler route, keeping the drafter for chats with a few users and publishing without it for heavy batch load. Where streamed replies or full server control are needed, he advises running vLLM on an EC2 G6 directly.

Pricing follows the Managed Instances model, with a lower fee for GPUs than the 15 percent charged on CPU instance types. Customers pay the EC2 On-Demand rate plus a 9.75 percent management fee, plus the standard $0.20 per million requests. Savings Plans and Reserved Instances apply to the instance, and there is no duration charge, so an instance bills for as long as the minimum environment count stays above zero. Yan Cui's December analysis of the model, written when the documentation still said GPU instances were not supported, applies unchanged: regular Lambda functions scale quickly from a large shared EC2 pool, whereas managed instances take tens of seconds to launch new EC2 instances, making them a poor fit for large, unpredictable traffic spikes. Managed Instances also still support only Event Functions, so the GPU path does not reach Web Functions, Lambda's HTTP-server shape added this year, and AWS has not said whether it will.

This suggests the trade-off developers are being asked to accept is operational simplicity in exchange for coarser scaling granularity and less control over the serving stack. The vLLM and SGLang images remove handler code and driver management, but a handler that only returns complete replies, rather than streaming, limits use in chat interfaces where time to first token is the metric that matters. The shared-model concurrency design is efficient for many small requests against one model, and less so for workloads that need several large models resident at once, since each accelerator is tied to a single environment's model copy. The zero default vCPU quota is likely to be the first blocker for new accounts, ahead of any performance concern.

Why it matters: teams already running event-driven workloads on AWS can now put small to mid-size models behind the same event sources, identity and networking as the rest of their stack, without operating GPU clusters or inference servers. Developers should budget for quota requests, check whether their infrastructure-as-code tooling understands AcceleratorConfig, and confirm that non-streaming responses suit their user experience; where streaming or fine-grained server control is required, dedicated EC2 GPU instances remain the more capable option. The absence of Web Functions support, and AWS's silence on adding it, is a limit worth planning around for HTTP-facing products.

Read at InfoQ · AI, ML & Data Engineering

Based on reporting from the original publisher. Visit the source for full context and later updates.

Publisher excerpt

AWS Lambda now runs Event Functions on EC2 G-series GPU instances through Lambda Managed Instances, with up to 48 concurrent invocations sharing one model per GPU, vLLM and SGLang base images that need no handler code, and 90-minute asynchronous timeouts. Billing is the instance price plus a 9.75 percent fee; first hands-on tests report an eight-minute publish and no response streaming. By Steef-Jan Wiggers