

TITLE
Summarization outputs on T5-small gets truncated 

COMMENTS
2

REACTIONS
+1: 0
-1: 0
laugh: 0
hooray: 0
heart: 0
rocket: 0
eyes: 0

BODY
# ❓ Questions & Help

<!-- The GitHub issue tracker is primarly intended for bugs, feature requests,
     new models and benchmarks, and migration questions. For all other questions,
     we direct you to the Hugging Face forum: https://discuss.huggingface.co/ .
     You can also try Stack Overflow (SO) where a whole community of PyTorch and
     Tensorflow enthusiast can help you out. In this case, make sure to tag your
     question with the right deep learning framework as well as the
     huggingface-transformers tag: 
     https://stackoverflow.com/questions/tagged/huggingface-transformers 
     -->

## Details
<!--  --> I been fine tuning t5-small for my own dataset but every time I set a max_length it just truncates the output. For example my input statement is : 

**When I first entered high school I was very nervous as it was a new school for me and it was a big adjustment. I was overwhelmed with work and mentally wasn't staying optimistic as I found it hard to manage my time and make friends. I felt like I wasn't good enough, and this caused me to treat myself like I wasn't worthy of being at such a place. In terms of behavior to others, I would say it made me more shy while still adapting to the new environment.** 

and my output is as follows:

 **when I first entered high school I was very nervous as it was a new school for me and it was a** 

My generate is as follows: 
**( input,
                                min_length= 0,
                                max_length=25,
                                length_penalty=2.0,
                                num_beams=4,
                                early_stopping=True )**

Is it possible for me to make it not truncate at the end? and also make it generate a reasonable summary ?

<!-- You should first ask your question on the forum or SO, and only if
     you didn't get an answer ask it here on GitHub. -->
**A link to original question on the forum/Stack Overflow**: