KV Cache Math: Llama 3.1 8B Needs 16 GiB for One 128K Request
My 8B model weighed 16 GB. My GPU had 24 GB. I did the math a junior engineer does, decided I had 8 GB of headroom, and typed vllm serve meta-llama/Llama-3.1-8B-Instruct . vLLM refused to start. ValueError: The model's max seq len (131072) is larger than the maximum number of tokens that can be sto…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-12-03 09:27 · DEV Community — Machine Learning
KV Cache Math: Llama 3.1 8B Needs 16 GiB for One 128K Request