Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
24d0ef89
Unverified
Commit
24d0ef89
authored
May 29, 2025
by
Nicolò Lucchesi
Committed by
GitHub
May 29, 2025
Browse files
[Misc] Replace TODO in serving transcription (#18895)
Signed-off-by:
NickLucche
<
nlucches@redhat.com
>
parent
7fcfd954
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/entrypoints/openai/serving_transcription.py
vllm/entrypoints/openai/serving_transcription.py
+3
-1
No files found.
vllm/entrypoints/openai/serving_transcription.py
View file @
24d0ef89
...
@@ -278,7 +278,9 @@ class OpenAIServingTranscription(OpenAIServing):
...
@@ -278,7 +278,9 @@ class OpenAIServingTranscription(OpenAIServing):
result_generator
:
Optional
[
AsyncGenerator
[
RequestOutput
,
None
]]
=
None
result_generator
:
Optional
[
AsyncGenerator
[
RequestOutput
,
None
]]
=
None
try
:
try
:
# TODO(rob): subtract len of tokenized prompt.
# Unlike most decoder-only models, whisper generation length is not
# constrained by the size of the input audio, which is mapped to a
# fixed-size log-mel-spectogram.
default_max_tokens
=
self
.
model_config
.
max_model_len
default_max_tokens
=
self
.
model_config
.
max_model_len
sampling_params
=
request
.
to_sampling_params
(
sampling_params
=
request
.
to_sampling_params
(
default_max_tokens
,
self
.
default_sampling_params
)
default_max_tokens
,
self
.
default_sampling_params
)
...
...
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