oweller2
commited on
Commit
•
26c315d
1
Parent(s):
419db75
update
Browse files- modeling_flexbert.py +1 -1
modeling_flexbert.py
CHANGED
@@ -1708,7 +1708,7 @@ class FlexBertForCausalLM(FlexBertPreTrainedModel):
|
|
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:
|
|
|
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-1)[0]
|
1712 |
print(f"New logits: {new_logits.shape}")
|
1713 |
# print(new_logits.shape)
|
1714 |
# if new_logits.dim() == 2:
|