# No available memory for the cache blocks (video)

The film shows that each vLLM server has its own share of GPU memory, what we observed on one NVIDIA L40S on 2026-11-15, what the next fresh deploy recorded, and that we did not test which change made the difference.

Updated: 2026-11-29

Video: No available memory for the cache blocks (4:17)

## Chapters

1. 0:00 What the error says
2. 0:22 What the KV cache is
3. 0:38 Why it appears at start-up
4. 1:00 The three numbers that decide it
5. 1:32 What we saw on one NVIDIA L40S
6. 2:01 What we changed, and why not lower the share
7. 2:39 More settings, and sizing the GPU
8. 3:07 The Compose settings and the four checks
9. 3:37 A different message, and the recap

## Transcript

ValueError: No available memory for the cache blocks. Here is what that line means, what we saw on one GPU, and what to check.

Start with the KV cache. Beside the model weights, the KV cache, activations and the serving engine need GPU memory. That remainder sets the context length and the number of concurrent users.

vLLM raises this error at startup, when nothing is left for the KV cache inside its share of GPU memory. gpu-memory-utilization sets that share, per instance. And vLLM measures free memory once, after warmup, so it cannot see memory another process takes later.

Three numbers decide it. The weights: 31.45 GiB for our default chat model. The context length: limiting it with max-model-len reduces memory use. And the share: 0.78 gave our chat server about 35933 MiB. What the weights leave must hold activations and the KV cache.

Here is our own test, from November 15, 2026. One NVIDIA L40S ran a chat vLLM server at 0.78, an embedding vLLM server at 0.12, and a speech server. The two vLLM servers started without waiting for each other. On first start, the chat server stopped with this error.

Before the next fresh deploy, we kept both shares and made the chat server wait until the embedding server reported healthy. That deploy recorded 27 lines waiting for the embedding server, 0 restarts, and 0 lines with this error. We did not test whether the start order alone made the difference.

Why not just lower the share? By our arithmetic, at 0.70 the weights alone would fill it. We did not run that setting. A lower value takes memory away from the KV cache.

The docs name two more settings: a lower max-num-seqs reduces memory use, and tensor-parallel-size spreads the model over more GPUs. In 16-bit weights, a 24 GB NVIDIA L4 caps the model at about 12 billion parameters, and a 48 GB NVIDIA L40S at about 24 billion, before any KV cache.

In the Launchable's Compose file, the chat server keeps gpu-memory-utilization 0.78 and max-num-seqs 16. To check it held, list GPU memory per process with nvidia-smi, search the log for No available memory, and confirm the server answers on port 8000. Then stop and start once, and repeat.

A related line is a different message: exceeds available Mamba cache blocks. With the default Nemotron model, setting max-num-seqs 16 removed it.

To recap: nothing was left for the KV cache inside vLLM's share. Check the weights, the context length and the share, and give each vLLM server on a shared GPU its own fraction. The full guide is at www.9owls.com.

[Read the guide: vLLM No available memory for the cache blocks on a shared GPU](https://www.9owls.com/guides/vllm-cache-blocks-memory-error/)

## Related pages

- [Serve an OpenAI-compatible API with vLLM](https://www.9owls.com/guides/serve-an-openai-compatible-api-with-vllm/)
- [How to run Open Notebook, a self-hosted NotebookLM alternative](https://www.9owls.com/guides/run-open-notebook-a-self-hosted-notebooklm-alternative/)
- [NVIDIA L4 vs L40S for LLM inference](https://www.9owls.com/compare/nvidia-l4-vs-l40s-for-llm-inference/)

[All videos](https://www.9owls.com/videos/)
