oweller2
commited on
Commit
•
9ab7150
1
Parent(s):
c9fb228
fix
Browse files- modeling_flexbert.py +0 -1
modeling_flexbert.py
CHANGED
@@ -1718,7 +1718,6 @@ class FlexBertForCausalLM(FlexBertPreTrainedModel):
|
|
1718 |
)
|
1719 |
else:
|
1720 |
print(f"Non-padding logits: {logits.shape}")
|
1721 |
-
logits = logits.view(-1, logits.size(-1))
|
1722 |
# if logits.dim() == 2:
|
1723 |
# logits = logits.unsqueeze(0)
|
1724 |
return CausalLMOutput(
|
|
|
1718 |
)
|
1719 |
else:
|
1720 |
print(f"Non-padding logits: {logits.shape}")
|
|
|
1721 |
# if logits.dim() == 2:
|
1722 |
# logits = logits.unsqueeze(0)
|
1723 |
return CausalLMOutput(
|