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

Fix link in Pipeline documentation #30948

Merged
merged 2 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/transformers/pipelines/conversational.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def __call__(self, conversations: Union[List[Dict], Conversation, List[Conversat
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](./model#generative-models)).
corresponding to your framework [here](./main_classes/text_generation)).

Returns:
[`Conversation`] or a list of [`Conversation`]: Conversation(s) with updated generated responses for those
Expand Down
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](./model#generative-models)).
corresponding to your framework [here](./main_classes/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](./model#generative-models)).
corresponding to your framework [here](./main_classes/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](./model#generative-models)).
corresponding to your framework [here](./main_classes/text_generation)).

Return:
A list or a list of list of `dict`: Each result comes as a dictionary with the following keys:
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/pipelines/text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def __call__(self, text_inputs, **kwargs):
truncate a lot of the prompt and not suitable when generation exceed the model capacity)
generate_kwargs (`dict`, *optional*):
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework [here](./model#generative-models)).
corresponding to your framework [here](./main_classes/text_generation)).

Return:
A list or a list of lists of `dict`: Returns one of the following dictionaries (cannot return a combination
Expand Down
Loading