We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d0cb78 commit 54d8d62Copy full SHA for 54d8d62
lightllm/models/internvl/model.py
@@ -90,16 +90,16 @@ def get_audio_token_length(self, audio: AudioItem):
90
if L <= self.audio_max_length:
91
cur_len = L
92
if cur_len < self.audio_min_length:
93
- cur_len = MIN_AUDIO_LEN
+ cur_len = self.audio_min_length
94
chunk_lens.append(cur_len)
95
else:
96
start = 0
97
while start < L:
98
end = min(start + self.audio_max_length, L)
99
cur_len = end - start
100
101
- if cur_len < MIN_AUDIO_LEN:
102
+ if cur_len < self.audio_min_length:
103
104
105
start = end
0 commit comments