funykatebird
funykatebird
> I had the same problem, probably because the version of the Torch was too high, but I couldn't fix it.I wonder if you have solved this problem? 我也遇到了同样的问题,请问解决了吗?
https://blog.csdn.net/qq_39779233/article/details/109957684 change the error lines like this link

I want to finetune the Chinese image caption model, so I need the Chinese version of the image caption data and the train scripts, just like the caption_data.zip file, train_caption_stage1.sh,...
可直接修改为加载GPT2LMHeadModel.from_pretrained("uer/gpt2-chinese-cluecorpussmall") 然后下载对应的模型文件 https://huggingface.co/uer/gpt2-chinese-cluecorpussmall/tree/main
一般就是数据和模型一个在cpu,一个在GPU RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu 方法一: args.device = torch.device("cpu") 方法二: 将数据加载到GPU上 images = images.to(args.device) clip_embeds = clip_model.encode_image(images)...
I also have met this issue.