Change decoding strategy for trainer

When I use Seq2SeqTrainer to train and evaluate, how do I change the decoding strategy. For example, during evaluation after each epoch, I want to use top_p decoding, where do I pass arguments such as do_sample=, top_p=