Skip to content

Commit 2adf352

Browse files
Salm fix
Signed-off-by: Nune <[email protected]>
1 parent 4e2fe60 commit 2adf352

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nemo/collections/speechlm2/modules/perception.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,10 @@ def transcribe_encoded(self, encoded, encoded_len):
210210
if isinstance(encoded, list):
211211
encoded = encoded[-1]
212212
encoded_len = encoded_len[-1]
213+
trcfg=TranscribeConfig()
214+
trcfg.enable_chunking=False
213215
return self.asr._transcribe_output_processing(
214-
outputs={"encoded": encoded, "encoded_len": encoded_len}, trcfg=TranscribeConfig()
216+
outputs={"encoded": encoded, "encoded_len": encoded_len}, trcfg=trcfg,
215217
)
216218

217219
# disable type checks to avoid type-check errors when using Conformer as modality adapter

0 commit comments

Comments
 (0)