newsfilter
← Latest News
AWS Blog·

AWS Lambda now supports GPU instances for Event Functions on Lambda Managed Instances

Summary

  • GPU support is now available for EC2 G-series instances for Event Functions running on AWS Lambda Managed Instances.
  • Users can run GPU-accelerated workloads including machine learning inference, media processing, rendering, & scientific computing.
  • GPU-accelerated functions deploy as Open Container Initiative (OCI) container images without requiring GPU drivers, CUDA versions, or AMIs.
  • Lambda handles provisioning, scaling, event integration, & billing while providing Amazon EC2 pricing & specialized compute.
  • The service maximizes GPU utilization by consolidating functions onto instances & keeping GPUs busy across concurrent requests.
  • Workloads include custom model inference, agentic event-driven AI, media processing, 3D rendering, & scientific computing.
  • Functions integrate with Lambda durable functions for multi-step workflows & Lambda MicroVMs for isolated execution.
  • Extended function timeouts up to 90 minutes support batch jobs & long-running GPU tasks.
  • Supported configurations include container images up to 32 GB, 32 GB of ephemeral storage, 2,048 to 32,768 MB of memory, & 3 to 48 GB of accelerator memory.
  • Each execution environment supports up to 48 concurrent requests & up to 15,000 vCPUs per capacity provider.
  • Users create a capacity provider to specify GPU instance types & allow Lambda to auto-scale & select cost-effective options.
  • Curated base images such as vLLM, PyTorch, & CUDA are available to simplify setup without writing inference server code.
  • Functions use AcceleratorConfig to request minimum GPU memory & PerExecutionEnvironmentMaxConcurrency to control request batching.
  • Publishing a function version provisions execution environments & warms up the model before the version becomes active.
  • The service supports standard OpenAI request bodies & returns standard OpenAI completion objects.
  • Production deployments can stream model weights from an S3 bucket to reduce startup time & remove Hugging Face Hub dependencies.
  • GPU metrics including utilization, memory usage, & power utilization appear in Amazon CloudWatch & the AWS Lambda console.
  • GPU instances run as Amazon EC2 On-Demand instances compatible with existing Savings Plans & Reserved Instances.
  • The feature is generally available for Amazon EC2 G-series instances including G4dn, G5, G6, G6f, Gr6, Gr6f, & G6e.

AWS Lambda now supports GPU instances (G-series) for Event Functions running on Lambda Managed Instances, enabling serverless GPU workloads like machine learning inference, media processing, and rendering. Lambda handles all infrastructure tasks, including instance lifecycle, driver management, and auto scaling, while maximizing GPU utilization across concurrent requests with standard EC2 pricing plus a management fee

Keywords
Announcements, AWS Lambda, Compute, Serverless