Skip to content

Fix the model parallelism error in DeepSeek-VL2 #91

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DeadLining
Copy link

Fix Model Parallelism Error: KVCache CUDA Device Switching Issue

The RuntimeError:
Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1! (when checking argument for argument tensors in method wrapper_CUDA_cat)
error mentioned in #issues8 was caused by KVCache failing to switch CUDA devices correctly during inference.

This change is intended to fix the issue by ensuring proper device switching during inference.

@krishnateja95
Copy link

Thanks for the PR. I am able to run across multiple GPUs now.

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.

2 participants