Update modeling_minicpmv.py
Browse files- 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 |
-
|
| 315 |
-
|
| 316 |
-
|
| 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)
|