We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acde30f commit 545e1d0Copy full SHA for 545e1d0
src/transformers/generation/utils.py
@@ -2126,7 +2126,7 @@ def generate(
2126
- [`~generation.GenerateBeamEncoderDecoderOutput`]
2127
"""
2128
# 0. If requested, load an arbitrary generation recipe from the Hub and run it instead
2129
- if recipe is not None:
+ if recipe is not None: # TODO: should also go in the generation config, so that users can save it
2130
# Get all `generate` arguments in a single variable. Custom functions are responsible for handling them:
2131
# they receive the same inputs as `generate`, only with `model` instead of `self`. They can access to
2132
# methods from `GenerationMixin` through `model`.
0 commit comments