Modal
Modal logoModal · Feature trail

Serverless GPU Inference

11 posts · Feb 2024 – Sep 2026

What this trail covers

Modal's platform enables truly serverless GPU inference by optimizing replica spin-up times to tens of seconds. This is achieved through a combination of cloud buffers for pre-warmed GPUs, a custom lazy-loading filesystem, and advanced checkpoint/restore mechanisms for both CPU and CUDA contexts. Recent work has introduced GPU memory snapshotting, which can reduce median cold start times for certain workloads (like LLM inference with vLLM) by almost 10x, from minutes to seconds, by saving and re-using model states. This post demonstrates how to leverage this infrastructure with smaller models and search to achieve frontier-level performance on code generation tasks, matching or exceeding GPT-4o's pass@1 performance on HumanEval with 100 LLaMA 3.1 8B generations.

All Modal trails