GPU inference on AWS Lambda: cold starts, concurrency and cost for real workloads

AWS Lambda can now run GPU inference, with up to 48 concurrent invocations sharing one GPU. This tutorial deploys a PyTorch model with the AWS CLI and boto3, then looks at cold starts, memory constraints, invocation limits and when Lambda beats a persistent GPU instance on cost.
Lambda can now put a GPU behind your function, and that GPU is shared. Each execution environment gets one GPU and can run up to 48 invocations on it at once. We'll deploy a PyTorch image classifier with the AWS CLI and hit it with parallel requests from boto3. After that we'll work through cold starts, memory and cost, because those decide whether a real workload belongs here.
Read the full article on LearnXops (free with a LearnXops account).