Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline: fix bad generation kwargs docs #33205

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/transformers/pipelines/text2text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def __call__(self, *args, **kwargs):
max_length instead of throwing an error down the line.
generate_kwargs:
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework [here](./main_classes/text_generation)).
corresponding to your framework [here](./text_generation)).

Return:
A list or a list of list of `dict`: Each result comes as a dictionary with the following keys:
Expand Down Expand Up @@ -257,7 +257,7 @@ def __call__(self, *args, **kwargs):
Whether or not to clean up the potential extra spaces in the text output.
generate_kwargs:
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework [here](./main_classes/text_generation)).
corresponding to your framework [here](./text_generation)).

Return:
A list or a list of list of `dict`: Each result comes as a dictionary with the following keys:
Expand Down Expand Up @@ -359,7 +359,7 @@ def __call__(self, *args, **kwargs):
for single pair translation models
generate_kwargs:
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework [here](./main_classes/text_generation)).
corresponding to your framework [here](./text_generation)).

Return:
A list or a list of list of `dict`: Each result comes as a dictionary with the following keys:
Expand Down
Loading