anton-l HF staff commited on
Commit
9208e8a
1 Parent(s): c6ff2d7

Create run.sh

Browse files
Files changed (1) hide show
  1. run.sh +36 -0
run.sh ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ python -m torch.distributed.launch \
3
+ --nproc_per_node 4 run_speech_recognition_ctc_streaming.py \
4
+ --dataset_name="common_voice" \
5
+ --model_name_or_path="facebook/wav2vec2-xls-r-300m" \
6
+ --tokenizer_name_or_path="anton-l/wav2vec2-tokenizer-turkish" \
7
+ --dataset_config_name="tr" \
8
+ --train_split_name="train+validation" \
9
+ --eval_split_name="test" \
10
+ --output_dir="wav2vec2-xls-r-common_voice-tr-ft-stream" \
11
+ --overwrite_output_dir \
12
+ --max_steps="5000" \
13
+ --per_device_train_batch_size="8" \
14
+ --gradient_accumulation_steps="2" \
15
+ --learning_rate="5e-4" \
16
+ --warmup_steps="500" \
17
+ --evaluation_strategy="steps" \
18
+ --text_column_name="sentence" \
19
+ --save_steps="500" \
20
+ --eval_steps="500" \
21
+ --logging_steps="1" \
22
+ --layerdrop="0.0" \
23
+ --eval_metrics wer cer \
24
+ --save_total_limit="1" \
25
+ --mask_time_prob="0.3" \
26
+ --mask_time_length="10" \
27
+ --mask_feature_prob="0.1" \
28
+ --mask_feature_length="64" \
29
+ --freeze_feature_encoder \
30
+ --chars_to_ignore , ? . ! - \; \: \" “ % ‘ ” � \
31
+ --max_duration_in_seconds="20" \
32
+ --shuffle_buffer_size="500" \
33
+ --fp16 \
34
+ --push_to_hub \
35
+ --do_train --do_eval \
36
+ --gradient_checkpointing