Fix summarization script (#20286)

This commit is contained in:
Zachary Mueller 2022-11-16 15:57:07 -05:00 committed by GitHub
parent 5e012f8e3c
commit 441811ecd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -702,8 +702,6 @@ def main():
decoded_labels = tokenizer.batch_decode(labels, skip_special_tokens=True)
decoded_preds, decoded_labels = postprocess_text(decoded_preds, decoded_labels)
decoded_preds, decoded_labels = accelerator.gather_for_metrics(decoded_preds, decoded_labels)
metric.add_batch(
predictions=decoded_preds,
references=decoded_labels,