Text Summarization, Generative Ai Tools, Artificial Intelligence, Machine Learning Ai, Hugging Face.
duplicates if accelerator.num_processes > 1: if step == len(eval_dataloader): decoded_preds = decoded_preds[: len(eval_dataloader.dataset) - samples_seen] decoded_labels = decoded_labels[: len(eval_dataloader.dataset) - samples_seen] else: samples_seen += decoded_labels.shape[0]