alibaba / alibaba/conv-llava

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:5 and cuda:0! (when checking argument for argument weight in method wrapper_CUDA__cudnn_convolution)

Open
#7 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
129
Forks
7
PR merge metrics
No merged PRs in 30d

Description

I get this error when I multi-GPU use llava's inference code.How should I fix the code to make it work on multiple gpu's? Thanks,a lot.@John-Ge
` embedding_output = self.vision_tower.embeddings(images)`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with llava's inference code and the reported `self.vision_tower.embeddings(images)` call. Trace where the images, vision tower, and model weights are placed across GPUs, then verify multi-GPU inference runs without the reported cross-device RuntimeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.