Skip to content

Commit 566ee5a

Browse files
committed
update default random_context_num to 8 to reduce seq len
Signed-off-by: zhehuaichen <dian.chenzhehuai@gmail.com>
1 parent 2bf9b07 commit 566ee5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nemo/collections/multimodal/speech_llm/data/lhotse_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def __init__(
336336
self.random_context_prob = random_context_prob
337337
self.random_context_positive_percent = random_context_positive_percent
338338

339-
def _inject_random_context_into_question(self, cut, random_context_num=32, random_context_positive_percent=0.1):
339+
def _inject_random_context_into_question(self, cut, random_context_num=8, random_context_positive_percent=0.1):
340340
if self.random_context_prob is not None and self.random_context_prob > 0:
341341
current_words = cut.supervisions[0].text.split()
342342
if len(current_words) == 0:

0 commit comments

Comments
 (0)