Thanks @Rbaten for all your help! I also trained a model for key-phrase extraction by passing it an input paragraph and training it to output the same paragraph, but with the key-phrases surrounded in ‘|||’ (ex. |||George Washington||| was a president).The model appeared to actually learn (the training and validation loss went down), but when I try to make a prediction with the model, it just returns the same paragraph but truncated (ex. George Washington was). I don’t think this has anything to do with the max_length parameter, since the input was much shorter than the max_length.  Do you have any idea why this is happening?
edit: I was able to solve this issue. Thanks for all your help anyways!