Skip to content

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) #7

@Qigqi

Description

@Qigqi

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions