Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Kernel] Add flash-attn back #4907

Merged
merged 6 commits into from
May 20, 2024
Merged

[Kernel] Add flash-attn back #4907

merged 6 commits into from
May 20, 2024

Conversation

WoosukKwon
Copy link
Collaborator

@WoosukKwon WoosukKwon commented May 19, 2024

This PR reverts #4820 by adding back flash-attn. Previously, using flash-attn for decoding caused errors when using small models (like the Llama 68M model in lora/test_layer_variation.py). This was because the index calculation for paged KV cache was done in int instead of int64_t, leading to integer overflow when num_blocks is large. In vllm-flash-attn==2.5.8.post2, the overflow bug was fixed.

@WoosukKwon WoosukKwon requested a review from rkooo567 May 19, 2024 17:25
@WoosukKwon WoosukKwon marked this pull request as ready for review May 19, 2024 17:26
@WoosukKwon WoosukKwon merged commit b57e6c5 into main May 20, 2024
61 checks passed
@WoosukKwon WoosukKwon deleted the add-flash-attn branch May 20, 2024 01:11
dtrifiro pushed a commit to dtrifiro/vllm that referenced this pull request May 21, 2024
tybalex pushed a commit to tybalex/vllm-function-call that referenced this pull request May 25, 2024
mawong-amd pushed a commit to ROCm/vllm that referenced this pull request Jun 3, 2024
triple-Mu pushed a commit to CC-LLM/vllm that referenced this pull request Jun 5, 2024
robertgshaw2-neuralmagic pushed a commit to neuralmagic/nm-vllm that referenced this pull request Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants