patrickvonplaten commited on
Commit
8be238f
1 Parent(s): 2cda102
Files changed (1) hide show
  1. run.sh +29 -0
run.sh ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ CUDA_VISIBLE_DEVICES="0" python run_speech_recognition_ctc.py \
4
+ --dataset_name="common_voice" \
5
+ --model_name_or_path="facebook/wav2vec2-large-xlsr-53" \
6
+ --dataset_config_name="tr" \
7
+ --output_dir="./wav2vec2-common_voice-tr-demo" \
8
+ --preprocessing_num_workers="1" \
9
+ --overwrite_output_dir \
10
+ --num_train_epochs="15" \
11
+ --per_device_train_batch_size="16" \
12
+ --gradient_accumulation_steps="2" \
13
+ --learning_rate="3e-4" \
14
+ --warmup_steps="500" \
15
+ --evaluation_strategy="steps" \
16
+ --audio_column_name="path" \
17
+ --text_column_name="sentence" \
18
+ --save_steps="400" \
19
+ --eval_steps="100" \
20
+ --logging_steps="1" \
21
+ --layerdrop="0.0" \
22
+ --save_total_limit="3" \
23
+ --freeze_feature_extractor \
24
+ --gradient_checkpointing \
25
+ --chars_to_ignore , ? . ! - \; \: \" “ % ‘ ” � \
26
+ --fp16 \
27
+ --group_by_length \
28
+ --push_to_hub \
29
+ --do_train --do_eval