---
title: "AWS Lambda adds GPU inference with 48 invocations per GPU | Daniel Segovia"
description: "Lambda now supports GPU inference with up to 48 concurrent invocations sharing one model per GPU. This reshapes serverless for AI if you measure well."
url: https://danielsegovia.com/en/architecture/aws-lambda-gpu-inference-48-invocations-per-gpu/
lang: en
author: "Daniel Segovia"
published: 2026-11-23T10:59:00.000Z
modified: 2026-11-23T05:01:14.583Z
section: "Architecture"
---

1.  [Home](https://danielsegovia.com/en/)
2.  [Architecture](https://danielsegovia.com/en/architecture/)
3.  AWS Lambda adds GPU inference with 48 invocations per GPU

# AWS Lambda adds GPU inference with 48 invocations per GPU

[Architecture](https://danielsegovia.com/en/architecture/) By [Daniel Segovia](https://danielsegovia.com/en/about/) · November 23, 2026 · 3 min read

Lambda now supports GPU inference with up to 48 concurrent invocations sharing one model per GPU. This reshapes serverless for AI if you measure well.

In this post

1.  [What happened](#what-happened)
2.  [Why it matters](#why-it-matters)
3.  [Multi‑tenancy and isolation](#multi-tenancy-and-isolation)
4.  [Latency and cold starts](#latency-and-cold-starts)
5.  [Batching and throughput](#batching-and-throughput)
6.  [Costs and limits that matter](#costs-and-limits-that-matter)
7.  [What I’d do before migrating](#what-i-d-do-before-migrating)

AWS Lambda can now run GPU inference on Managed Instances and allow up to 48 concurrent invocations per GPU sharing a single copy of the model in VRAM. You deploy an OCI image, use the same event sources, and pay EC2 On‑Demand for the instance plus a 9.75% management fee and 0.20 USD per million requests. If you were on the fence about serverless for models, the board just changed.

## What happened

Lambda enabled G‑family GPUs for Managed Instances running containerized functions. Architecture-relevant details:

-   Per‑environment concurrency: up to 48 invocations share *one* model copy in GPU memory.
-   Base images: CUDA, CuPy, PyTorch, vLLM, and SGLang, ready for inference.
-   Model via config: `MODEL_ID` can point to Hugging Face, ModelScope, S3, or a local path.
-   Provisioning: publishing a version provisions environments, downloads weights, and warms the engine.
-   Faster starts: Seekable OCI and lazy loading claim up to 70% shorter environment startup.
-   Scaling driven by GPU/CPU utilization and concurrency.
-   Limits: image up to 32 GB, ephemeral storage 32 GB, memory 2–32 GB, accelerator memory 3–48 GB, and timeouts up to 90 minutes for async and event source mappings.

## Why it matters

With 48 invocations sharing a model, you stop paying to load the same checkpoint N times. You also get native events, VPC, IAM, and networking within your account. For many teams, this removes the old trade‑off between rolling your own cluster and shipping prompts to a black‑box provider. If security is top of mind, this helps compared to the risks I discussed when [cheap inference providers were stealing keys and prompts](https://danielsegovia.com/en/security/dragos-cheap-inference-providers-key-theft-openrouter/).

## Multi‑tenancy and isolation

The model is shared in VRAM, invocations aren’t. Great for efficiency, but watch logical isolation and queuing. My rules of thumb:

-   Don’t mix tenants with wildly different SLAs in the same environment. Head‑of‑line blocking will nuke your p95/p99.
-   Split by *model* or *premium tenant* if there’s data sensitivity or strict latency.
-   Enforce per‑request caps on tokens, time, and payload size. GPUs are powerful, not infinite.
-   Version and pin weights per environment. Model swap is config + new version, treat it like a release.

## Latency and cold starts

Publishing a version triggers warm‑up and weight download; lazy loading helps. Still, first‑token latency rules your UX. Measure:

-   p50/p95/p99 for time‑to‑first‑token and full response.
-   Impact of concurrency at 1, 8, 16, 32, and 48 on internal server queues.
-   Streaming vs full responses trade‑offs for your product.

## Batching and throughput

With vLLM or SGLang you can lean on batching and modern scheduling. The trick is not to torch latency chasing tokens/sec:

-   Set a low *max queue delay* to protect p95.
-   Tune batch size to expected prompt/response lengths.
-   If calls are short and numerous, batching shines. If they’re long and interactive, separate queues.

## Costs and limits that matter

-   Pricing = G instance On‑Demand + 9.75% + 0.20 USD/million requests.
-   Container image up to 32 GB; ephemeral storage 32 GB for temporary assets.
-   General memory 2–32 GB; VRAM 3–48 GB. Ensure weights + KV cache actually fit with headroom.
-   Async and event‑driven timeouts up to 90 minutes.

## What I’d do before migrating

1.  Small pilot: 1–2 models, 2 GPU sizes in the G family. No big‑bang.
2.  Run your own benchmarks: tokens/s, p50/p95/p99, errors, and cost per 1k tokens. Document the method or it will rot. Related: [AI is outpacing how we measure it](https://danielsegovia.com/en/artificial-intelligence/metr-ai-outpacing-measurement/).
3.  Isolation policy: by model or by critical tenant. Simple rule, fewer surprises.
4.  Batching with guardrails: target throughput without wrecking p95. Tune by traffic type.
5.  Weights and memory: confirm model + runtime fit in VRAM with margin.
6.  Events and networking: keep data inside your VPC whenever possible; fewer compliance and security headaches.
7.  Rollback plan: keep the previous version published and warm. If perf dips, revert in minutes.

My take: GPU Lambda puts serverless squarely in the conversation for production inference. It isn’t free and it isn’t for everything, but shared model + 48 invocations changes the math. Prove it with your numbers, not with slides.

PS: if it’s cheap without measuring p95, it wasn’t cheap.

## Tags

-   [#AWS](https://danielsegovia.com/en/tags/aws/)
-   [#AWS Lambda](https://danielsegovia.com/en/tags/aws-lambda/)
-   [#GPU](https://danielsegovia.com/en/tags/gpu/)
-   [#Architecture](https://danielsegovia.com/en/tags/architecture/)
-   [#Serverless](https://danielsegovia.com/en/tags/serverless/)

[See all tags →](https://danielsegovia.com/en/tags/)

## Related posts

-   [AWS Lambda: orchestrating MicroVMs with Durable Functions](https://danielsegovia.com/en/architecture/aws-lambda-durable-functions-microvms-orchestration/)
    
    AWS previews MicroVM orchestration in Lambda durable functions. Run untrusted or agent code in VM-isolated sandboxes within year-long serverless flows.
    
    3 min read
-   [AWS Lambda doubles max timeout to 30 minutes: what changes](https://danielsegovia.com/en/architecture/aws-lambda-max-timeout-30-minutes/)
    
    AWS raises Lambda’s limit to 30 minutes across regions. Great for long jobs, but it shifts concurrency, cost, and orchestration. What to revisit.
    
    3 min read
-   [Cloudflare toggle for AI-agent search, and you pay the bill](https://danielsegovia.com/en/architecture/cloudflare-toggle-ai-agent-search-cost-privacy/)
    
    Cloudflare added a toggle for AI agents to search your site. You pay the query bill. Good DX, new risks to budgets and privacy. Add access controls and limits.
    
    3 min read

## More categories

-   ### [Tutorials](https://danielsegovia.com/en/tutorials/)
    
    [How to create a TypeScript Lambda with AWS SAM](https://danielsegovia.com/en/tutorials/create-typescript-lambda-aws-sam/)
    
    How to create a TypeScript Lambda with AWS SAM. Initialize the project, compile with esbuild, test locally, and deploy to AWS in minutes without pain.
    
    New 5 min read
    
-   ### [News](https://danielsegovia.com/en/news/)
    
    [Huawei speeds chip design; Nvidia slows ASEAN server flows](https://danielsegovia.com/en/news/huawei-speeds-chip-design-nvidia-slows-asean-servers/)
    
    Huawei pushes its homegrown chip-design stack while Nvidia halts AI server shipments in ASEAN. If you bet on one vendor, map risk and ship a plan B.
    
    New 3 min read
    
-   ### [Artificial Intelligence](https://danielsegovia.com/en/artificial-intelligence/)
    
    [OpenAI/Anthropic lock data; China turns to Google and Meta](https://danielsegovia.com/en/artificial-intelligence/openai-anthropic-lock-data-china-google-meta/)
    
    OpenAI and Anthropic restricted data and Chinese players look to Google and Meta. Time to harden pipelines: clear licenses and a data plan B.
    
    New 3 min read
    
-   ### [Security](https://danielsegovia.com/en/security/)
    
    [GoodGuys phishing mimics brands to steal Google/Okta](https://danielsegovia.com/en/security/goodguys-phishing-google-okta-paid-interviews/)
    
    GoodGuys lures with paid interviews to steal corporate Google/Okta creds. Active since October. Priorities: FIDO MFA, phishing drills, and tight SSO control.
    
    New 3 min read
    
-   ### [Architecture](https://danielsegovia.com/en/architecture/)
    
    [Cloudflare toggle for AI-agent search, and you pay the bill](https://danielsegovia.com/en/architecture/cloudflare-toggle-ai-agent-search-cost-privacy/)
    
    Cloudflare added a toggle for AI agents to search your site. You pay the query bill. Good DX, new risks to budgets and privacy. Add access controls and limits.
    
    New 3 min read
    
-   ### [Business](https://danielsegovia.com/en/business/)
    
    [AI infrastructure spend could hit $1T in 2026: now what](https://danielsegovia.com/en/business/ai-infrastructure-spend-2026-1t/)
    
    AI infra investment could reach $1T in 2026. With a $1.8T funding gap through 2030, it’s time to lock budgets, renegotiate contracts and squeeze unit costs.
    
    New 3 min read

---

Sitio: https://danielsegovia.com/ · Índice para agentes: https://danielsegovia.com/llms.txt · Sitemap: https://danielsegovia.com/sitemap.xml
