KV Cache Math: Llama 3.1 8B Needs 16 GiB Just to Hold 128K Tokens
The model fit. That was the part that confused me. Llama 3.1 8B in bf16 is about 16 GB of weights. My card had 24 GB. I set max_model_len=131072 because the model card says 128K context, hit run, and vLLM refused to start. Something about the max sequence length being larger than the number of toke…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-11-12 07:25 · DEV Community — Machine Learning
KV Cache Math: Llama 3.1 8B Needs 16 GiB Just to Hold 128K Tokens