Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix device error when using cuda device other than cuda:0 #216

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cornzz
Copy link
Contributor

@cornzz cornzz commented Aug 28, 2024

Fixes #215

Attention bias was being created on cuda:0 regardless of the selected cuda device as the correct device was not being passed to from_seqlens() in BufferCache.get_input_metadata()

cornzz added 2 commits August 28, 2024 14:09
Attention bias was being moved to cuda:0 regardless of the selected cuda device
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Device error when running on other cuda device than cuda:0
1 participant