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

调用flash attn内核的sdpa失败 #1321

Open
czydfj opened this issue Nov 7, 2024 · 0 comments
Open

调用flash attn内核的sdpa失败 #1321

czydfj opened this issue Nov 7, 2024 · 0 comments

Comments

@czydfj
Copy link

czydfj commented Nov 7, 2024

UserWarning: Memory efficient kernel not used because: (Triggered internally at ../aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:718.)
torch.nn.functional.scaled_dot_product_attention(
test_sdpa.py:14: UserWarning: Memory Efficient attention has been runtime disabled. (Triggered internally at ../aten/src/ATen/native/transformers/sdp_utils_cpp.h:495.)
torch.nn.functional.scaled_dot_product_attention(
test_sdpa.py:14: UserWarning: Flash attention kernel not used because: (Triggered internally at ../aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:720.)
torch.nn.functional.scaled_dot_product_attention(
test_sdpa.py:14: UserWarning: Flash Attention does not support non-null attn_mask. (Triggered internally at ../aten/src/ATen/native/transformers/sdp_utils_cpp.h:269.)
torch.nn.functional.scaled_dot_product_attention(
test_sdpa.py:14: UserWarning: CuDNN attention kernel not used because: (Triggered internally at ../aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:722.)
torch.nn.functional.scaled_dot_product_attention(
test_sdpa.py:14: UserWarning: The CuDNN backend needs to be enabled by setting the enviornment variableTORCH_CUDNN_SDPA_ENABLED=1 (Triggered internally at ../aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:496.)
torch.nn.functional.scaled_dot_product_attention(
Traceback (most recent call last):
File "test_sdpa.py", line 14, in
torch.nn.functional.scaled_dot_product_attention(
RuntimeError: No available kernel. Aborting execution.

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

No branches or pull requests

1 participant