AI & Machine Learning
Bug Report
vLLM fails to start: max seq len is larger than the tokens the KV cache can store
Serving Llama 3.1 8B with vLLM on a 24 GB GPU crashed at startup with a KV cache error. By default vLLM sizes for the model's full 128k context, and after loading weights there was room for about 45k tokens of KV cache. Setting max_model_len to what we need fixed it.