InternVL icon indicating copy to clipboard operation
InternVL copied to clipboard

InternVL-C(ontrastive) 和 InternVL-G(enerative) 如何做多GPU推理

Open lisenjie757 opened this issue 1 year ago • 0 comments

直接用device_map="auto" 或 device_map="balanced_low_0" 会报错,text_embeds = text_embeds[torch.arange(text_embeds.shape[0]), attention_mask.sum(1) - 1] RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cuda:1)

lisenjie757 avatar Oct 03 '24 07:10 lisenjie757