@valhalla already gave a great answer if you want to speed-up generation with same parameters.
But you can also change beam-search parameters to speed-up the generation ! (At the cost of text quality, which may be lower). For example, you can :

Reduce the beam-size
Reduce the size of text to be generated