how to beam search
The current interface is similar to 
`output=model.generate(**inputs, num_beams=4, no_repeat_ngram_size=7)`
but decoding one by one is too slow. Does beam seach support batch-by-batch decoding? 
How to write if support。
Please use the [forums](https://discuss.huggingface.co/) to ask such questions.<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.