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
2e1b8bc2
Unverified
Commit
2e1b8bc2
authored
Sep 30, 2025
by
zhoukz
Committed by
GitHub
Sep 30, 2025
Browse files
[Model][Bugfix] Fix MiDashengLM audio encoder mask by removing incorrect `logical_not` (#25925)
Signed-off-by:
zhoukz
<
me@zhoukz.com
>
parent
e47433b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
vllm/model_executor/models/midashenglm.py
vllm/model_executor/models/midashenglm.py
+1
-2
No files found.
vllm/model_executor/models/midashenglm.py
View file @
2e1b8bc2
...
@@ -426,8 +426,7 @@ class DashengAudioTransformer(nn.Module):
...
@@ -426,8 +426,7 @@ class DashengAudioTransformer(nn.Module):
assert
x_length
.
ndim
==
1
,
"Lengths are of size (B,)"
assert
x_length
.
ndim
==
1
,
"Lengths are of size (B,)"
scaled_lengths
=
(
x_length
/
(
self
.
hop_length
*
4
)).
long
()
scaled_lengths
=
(
x_length
/
(
self
.
hop_length
*
4
)).
long
()
mask
=
self
.
_to_mask
(
max_length
=
t
,
lengths
=
scaled_lengths
)
mask
=
self
.
_to_mask
(
max_length
=
t
,
lengths
=
scaled_lengths
)
split_masks
=
mask
.
logical_not
().
split
(
target_length_in_patches
,
split_masks
=
mask
.
split
(
target_length_in_patches
,
dim
=-
1
)
dim
=-
1
)
else
:
else
:
mask
=
None
mask
=
None
split_masks
=
[
None
]
*
len
(
input_splits
)
split_masks
=
[
None
]
*
len
(
input_splits
)
...
...
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