File size: 1,306 Bytes
eaa215b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
#!/usr/bin/env bash
python run_flax_speech_recognition_seq2seq.py \
--dataset_name="speechcolab/gigaspeech" \
--model_name_or_path="sanchit-gandhi/flax-wav2vec2-2-bart-large-scan" \
--dataset_config_name="l" \
--train_split_name="train" \
--eval_split_name="validation" \
--test_split_name="test" \
--text_column_name="text" \
--id_column_name="segment_id" \
--output_dir="./" \
--wandb_project="gigaspeech" \
--wandb_name="flax-wav2vec2-2-bart-large-gs-black-box" \
--dataset_cache_dir="/home/sanchitgandhi/cache/huggingface/datasets" \
--per_device_train_batch_size="8" \
--per_device_eval_batch_size="4" \
--learning_rate="1e-4" \
--warmup_steps="500" \
--logging_steps="25" \
--max_steps="50000" \
--eval_steps="10000" \
--save_steps="10000" \
--generation_max_length="200" \
--generation_num_beams="5" \
--generation_length_penalty="1.2" \
--overwrite_output_dir \
--gradient_checkpointing \
--freeze_feature_encoder \
--predict_with_generate \
--do_lower_case \
--do_eval \
--do_train \
--do_predict \
--push_to_hub \
--use_auth_token
|