andrewqian123 commited on
Commit
21f37b3
·
verified ·
1 Parent(s): 43a4dd1

Update modeling_minicpmv.py

Browse files
Files changed (1) hide show
  1. modeling_minicpmv.py +4 -4
modeling_minicpmv.py CHANGED
@@ -310,10 +310,10 @@ class MiniCPMV(MiniCPMVPreTrainedModel):
310
  tensor = torch.cat((vector_reshaped, tensor), dim=1)
311
  to_add.append(1)
312
  # tensor = tensor.to(self.device)
313
- if bound != 0:
314
- print(tensor[0,bound-1], " BOUND")
315
- print(tensor[0,bound], " OTHERSIDE")
316
- print(pad_embedding_vector, " VECTOR")
317
  print(tensor.shape, "UPDATED_SHAPE")
318
  batch[place] = tensor
319
  attention_mask.append(to_add)
 
310
  tensor = torch.cat((vector_reshaped, tensor), dim=1)
311
  to_add.append(1)
312
  # tensor = tensor.to(self.device)
313
+ # if bound != 0:
314
+ # print(tensor[0,bound-1], " BOUND")
315
+ # print(tensor[0,bound], " OTHERSIDE")
316
+ # print(pad_embedding_vector, " VECTOR")
317
  print(tensor.shape, "UPDATED_SHAPE")
318
  batch[place] = tensor
319
  attention_mask.append(to_add)