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
b3ad37c5
Unverified
Commit
b3ad37c5
authored
Feb 24, 2026
by
eustlb
Committed by
GitHub
Feb 24, 2026
Browse files
[glm-asr] change defaults dummy audio size (#35108)
Signed-off-by:
Eustache Le Bihan
<
eulebihan@gmail.com
>
parent
14561fab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
tests/models/multimodal/processing/test_common.py
tests/models/multimodal/processing/test_common.py
+10
-2
No files found.
tests/models/multimodal/processing/test_common.py
View file @
b3ad37c5
...
@@ -333,10 +333,12 @@ def _test_processing_correctness(
...
@@ -333,10 +333,12 @@ def _test_processing_correctness(
rng
=
np
.
random
.
RandomState
(
0
)
rng
=
np
.
random
.
RandomState
(
0
)
# GLM-ASR requires a minimum audio length of 70ms
min_audio_len
=
512
if
model_config
.
hf_config
.
model_type
!=
"glmasr"
else
1120
input_to_hit
=
{
input_to_hit
=
{
"image"
:
Image
.
new
(
"RGB"
,
size
=
(
128
,
128
)),
"image"
:
Image
.
new
(
"RGB"
,
size
=
(
128
,
128
)),
"video"
:
np
.
zeros
((
4
,
128
,
128
,
3
),
dtype
=
np
.
uint8
),
"video"
:
np
.
zeros
((
4
,
128
,
128
,
3
),
dtype
=
np
.
uint8
),
"audio"
:
(
np
.
zeros
((
512
,)),
16000
),
"audio"
:
(
np
.
zeros
((
min_audio_len
,)),
16000
),
"vision_chunk"
:
{
"type"
:
"image"
,
"image"
:
Image
.
new
(
"RGB"
,
size
=
(
128
,
128
))},
"vision_chunk"
:
{
"type"
:
"image"
,
"image"
:
Image
.
new
(
"RGB"
,
size
=
(
128
,
128
))},
}
}
input_factory
=
{
input_factory
=
{
...
@@ -344,7 +346,13 @@ def _test_processing_correctness(
...
@@ -344,7 +346,13 @@ def _test_processing_correctness(
"video"
:
partial
(
"video"
:
partial
(
random_video
,
rng
,
min_frames
=
2
,
max_frames
=
16
,
min_wh
=
128
,
max_wh
=
256
random_video
,
rng
,
min_frames
=
2
,
max_frames
=
16
,
min_wh
=
128
,
max_wh
=
256
),
),
"audio"
:
partial
(
random_audio
,
rng
,
min_len
=
512
,
max_len
=
1024
,
sr
=
16000
),
"audio"
:
partial
(
random_audio
,
rng
,
min_len
=
min_audio_len
,
max_len
=
min_audio_len
+
512
,
sr
=
16000
,
),
"vision_chunk"
:
partial
(
"vision_chunk"
:
partial
(
random_vision_chunk
,
rng
,
min_wh
=
128
,
max_wh
=
256
,
min_frames
=
1
,
max_frames
=
1
random_vision_chunk
,
rng
,
min_wh
=
128
,
max_wh
=
256
,
min_frames
=
1
,
max_frames
=
1
),
),
...
...
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