-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Docs: fix generate
-related rendering issues
#30600
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
generate
-related rendering issues
@@ -21,7 +21,7 @@ more. It also plays a role in a variety of mixed-modality applications that have | |||
and vision-to-text. Some of the models that can generate text include | |||
GPT2, XLNet, OpenAI GPT, CTRL, TransformerXL, XLM, Bart, T5, GIT, Whisper. | |||
|
|||
Check out a few examples that use [`~transformers.generation_utils.GenerationMixin.generate`] method to produce | |||
Check out a few examples that use [`~generation.GenerationMixin.generate`] method to produce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -256,25 +255,21 @@ class GenerationConfig(PushToHubMixin): | |||
`batch_size`. Indicating a list enables different start ids for each element in the batch | |||
(e.g. multilingual models with different target languages in one batch) | |||
|
|||
|
|||
> Generation parameters exclusive to [assistant generation](https://arxiv.org/abs/2211.17192) | |||
> Generation parameters exclusive to assistant generation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -218,8 +218,7 @@ class GenerationConfig(PushToHubMixin): | |||
Switch to sequential beam search and sequential topk for contrastive search to reduce peak memory. | |||
Used with beam search and contrastive search. | |||
|
|||
|
|||
> Parameters that define the output variables of `generate` | |||
> Parameters that define the output variables of generate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating all of these!
What does this PR do?
See title :)