Skip to content

Commit

Permalink
Fix (#7478)
Browse files Browse the repository at this point in the history
Signed-off-by: Cheng-Ping Hsieh <[email protected]>
  • Loading branch information
hsiehjackson committed Sep 22, 2023
1 parent 433d9f1 commit a9fb58b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def collate_fn(self, batch):
labels = [x[: self.max_seq_length] for x in labels]
loss_mask = [x[: self.max_seq_length] for x in loss_mask]
contexts = [x[: self.max_seq_length] for x in contexts]
answers = [x[: self.max_seq_length] for x in answers]

# increase max length to nearest multiple of 4 or 8
if self.pad_to_max_length:
Expand Down

0 comments on commit a9fb58b

Please sign in to comment.