mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 01:05:01 +08:00
[Model][Bugfix] Fix MiDashengLM audio encoder mask by removing incorrect logical_not (#25925)
Signed-off-by: zhoukz <me@zhoukz.com>
This commit is contained in:
parent
e47433b3c1
commit
2e1b8bc2b6
@ -426,8 +426,7 @@ class DashengAudioTransformer(nn.Module):
|
||||
assert x_length.ndim == 1, "Lengths are of size (B,)"
|
||||
scaled_lengths = (x_length / (self.hop_length * 4)).long()
|
||||
mask = self._to_mask(max_length=t, lengths=scaled_lengths)
|
||||
split_masks = mask.logical_not().split(target_length_in_patches,
|
||||
dim=-1)
|
||||
split_masks = mask.split(target_length_in_patches, dim=-1)
|
||||
else:
|
||||
mask = None
|
||||
split_masks = [None] * len(input_splits)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user