Remove masked_lm_labels from returned dictionary (#7818)
This commit is contained in:
@@ -449,8 +449,6 @@ class DataCollatorForNextSentencePrediction:
|
||||
"labels": mlm_labels if self.mlm else None,
|
||||
"next_sentence_label": torch.tensor(nsp_labels),
|
||||
}
|
||||
if self.mlm:
|
||||
result["masked_lm_labels"] = mlm_labels
|
||||
return result
|
||||
|
||||
def _tensorize_batch(self, examples: List[torch.Tensor]) -> torch.Tensor:
|
||||
|
||||
Reference in New Issue
Block a user