-
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 #4793 from slSeanWU/whisper-full
Add Full Whisper Model for Finetuning
- Loading branch information
Showing
34 changed files
with
1,537 additions
and
17 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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
beam_size: 20 | ||
ctc_weight: 0.0 | ||
lm_weight: 0.0 | ||
maxlenratio: 0.25 | ||
minlenratio: 0.0 | ||
penalty: 0.0 |
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,6 @@ | ||
beam_size: 1 | ||
ctc_weight: 0.0 | ||
lm_weight: 0.0 | ||
maxlenratio: 0.3 | ||
minlenratio: 0.0 | ||
penalty: 0.0 |
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,74 @@ | ||
normalize: null | ||
|
||
encoder: whisper | ||
encoder_conf: | ||
whisper_model: medium | ||
dropout_rate: 0.0 | ||
use_specaug: true | ||
specaug_conf: | ||
apply_time_warp: true | ||
time_warp_window: 5 | ||
time_warp_mode: bicubic | ||
apply_freq_mask: true | ||
freq_mask_width_range: | ||
- 0 | ||
- 40 | ||
num_freq_mask: 2 | ||
apply_time_mask: true | ||
time_mask_width_ratio_range: | ||
- 0. | ||
- 0.12 | ||
num_time_mask: 5 | ||
|
||
|
||
decoder: whisper | ||
decoder_conf: | ||
whisper_model: medium | ||
dropout_rate: 0.0 | ||
|
||
model_conf: | ||
ctc_weight: 0.0 | ||
lsm_weight: 0.1 | ||
length_normalized_loss: false | ||
sym_sos: "<|startoftranscript|>" | ||
sym_eos: "<|endoftext|>" | ||
extract_feats_in_collect_stats: false | ||
|
||
|
||
frontend: null | ||
input_size: 1 # to prevent build_model() from complaining | ||
|
||
seed: 2022 | ||
log_interval: 100 | ||
num_att_plot: 0 | ||
num_workers: 4 | ||
sort_in_batch: descending # how to sort data in making batch | ||
sort_batch: descending # how to sort created batches | ||
batch_type: numel | ||
batch_bins: 10000000 # good for single GPU w/ 40G mem | ||
accum_grad: 4 | ||
max_epoch: 3 | ||
patience: none | ||
init: none | ||
best_model_criterion: | ||
- - valid | ||
- acc | ||
- max | ||
keep_nbest_models: 3 | ||
|
||
use_amp: true | ||
cudnn_deterministic: false | ||
cudnn_benchmark: false | ||
|
||
optim: adamw | ||
grad_clip: 1.0 | ||
optim_conf: | ||
lr: 1.0e-05 | ||
weight_decay: 0.01 | ||
betas: | ||
- 0.9 | ||
- 0.99 | ||
eps: 1.0e-06 | ||
scheduler: warmuplr | ||
scheduler_conf: | ||
warmup_steps: 1500 |
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
6 changes: 6 additions & 0 deletions
6
egs2/librispeech_100/asr1/conf/decode_asr_whisper_noctc_greedy.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,6 @@ | ||
beam_size: 1 | ||
ctc_weight: 0.0 | ||
lm_weight: 0.0 | ||
maxlenratio: 0.3 | ||
minlenratio: 0.0 | ||
penalty: 0.0 |
73 changes: 73 additions & 0 deletions
73
egs2/librispeech_100/asr1/conf/tuning/train_asr_whisper_full.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,73 @@ | ||
normalize: null | ||
|
||
encoder: whisper | ||
encoder_conf: | ||
whisper_model: medium | ||
dropout_rate: 0.0 | ||
use_specaug: true | ||
specaug_conf: | ||
apply_time_warp: true | ||
time_warp_window: 5 | ||
time_warp_mode: bicubic | ||
apply_freq_mask: true | ||
freq_mask_width_range: | ||
- 0 | ||
- 40 | ||
num_freq_mask: 2 | ||
apply_time_mask: true | ||
time_mask_width_ratio_range: | ||
- 0. | ||
- 0.12 | ||
num_time_mask: 5 | ||
|
||
|
||
decoder: whisper | ||
decoder_conf: | ||
whisper_model: medium | ||
dropout_rate: 0.0 | ||
|
||
model_conf: | ||
ctc_weight: 0.0 | ||
lsm_weight: 0.1 | ||
length_normalized_loss: false | ||
sym_sos: "<|startoftranscript|>" | ||
sym_eos: "<|endoftext|>" | ||
# do_pad_trim: true # should be set when doing zero-shot inference | ||
|
||
frontend: null | ||
input_size: 1 # to prevent build_model() from complaining | ||
|
||
seed: 2022 | ||
log_interval: 100 | ||
num_att_plot: 0 | ||
num_workers: 4 | ||
sort_in_batch: descending # how to sort data in making batch | ||
sort_batch: descending # how to sort created batches | ||
batch_type: numel | ||
batch_bins: 12000000 # good for single GPU w/ 40G mem | ||
accum_grad: 4 | ||
max_epoch: 3 | ||
patience: none | ||
init: none | ||
best_model_criterion: | ||
- - valid | ||
- acc | ||
- max | ||
keep_nbest_models: 3 | ||
|
||
use_amp: true | ||
cudnn_deterministic: false | ||
cudnn_benchmark: false | ||
|
||
optim: adamw | ||
grad_clip: 1.0 | ||
optim_conf: | ||
lr: 1.0e-05 | ||
weight_decay: 0.01 | ||
betas: | ||
- 0.9 | ||
- 0.99 | ||
eps: 1.0e-06 | ||
scheduler: warmuplr | ||
scheduler_conf: | ||
warmup_steps: 1500 |
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
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
Oops, something went wrong.