python run_speech_recognition_ctc.py \ | |
--dataset_name="mozilla-foundation/common_voice_8_0" \ | |
--model_name_or_path="facebook/wav2vec2-xls-r-300m" \ | |
--dataset_config_name="el" \ | |
--output_dir="./" \ | |
--overwrite_output_dir \ | |
--num_train_epochs="40" \ | |
--per_device_train_batch_size="32" \ | |
--gradient_accumulation_steps="2" \ | |
--learning_rate="5e-5" \ | |
--warmup_steps="1000" \ | |
--lr_scheduler_type="linear" \ | |
--feat_proj_dropout="0.1" \ | |
--attention_dropout="0.1" \ | |
--max_duration_in_seconds="15" \ | |
--mask_time_prob="0.4" \ | |
--mask_feature_prob="0.1" \ | |
--evaluation_strategy="steps" \ | |
--text_column_name="sentence" \ | |
--length_column_name="input_length" \ | |
--save_steps="1000" \ | |
--eval_steps="400" \ | |
--layerdrop="0.0" \ | |
--save_total_limit="2" \ | |
--freeze_feature_encoder \ | |
--gradient_checkpointing \ | |
--fp16 \ | |
--push_to_hub \ | |
--group_by_length \ | |
--do_train --do_eval |