oweller2
commited on
Commit
•
419db75
1
Parent(s):
89f14e5
- modeling_flexbert.py +2 -1
modeling_flexbert.py
CHANGED
@@ -1707,8 +1707,9 @@ class FlexBertForCausalLM(FlexBertPreTrainedModel):
|
|
1707 |
# # NOTE: error from here above
|
1708 |
|
1709 |
if self.pad_logits:
|
1710 |
-
|
1711 |
new_logits = self.pad_inputs(logits, indices, batch_size, seq_len)[0]
|
|
|
1712 |
# print(new_logits.shape)
|
1713 |
# if new_logits.dim() == 2:
|
1714 |
# new_logits = new_logits.unsqueeze(0)
|
|
|
1707 |
# # NOTE: error from here above
|
1708 |
|
1709 |
if self.pad_logits:
|
1710 |
+
print(f"Padding logits: {logits.shape}")
|
1711 |
new_logits = self.pad_inputs(logits, indices, batch_size, seq_len)[0]
|
1712 |
+
print(f"New logits: {new_logits.shape}")
|
1713 |
# print(new_logits.shape)
|
1714 |
# if new_logits.dim() == 2:
|
1715 |
# new_logits = new_logits.unsqueeze(0)
|