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
02bd6548
Unverified
Commit
02bd6548
authored
Apr 30, 2025
by
Alex Brooks
Committed by
GitHub
Apr 30, 2025
Browse files
[Misc] Rename Audios -> Audio in Qwen2audio Processing (#17507)
Signed-off-by:
Alex-Brooks
<
Alex.Brooks@ibm.com
>
parent
200bbf92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
vllm/model_executor/models/qwen2_audio.py
vllm/model_executor/models/qwen2_audio.py
+8
-1
No files found.
vllm/model_executor/models/qwen2_audio.py
View file @
02bd6548
...
...
@@ -150,8 +150,15 @@ class Qwen2AudioMultiModalProcessor(
mm_data
:
Mapping
[
str
,
object
],
mm_kwargs
:
Mapping
[
str
,
Any
],
)
->
BatchFeature
:
# NOTE - we rename audios -> audio in mm data because transformers has
# deprecated audios for the qwen2audio processor and will remove
# support for it in transformers 4.54.
audios
=
mm_data
.
pop
(
"audios"
,
[])
if
audios
:
mm_data
[
"audio"
]
=
audios
# Text-only input not supported in composite processor
if
not
mm_data
.
get
(
"audio
s
"
,
[]):
if
not
mm_data
.
get
(
"audio"
,
[]):
prompt_ids
=
self
.
info
.
get_tokenizer
().
encode
(
prompt
)
prompt_ids
=
self
.
_apply_hf_processor_tokens_only
(
prompt_ids
)
return
BatchFeature
(
dict
(
input_ids
=
[
prompt_ids
]),
tensor_type
=
"pt"
)
...
...
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