jsrozner / t5_finetune

A simple example for finetuning HuggingFace T5 model. Includes code for intermediate generation.
26 stars 4 forks source link

Partially generating output text #2

Closed savinduekanayake closed 3 years ago

savinduekanayake commented 3 years ago

Hi , I'm use this T5 model finetune for text generation task.

I have a issue of partially generating the text.

for example this is the generated text: "< pad > Kasun has 7 books and gave Nimal 2 of the books. How many book did Ka"

This is the full output.

(only small amount of word contains sentence are giving full output sentence) How can I fix this issue? Thank you.

jsrozner commented 3 years ago

See response in this thread: https://discuss.huggingface.co/t/t5-for-conditional-generation-getting-started/1284/8