Re:vLLM: 24x faster LLM serving than HuggingFace Transformers
by karmasimida on Tuesday June 20, 2023 @07:28PM
(#36412208)
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: 24x faster LLM serving than HuggingFace Transformers
by wskwon on Tuesday June 20, 2023 @08:13PM
(#36412592)
Thanks for the explanation! I believe the two ideas are basically orthogonal. FlashAttention reduces memory read/writes, while PagedAttention reduces memory waste.
Re:vLLM: 24x faster LLM serving than HuggingFace Transformers
by ipsum2 on Tuesday June 20, 2023 @07:26PM
(#36412188)
The ideas are orthogonal, and can be used (theoretically) at the same time.
I guess Flash Attention is more about utilizing memory GPU SRam correctly, where this is more about using the OS/CPU memory better?