nullonesix's picture
Saving train state of step 1
a1be16b verified
raw
history blame
5.05 kB
#!/usr/bin/env bash
DATASET_NAME="librispeech_asr-noise+librispeech_asr-noise+librispeech_asr-noise+librispeech_asr-noise+librispeech_asr-noise+librispeech_asr-noise+librispeech_asr-noise+librispeech_asr-noise+librispeech_asr-noise+librispeech_asr-noise+librispeech_asr-noise"
DATASET_CONFIG_NAME=("validation-white-noise" "validation-pub-noise")
DATASET_SPLIT_NAME="40+35+30+25+20+15+10+5+0+minus5+minus10"
for i in "${!DATASET_CONFIG_NAME[@]}"; do
python run_eval.py \
--model_name_or_path "openai/whisper-tiny.en" \
--dataset_name $DATASET_NAME \
--dataset_config_name "${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}" \
--dataset_split_name $DATASET_SPLIT_NAME \
--cache_dir "/home/sanchitgandhi/cache" \
--dataset_cache_dir "/home/sanchitgandhi/cache" \
--output_dir "./" \
--wandb_dir "/home/sanchitgandhi/cache" \
--wandb_project "distil-whisper-noise-eval" \
--wandb_name "tiny.en-${DATASET_CONFIG_NAME[i]}" \
--per_device_eval_batch_size 64 \
--dtype "bfloat16" \
--dataloader_num_workers 16 \
--report_to "wandb" \
--streaming \
--predict_with_generate
python run_eval.py \
--model_name_or_path "openai/whisper-base.en" \
--dataset_name $DATASET_NAME \
--dataset_config_name "${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}" \
--dataset_split_name $DATASET_SPLIT_NAME \
--cache_dir "/home/sanchitgandhi/cache" \
--dataset_cache_dir "/home/sanchitgandhi/cache" \
--output_dir "./" \
--wandb_dir "/home/sanchitgandhi/cache" \
--wandb_project "distil-whisper-noise-eval" \
--wandb_name "base.en-${DATASET_CONFIG_NAME[i]}" \
--per_device_eval_batch_size 64 \
--dtype "bfloat16" \
--dataloader_num_workers 16 \
--report_to "wandb" \
--streaming \
--predict_with_generate
python run_eval.py \
--model_name_or_path "openai/whisper-small.en" \
--dataset_name $DATASET_NAME \
--dataset_config_name "${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}" \
--dataset_split_name $DATASET_SPLIT_NAME \
--cache_dir "/home/sanchitgandhi/cache" \
--dataset_cache_dir "/home/sanchitgandhi/cache" \
--output_dir "./" \
--wandb_dir "/home/sanchitgandhi/cache" \
--wandb_project "distil-whisper-noise-eval" \
--wandb_name "small.en-${DATASET_CONFIG_NAME[i]}" \
--per_device_eval_batch_size 64 \
--dtype "bfloat16" \
--dataloader_num_workers 16 \
--report_to "wandb" \
--streaming \
--predict_with_generate
python run_eval.py \
--model_name_or_path "openai/whisper-medium.en" \
--dataset_name $DATASET_NAME \
--dataset_config_name "${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}" \
--dataset_split_name $DATASET_SPLIT_NAME \
--cache_dir "/home/sanchitgandhi/cache" \
--dataset_cache_dir "/home/sanchitgandhi/cache" \
--output_dir "./" \
--wandb_dir "/home/sanchitgandhi/cache" \
--wandb_project "distil-whisper-noise-eval" \
--wandb_name "medium.en-${DATASET_CONFIG_NAME[i]}" \
--per_device_eval_batch_size 64 \
--dtype "bfloat16" \
--dataloader_num_workers 16 \
--report_to "wandb" \
--streaming \
--predict_with_generate
python run_eval.py \
--model_name_or_path "openai/whisper-large-v2" \
--dataset_name $DATASET_NAME \
--dataset_config_name "${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}+${DATASET_CONFIG_NAME[i]}" \
--dataset_split_name $DATASET_SPLIT_NAME \
--cache_dir "/home/sanchitgandhi/cache" \
--dataset_cache_dir "/home/sanchitgandhi/cache" \
--output_dir "./" \
--wandb_dir "/home/sanchitgandhi/cache" \
--wandb_project "distil-whisper-noise-eval" \
--wandb_name "large-v2-${DATASET_CONFIG_NAME[i]}" \
--per_device_eval_batch_size 32 \
--dtype "bfloat16" \
--dataloader_num_workers 16 \
--report_to "wandb" \
--streaming \
--predict_with_generate
done