-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding jenkins test for speech_to_text_aed model #8368
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -607,6 +607,48 @@ pipeline { | |
|
||
} | ||
|
||
stage('L2: Speech to Text AED') { | ||
when { | ||
anyOf { | ||
branch 'r1.23.0' | ||
changeRequest target: 'r1.23.0' | ||
} | ||
} | ||
steps { | ||
sh 'python examples/asr/speech_multitask/speech_to_text_aed.py \ | ||
model.prompt_format=canary \ | ||
model.model_defaults.asr_enc_hidden=256 \ | ||
model.model_defaults.lm_dec_hidden=256 \ | ||
model.encoder.n_layers=12 \ | ||
model.transf_encoder.num_layers=0 \ | ||
model.transf_decoder.config_dict.num_layers=12 \ | ||
model.train_ds.manifest_filepath=/home/TestData/asr/manifests/canary/an4_canary_train.json \ | ||
++model.train_ds.is_tarred=false \ | ||
model.train_ds.batch_duration=60 \ | ||
+model.train_ds.text_field="answer" \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the manifest, why isnt There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AFAIK that was an already established convention in speech lm expts, in order to support these cases we allow users to choose whichever keys they want to read text and lang from. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok - but why is the default not |
||
+model.train_ds.lang_field="target_lang" \ | ||
model.validation_ds.manifest_filepath=/home/TestData/asr/manifests/canary/an4_canary_val.json \ | ||
+model.validation_ds.text_field="answer" \ | ||
+model.validation_ds.lang_field="target_lang" \ | ||
model.test_ds.manifest_filepath=/home/TestData/asr/manifests/canary/an4_canary_val.json \ | ||
+model.test_ds.text_field="answer" \ | ||
+model.test_ds.lang_field="target_lang" \ | ||
model.tokenizer.langs.spl_tokens.dir=/home/TestData/asr_tokenizers/canary/canary_spl_tokenizer_v32 \ | ||
model.tokenizer.langs.spl_tokens.type="bpe" \ | ||
model.tokenizer.langs.en.dir=/home/TestData/asr_tokenizers/canary/en/tokenizer_spe_bpe_v1024_max_4 \ | ||
model.tokenizer.langs.en.type=bpe \ | ||
++model.tokenizer.langs.es.dir=/home/TestData/asr_tokenizers/canary/es/tokenizer_spe_bpe_v1024_max_4 \ | ||
++model.tokenizer.langs.es.type=bpe \ | ||
trainer.devices=[0] \ | ||
trainer.accelerator="gpu" \ | ||
+trainer.use_distributed_sampler=false \ | ||
+trainer.fast_dev_run=True \ | ||
exp_manager.exp_dir=examples/asr/speech_to_text_aed_results' | ||
sh 'rm -rf examples/asr/speech_to_text_results' | ||
} | ||
|
||
} | ||
|
||
stage('L2: Speaker dev run') { | ||
when { | ||
anyOf { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm is it necessary for Lhotse to use is_tarred true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it auto-infers the right type. This arg is ignored. I missed that this arg is here earlier actually...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove it from config and code in main in another PR? After release that is