You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在测试Internvl-76B的时候,代码如下:
`from vlmeval.config import supported_VLM
model = supported_VLM'InternVL2-76B-sft'
ret = model.generate(['assets/apple.jpg', 'What is in this image?']) #前向单张图片
print(ret) # 这张图片上有一个带叶子的红苹果
ret = model.generate(['assets/apple.jpg', 'assets/apple.jpg', 'How many apples are there in the provided images? ']) # 前向多张图片
print(ret) # 提供的图片中有两个苹果`
报的错误是:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat2 in method wrapper_CUDA_bmm)
请问一下这个如何解决?
The text was updated successfully, but these errors were encountered:
在测试Internvl-76B的时候,代码如下:
`from vlmeval.config import supported_VLM
model = supported_VLM'InternVL2-76B-sft'
ret = model.generate(['assets/apple.jpg', 'What is in this image?']) #前向单张图片
print(ret) # 这张图片上有一个带叶子的红苹果
ret = model.generate(['assets/apple.jpg', 'assets/apple.jpg', 'How many apples are there in the provided images? ']) # 前向多张图片
print(ret) # 提供的图片中有两个苹果`
报的错误是:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat2 in method wrapper_CUDA_bmm)
请问一下这个如何解决?
The text was updated successfully, but these errors were encountered: