Cut Model Deployment Costs While Keeping Performance With GPU Memory Swap

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

Teams serving many LLMs can consolidate onto fewer GPUs by swapping idle models to CPU memory, cutting idle hardware costs at the price of 2-3 seconds of cold-start latency per request.

Read this as

NVIDIA's Run:ai product has a new feature called GPU memory swap, or model hot-swapping. When a chatbot model is not being used, it is moved out of the graphics chip's memory into the computer's main memory; when a request arrives it is moved back in a few seconds. This lets several models share one machine instead of each keeping expensive hardware idle. Tested models became ready in 2-3 seconds instead of the 140-208 seconds needed when starting from scratch.

This addresses the over-provisioning problem: organizations either keep GPUs idling for worst-case traffic or suffer long waits when scaling from zero. In NVIDIA benchmarks on L40S GPUs, swapping Llama 3.1 8B, Mistral-7B, and Falcon-11B back into memory gave a 2-3 second time-to-first-token, versus 140-208 seconds scaling from zero. That is a 50-66x improvement, with only a minor latency penalty versus always-warm models. It matters most for teams serving many infrequently used models under strict SLAs.

GPU memory swap offloads idle model weights from GPU to CPU memory, swapping them back on demand; TTFT is bounded by PCIe bandwidth. Benchmarks on L40S (48 GB, PCIe Gen4 x8) with vLLM 0.6.4 and Run:ai Scheduler v2.19, weights cached in EBS, showed TTFT of 2-3 seconds for Llama 3.1 8B Instruct, Mistral-7B, and Falcon-11B, versus 140-208 seconds scaling from zero. Falcon-11B was ~0.5 seconds slower than Mistral-7B due to memory footprint. Latency is worse than warm-model baseline and scales with model size.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

NVIDIA Run:ai GPU memory swap NVIDIA L40S vLLM Run:ai Model Streamer Run:ai Scheduler

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading