FantasticGNU commited on
Commit
b0c3916
·
1 Parent(s): 0d05e34

Update model/openllama.py

Browse files
Files changed (1) hide show
  1. model/openllama.py +1 -1
model/openllama.py CHANGED
@@ -171,7 +171,7 @@ class OpenLLAMAPEFTModel(nn.Module):
171
 
172
  self.visual_encoder, self.visual_hidden_size = imagebind_model.imagebind_huge(args)
173
  self.visual_encoder.to(self.device)
174
- imagebind_ckpt = torch.load(imagebind_ckpt_path, map_location=self.device)
175
  self.visual_encoder.load_state_dict(imagebind_ckpt, strict=True)
176
 
177
 
 
171
 
172
  self.visual_encoder, self.visual_hidden_size = imagebind_model.imagebind_huge(args)
173
  self.visual_encoder.to(self.device)
174
+ imagebind_ckpt = torch.load(imagebind_ckpt_path, map_location=torch.device('cuda'))
175
  self.visual_encoder.load_state_dict(imagebind_ckpt, strict=True)
176
 
177