mbzuai-oryx / GeoChat

[CVPR 2024 🔥] GeoChat, the first grounded Large Vision Language Model for Remote Sensing
https://mbzuai-oryx.github.io/GeoChat
356 stars 23 forks source link

untimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:4 and cuda:0! #17

Open simba0626 opened 3 months ago

simba0626 commented 3 months ago

Hi, authors, It is nice work. I meet one problem: forward of the CLIPVisionEmbeddings class in modeling_clip.py 屏幕截图 2024-03-19 132643

Could you help me to solve it?

Thanks

KjAeRsTuIsK commented 3 months ago

Hi @simba0626 , do you face this error while evaluating or training? If during evaluation, first try running it on one GPU device. And for training, make sure you use zero2.json for deepspeed. Let me know if you still face this issue.

simba0626 commented 3 months ago

Hi, author, thank for your repsonse. First I try running it on one GPU device for evaluation using geochat_demo.py.

However, I meet new problem, as follows: 123456

456

in geochat_arch.py line number 122: if (cur_input_ids == IMAGE_TOKEN_INDEX).sum() == 0:

Thank you