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

[CI/Test] fix swap test for multi gpu #4689

Merged
merged 1 commit into from
May 8, 2024

Conversation

youkaichao
Copy link
Member

When we run the test code with multiple GPUs, the slot mapping lives in cuda, which is cuda:0 by default. The kv cache can live in cuda:1, so the copy kernel will trigger RuntimeError: CUDA error: an illegal memory access was encountered.

This PR changes them to be device together.

Copy link
Collaborator

@LiuXiaoxuanPKU LiuXiaoxuanPKU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix!

@WoosukKwon WoosukKwon merged commit 230c4b3 into vllm-project:main May 8, 2024
24 of 25 checks passed
@youkaichao youkaichao deleted the fix_swap_test branch May 8, 2024 20:15
z103cb pushed a commit to z103cb/opendatahub_vllm that referenced this pull request May 9, 2024
robertgshaw2-neuralmagic pushed a commit to neuralmagic/nm-vllm that referenced this pull request May 19, 2024
dtrifiro pushed a commit to dtrifiro/vllm that referenced this pull request May 21, 2024
Temirulan pushed a commit to Temirulan/vllm-whisper that referenced this pull request Sep 6, 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.

3 participants