oweller2
commited on
Commit
•
f40aaa2
1
Parent(s):
6a75052
update
Browse files- modeling_flexbert.py +1 -1
modeling_flexbert.py
CHANGED
@@ -1703,7 +1703,7 @@ class FlexBertForCausalLM(FlexBertPreTrainedModel):
|
|
1703 |
|
1704 |
if self.unpad_embeddings:
|
1705 |
# reshape to batch size
|
1706 |
-
logits = logits.view(
|
1707 |
|
1708 |
if self.pad_logits:
|
1709 |
# print(f"Padding logits: {logits.shape}")
|
|
|
1703 |
|
1704 |
if self.unpad_embeddings:
|
1705 |
# reshape to batch size
|
1706 |
+
logits = logits.view(-1, self.vocab_size)
|
1707 |
|
1708 |
if self.pad_logits:
|
1709 |
# print(f"Padding logits: {logits.shape}")
|