mirror of
https://github.com/deepseek-ai/DeepSeek-VL2.git
synced 2026-11-05 01:07:23 +00:00
[PR #91] Fix the model parallelism error in DeepSeek-VL2 #143
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-VL2#143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepSeek-VL2/pull/91
Author: @DeadLining
Created: 2/20/2025
Status: 🔄 Open
Base:
main← Head:deadline📝 Commits (1)
8ed2d7fFix the model parallelism error in DeepSeek-VL2📊 Changes
1 file changed (+10 additions, -0 deletions)
View changed files
📝
deepseek_vl2/models/modeling_deepseek.py(+10 -0)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.