I wonder how this compares to Flash Attention ( https://github.com/HazyResearch/flash-attention ), which is the other "memory aware" Attention project I'm aware of. I guess Flash Attention is more about utilizing memory GPU SRam correctly, where this is more about using the OS/CPU memory better?
The ideas are orthogonal, and can be used (theoretically) at the same time.
vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention
31–40 of 43 posts
Re: vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention
#32Earlier quoted context omitted.
this approach to managing KV cache can work with 4bit. imagine the speedup of pagedattention with quantization..
yep, it is agonistic to 4-bit. You can deploy a 4-bit model and still use vllm + pagedattention to double or even triple your serving throughput.
Re: vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention
#33Reading between the lines, it sounds like some of the speedup comes from VRAM savings on an otherwise close to full GPU? This is definitely cool and needed, but it might not be so dramatic running 3-5 but quant on a less full GPU.
Re: vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention
#34I wonder how this compares to Flash Attention ( https://github.com/HazyResearch/flash-attention ), which is the other "memory aware" Attention project I'm aware of. I guess Flash Attention is more about utilizing memory GPU SRam correctly, where this is more about using the OS/CPU memory better?
I think they are orthogonal. Flash attention is just another way to compute exact attention. This work mainly concerns how to resolve memory fragmentation across different sequences You still need to compute attention as is once you retrieve the needed key values
Re: vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention
#35Or maybe you get typically get dedicated machine time during inference?
Re: vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention
#36Re: vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention
#37Cool, I prefer the OpenAI-Compatible api. Although this is not very technically difficult, it is really intimate, because it make me feel free to use all ChatGPT applications.
Re: vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention
#38Semi-related question: this page is full of little charts and diagrams. There are thousands of similar projects/sites/experiment sites with their own charts and diagrams. But it seems like there are always subtle-to-large differences in them that indicate they're made with totally different libraries. Are there just thousands of homebrewn non-standard chart & diagram builders out there? How does one even begin to pic…
We used matplotlib for the performance charts, and used a free website to convert google slides to the animation gifs.
Re: vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention
#39Does this mean that GPT-4/65b level performance is closer to running on a say a m1/m2 with only 24+ gigabytes of ram?
Not really. vLLM optimizes the throughput of your LLM, but does not reduce the minimum required amount of resource to run your model.
Re: vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention
#40Now do the same for image classifiers. I tried a few of them, they're just horribly slow. This is pretty outrageous considering the first robust image image classifiers appeared around 2007.
Doesn't work on image classifiers, because there's no KV cache. Also, standard image classifiers can do 100-1000 images/sec without any optimizations.