This page lists all the utility functions used by [~generation_utils.GenerationMixin.generate],
[~generation_utils.GenerationMixin.greedy_search],
[~generation_utils.GenerationMixin.sample],
[~generation_utils.GenerationMixin.beam_search],
[~generation_utils.GenerationMixin.beam_sample], and
[~generation_utils.GenerationMixin.group_beam_search].
Most of those are only useful if you are studying the code of the generate methods in the library.
Generate Outputs
The output of [~generation_utils.GenerationMixin.generate] is an instance of a subclass of
[~file_utils.ModelOutput]. This output is a data structure containing all the information returned
by [~generation_utils.GenerationMixin.generate], but that can also be used as tuple or dictionary.
Here's an example:
```python
from transformers import GPT2Tokenizer, GPT2LMHeadModel
