AWS Lambda GPU

by Amazon · App or service · Text & code

Runs functions on cloud GPUs triggered by events, so queued model jobs and inference run serverlessly inside an AWS account.

mixed

Works for queued GPU inference inside AWS; slow to scale, no streaming, rough tooling

Latest · Nov 22Lambda Event Functions on Managed Instances can now run on EC2 G-series GPUs (G4dn, G5, G6, G6f, Gr6, Gr6f, G6e) as container images; generally available.

AccessAPIPriceEC2 On-Demand + 9.75% fee + $0.20/M requestsRuns onWeb

Who says what

Early days

Amazon, and Steef-Jan Wiggers reporting the launch

Event Functions now run on G-series GPUs at the EC2 On-Demand rate plus a 9.75% fee and $0.20 per million requests, billing while any environment is kept warm. Up to 48 invocations share one model copy, and the vLLM and SGLang images need no handler code.

Classmethod, xbill and Yan Cui, who deployed it

Classmethod got only G-family instances accepted (37 of 81 types), saw PyTorch run about 66 times faster on an L4 than on CPU, and found no Terraform support and zero GPU quota on fresh accounts. xbill waited 484 seconds for a version to go active and couldn't stream replies, and Yan Cui says new instances take tens of seconds to launch, a poor fit for traffic spikes.

What would settle it. A cold-start test under bursty load, and whether AWS brings GPUs to Web Functions for streamed replies.

Seen running on

MachineSpeedHowSeen by
1 run on 24 GB
L4no speed givenInfoQ · Nov 22

Evidence

  1. Nov 22
    Priced at EC2 On-Demand rate plus a 9.75 percent management fee and $0.20 per million requests; no duration charge, so instances bill while minimum environment count is above zero.
  2. Nov 22
    Up to 48 concurrent invocations per environment share a single copy of the model in GPU memory; scaling follows GPU utilization, CPU utilization and concurrency.
  3. Nov 22
    Seekable OCI lazy loading can cut environment start time by up to 70 percent; publishing a version downloads weights and warms the engine before the first event.
  4. Nov 22
    Five GPU base images: CUDA only, CuPy, PyTorch, vLLM and SGLang. The vLLM and SGLang images need no handler code; MODEL_ID points to Hugging Face, ModelScope, S3 or a local path.
  5. Nov 22
    Limits: container images up to 32 GB, 32 GB ephemeral storage, 2 to 32 GB memory, 3 to 48 GB accelerator memory, 15,000 vCPUs per capacity provider, timeout up to 90 minutes for async invocations.
Show all 12
  1. Nov 22
    AWS's Daniel Abib says rival serverless GPU services often sit outside your AWS environment, with no native event sources, identity or networking.
    Maker's claimDaniel AbibviaInfoQ
  2. Nov 22
    Of 81 accelerated instance types tried in us-east-1, 37 were accepted, all G-family; P-family, G7, Inferentia, Trainium, g5g and zip packages were refused.
    Hands-on testClassmethodviaInfoQ
  3. Nov 22
    A PyTorch benchmark ran about 66 times faster on the L4 than on the instance's CPU. Terraform and Cloud Control did not yet support AcceleratorConfig, and fresh accounts have zero GPU vCPU quota.
    Hands-on testClassmethodviaInfoQ
  4. Nov 22
    Friction: 484 seconds from publish to active version, a multi-platform image index was rejected, and the handler returns complete replies so time to first token couldn't be measured.
    Hands-on testxbillviaInfoQ
  5. Nov 22
    Judged simpler than self-run vLLM on EC2 for models behind events or queues; for streamed replies or full server control, run vLLM on an EC2 G6 yourself.
    Hands-on testxbillviaInfoQ
  6. Nov 22
    Managed instances take tens of seconds to launch new EC2 instances, so poorly suited to large unpredictable traffic spikes.
    Hands-on testYan CuiviaInfoQ
  7. Nov 22
    Managed Instances support only Event Functions, so GPU does not yet reach Web Functions; AWS has not said whether it will.

Everything said about AWS Lambda GPU, on the wire

Alternatives

Works with