Skip to main content

News

vLLM 0.34.0 Changes How It Budgets GPU Memory for Context

vLLM 0.34.0 measures free GPU memory after startup warmup and uses it to size the KV cache on CUDA and ROCm. Check your memory budget before changing a working server.

By Published Updated 3 min read

vLLM 0.34.0, released November 16, turns on its extensible KV cache by default for supported CUDA and ROCm configurations. It looks at GPU memory available after startup warmup and uses that measurement to plan the cache. If an upgraded server shows higher VRAM use with the same model file, check the cache allocation before assuming your checkpoint got bigger. The change matters most if you serve long requests, handle several conversations at once, or share the GPU with another application. vLLM 0.34.0 release notes

Why the same model can use more VRAM

The model’s weights consume one part of GPU memory. The key-value cache holds information about tokens the model has already processed so it can continue a request efficiently. Several active requests can occupy that cache at once. Weight quantization changes the size of the weights. The serving engine’s cache policy determines a separate part of the memory budget. RAM and VRAM requirements · vLLM optimization guide

With the measured cache active, the default gpu_memory_utilization is 1.0. vLLM documents a safety margin and uses the measured free space after warmup to size the cache. Treat the default as permission for the instance to use available capacity, with a cap set explicitly if you need room for another workload. Other backends and fallback paths can use different sizing and defaults. vLLM memory tuning documentation

What to check before updating a working server

Your setupFirst check
Dedicated GPU with several concurrent chatsStart with the release default in a test instance. Compare the cache reported at boot and performance at your normal concurrency.
GPU shared with another processSet an explicit --gpu-memory-utilization below 1.0. vLLM measures free memory once, after warmup, so it cannot see memory another process allocates later.
Server depends on the old cache behaviorCompare a test startup with the documented --no-enable-extensible-kv-cache flag, keeping the rest of your server configuration fixed.

Record the model and exact file, configured context, successful startup, and the GPU’s free memory before and after warmup. Then try the same short request and the same representative long request under the old and new configuration. If you serve multiple users, repeat with an ordinary batch. Count failures and compare time to first output as well as total completion time. Upgrade notes · Local context-window guide

Read the full release notes for removed or renamed options before changing a running service, and check any flags you have pinned. If you use LM Studio, Ollama or llama.cpp directly, their settings follow their own runtime’s memory rules. vLLM release migration notes · Local LLM out-of-memory troubleshooting

Other upgrade checks in 0.34.0

The same release notes remove the original Model Runner V1 and ROCm 7.2 release images, change the default cache block size to 64, and require huggingface_hub 2.0 or later. If you have an existing container or script pinned to an older GPU runner, check these dependencies before changing the memory setting. Use the release's matching wheel or container for your accelerator instead of assuming the previous installation command still selects the same build.