Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
5fa0a1b2
Unverified
Commit
5fa0a1b2
authored
Jun 08, 2023
by
Sadra Barikbin
Committed by
GitHub
Jun 08, 2023
Browse files
Fix a tiny typo in `WhisperForConditionalGeneration::generate` docstring (#24045)
parent
ba695c1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/models/whisper/modeling_whisper.py
src/transformers/models/whisper/modeling_whisper.py
+2
-2
No files found.
src/transformers/models/whisper/modeling_whisper.py
View file @
5fa0a1b2
...
@@ -1519,10 +1519,10 @@ class WhisperForConditionalGeneration(WhisperPreTrainedModel):
...
@@ -1519,10 +1519,10 @@ class WhisperForConditionalGeneration(WhisperPreTrainedModel):
Whether to continue running the while loop until max_length (needed for ZeRO stage 3)
Whether to continue running the while loop until max_length (needed for ZeRO stage 3)
return_timestamps (`bool`, *optional*):
return_timestamps (`bool`, *optional*):
Whether to return the timestamps with the text. This enables the `WhisperTimestampsLogitsProcessor`.
Whether to return the timestamps with the text. This enables the `WhisperTimestampsLogitsProcessor`.
task (`
bool
`, *optional*):
task (`
str
`, *optional*):
Task to use for generation, either "translate" or "transcribe". The `model.config.forced_decoder_ids`
Task to use for generation, either "translate" or "transcribe". The `model.config.forced_decoder_ids`
will be updated accordingly.
will be updated accordingly.
language (`
bool
`, *optional*):
language (`
str
`, *optional*):
Language token to use for generation, can be either in the form of `<|en|>`, `en` or `english`. You can
Language token to use for generation, can be either in the form of `<|en|>`, `en` or `english`. You can
find all the possible language tokens in the `model.generation_config.lang_to_id` dictionary.
find all the possible language tokens in the `model.generation_config.lang_to_id` dictionary.
is_multilingual (`bool`, *optional*):
is_multilingual (`bool`, *optional*):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment