-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4882 from pyf98/ebf
Add E-Branchformer for GigaSpeech
- Loading branch information
Showing
7 changed files
with
125 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
lm_weight: 0.3 | ||
beam_size: 20 | ||
ctc_weight: 0.2 | ||
lm_weight: 0.0 | ||
penalty: 0.0 | ||
maxlenratio: 0.0 | ||
minlenratio: 0.0 | ||
ctc_weight: 0.3 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tuning/train_asr_e_branchformer_e17_size512_mlp3072_linear1024_layerdrop.yaml |
86 changes: 86 additions & 0 deletions
86
...h/asr1/conf/tuning/train_asr_e_branchformer_e17_size512_mlp3072_linear1024_layerdrop.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Trained with A5000 (24GB) x 5. It took about 8 days. | ||
# The e_branchformer encoder_conf is based on: | ||
# egs2/librispeech/asr1/conf/tuning/train_asr_e_branchformer.yaml | ||
|
||
batch_type: numel | ||
batch_bins: 35000000 | ||
accum_grad: 4 | ||
max_epoch: 30 | ||
patience: none | ||
init: none | ||
best_model_criterion: | ||
- - valid | ||
- acc | ||
- max | ||
keep_nbest_models: 10 | ||
num_workers: 4 | ||
unused_parameters: true | ||
|
||
encoder: e_branchformer | ||
encoder_conf: | ||
output_size: 512 | ||
attention_heads: 8 | ||
attention_layer_type: rel_selfattn | ||
pos_enc_layer_type: rel_pos | ||
rel_pos_type: latest | ||
cgmlp_linear_units: 3072 | ||
cgmlp_conv_kernel: 31 | ||
use_linear_after_conv: false | ||
gate_activation: identity | ||
num_blocks: 17 | ||
dropout_rate: 0.1 | ||
positional_dropout_rate: 0.1 | ||
attention_dropout_rate: 0.1 | ||
input_layer: conv2d | ||
layer_drop_rate: 0.1 | ||
linear_units: 1024 | ||
positionwise_layer_type: linear | ||
macaron_ffn: true | ||
use_ffn: true | ||
merge_conv_kernel: 31 | ||
|
||
decoder: transformer | ||
decoder_conf: | ||
attention_heads: 8 | ||
linear_units: 2048 | ||
num_blocks: 6 | ||
dropout_rate: 0.1 | ||
positional_dropout_rate: 0.1 | ||
self_attention_dropout_rate: 0.1 | ||
src_attention_dropout_rate: 0.1 | ||
layer_drop_rate: 0.2 | ||
|
||
ctc_conf: | ||
ignore_nan_grad: true | ||
|
||
model_conf: | ||
ctc_weight: 0.3 | ||
lsm_weight: 0.1 | ||
length_normalized_loss: false | ||
|
||
optim: adam | ||
optim_conf: | ||
lr: 0.0015 | ||
scheduler: warmuplr | ||
scheduler_conf: | ||
warmup_steps: 25000 | ||
|
||
frontend_conf: | ||
n_fft: 512 | ||
hop_length: 256 | ||
|
||
specaug: specaug | ||
specaug_conf: | ||
apply_time_warp: true | ||
time_warp_window: 5 | ||
time_warp_mode: bicubic | ||
apply_freq_mask: true | ||
freq_mask_width_range: | ||
- 0 | ||
- 30 | ||
num_freq_mask: 2 | ||
apply_time_mask: true | ||
time_mask_width_range: | ||
- 0 | ||
- 40 | ||
num_time_mask: 2 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters