Downloads · 30 days
0
bababababooey/vllm-flash-attn3
vllm-flash-attn3 is a machine learning model from bababababooey. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is an implementation of Flash Attention 3 CUDA kernels with support for attention sinks. The attention sinks implementation was contributed to Flash Attention by the vLLM team. The transformers team packaged the…
Downloads · 30 days
0
Access
Public
Updated Aug 15, 2025
Repo size
3.7 GB
Likes
0
Public
Click a slice to open those files.
.so6.4 GB · 100%
From the Hugging Face model README
This is an implementation of Flash Attention 3 CUDA kernels with support for attention sinks. The attention sinks implementation was contributed to Flash Attention by the vLLM team. The transformers team packaged the implementation and pre-built it for use with the kernels library.
When loading your model with transformers, provide this repository id as the source of the attention implementation:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "<your model id on the Hub>"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
torch_dtype="auto",
+ # Flash Attention with Sinks
+ attn_implementation="kernels-community/vllm-flash-attn3”,
)
This will automatically resolve and download the appropriate code for your architecture. See more details in this post.