my_model.generate(**inputs, num_beams=4, do_sample=True)  # doctest: +SKIP

Even if the default decoding strategy mostly works for your task, you can still tweak a few things. Some of the
commonly adjusted parameters include: