Reducing Cold Start Latency for LLM Inference with NVIDIA Run:ai Model Streamer

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

Why it matters

Anyone serving LLMs on vLLM can roughly halve engine readiness time today using this open source SDK, directly cutting cold-start latency and idle GPU spend.

Read this as

When you use an AI model, a 'cold start' is the wait while the model's numbers are loaded from storage into the chip that runs it, often tens of seconds. NVIDIA has released a free tool called Model Streamer that reads those numbers in parallel and streams them straight to the GPU instead of doing everything one step at a time. It loaded a 15 GB model, Llama 3 8B, in under 5 seconds from Amazon S3, versus about 65 seconds with the previous best tool. This matters mainly for companies running AI services that scale up and down with demand.

NVIDIA released Model Streamer, an open source SDK that cuts the time before a vLLM inference engine is ready to serve traffic roughly in half, 35 seconds versus 66 on GP3 SSD, and 23 seconds versus 65 on S3 versus Tensorizer. The gain is greatest on cloud object storage, which competitors don't natively support. Teams running LLMs on demand with autoscaling gain the most through lower idle GPU costs. Integration requires only a Python API change, but the benchmarks are limited to a single 15 GB model on one AWS instance.

Model Streamer uses a C++ backend with multi-threaded readers that stream Safetensors tensors concurrently into a CPU buffer while other tensors transfer to GPU over PCIe, exploiting overlap between storage I/O and device transfer. On Llama 3 8B (15 GB) with an A10G on g5.12xlarge: 14.34 s on GP3 at concurrency 16, 7.53 s on IO2 at concurrency 8, 4.88 s on S3 at concurrency 32, versus Tensorizer's best S3 time of 37.36 s. Integrated into vLLM 0.5.5, total readiness halves versus the HF Safetensors Loader. IO2 plateaued at ~2 GiB/s despite a 4 GiB/s theoretical limit, and S3's unexplained caching behavior required 3-minute cooldowns between tests.

Read the original

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

Key terms

NVIDIA Run:ai Model Streamer vLLM Llama 3 8B CoreWeave Tensorizer HF Safetensors Loader Amazon S3 Tensorizer

Was this summary useful?

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

Related reading