# Finetuning Pegasus for summarization task

**URL:** <https://discuss.huggingface.co/t/finetuning-pegasus-for-summarization-task/1233>\
**Category:** 🤗Transformers\
**Created:** [September 23, 2020, 5:09pm UTC](https://discuss.huggingface.co/t/finetuning-pegasus-for-summarization-task/1233 "2020-09-23T17:09:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![banu](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@banu](https://discuss.huggingface.co/u/banu)\
**Post date:** [September 23, 2020, 5:09pm UTC](https://discuss.huggingface.co/t/finetuning-pegasus-for-summarization-task/1233/1 "2020-09-23T17:09:26Z")

</div>

i have been trying to fine tune Pegasus for summarization task, it worked fine without getting any error.  
but when i tried to generate the summary i was getting only empty list as a output.  
i am not able to figure it out, is anything wrong with my fine tuning script?

notebook link:

> **[Google Colaboratory](https://colab.research.google.com/drive/1c7G1WXE6mgl2rwA-VR7q8DAqmbVqB62m?usp=sharing)**

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/1/1063436d1f24c0b72f5d16a2e532763ba05b6711.png)

---

<div class="post-metadata">

**Author:** ![banu](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@banu](https://discuss.huggingface.co/u/banu)\
**Post date:** [September 25, 2020, 6:54am UTC](https://discuss.huggingface.co/t/finetuning-pegasus-for-summarization-task/1233/2 "2020-09-25T06:54:26Z")

</div>

@valhalla @sshleifer @patrickvonplaten

---

<div class="post-metadata">

**Author:** ![cantino](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/cantino/32/467_2.png) [@cantino](https://discuss.huggingface.co/u/cantino)\
**Post date:** [October 14, 2020, 12:11am UTC](https://discuss.huggingface.co/t/finetuning-pegasus-for-summarization-task/1233/3 "2020-10-14T00:11:32Z")

</div>

Have you had any success with this?

---

<div class="post-metadata">

**Author:** ![valhalla](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/valhalla/32/4179_2.png) [@valhalla](https://discuss.huggingface.co/u/valhalla)\
**Post date:** [October 14, 2020, 9:21am UTC](https://discuss.huggingface.co/t/finetuning-pegasus-for-summarization-task/1233/4 "2020-10-14T09:21:30Z")

</div>

This is probably fixed. Give it try again and let us know.
