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

How to use GPU to accelerate? #137

Open
Recycle1 opened this issue Sep 10, 2024 · 0 comments
Open

How to use GPU to accelerate? #137

Recycle1 opened this issue Sep 10, 2024 · 0 comments

Comments

@Recycle1
Copy link

when I want to use cuda to run the sample code, there is a warning, and the result is quite different from the cpu's, how should I do?
image
output:
D:\python_about\pre-trained_models\modules\transformers_modules\vikhyatk\moondream2\92d3d73b6fd61ab84d9fe093a9c7fd8c04bf2c0d\vision_encoder.py:71: UserWarning: 1Torch was not compiled with flash attention. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\transformers\cuda\sdp_utils.cpp:555.)
x = F.scaled_dot_product_attention(q, k, v)

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