File size: 1,006 Bytes
f4133c7 |
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 |
for lang in "arabic" "chinese" "czech" "english" "finnish" "french" "german" "hindi" "hungarian" "italian" "portuguese" "russian" "spanish" "turkish"
do
echo "";
echo "$lang";
./run_mlm_flax_eval.py \
--model_name_or_path="bert-base-multilingual-cased" \
--output_dir="./" \
--model_type="bert" \
--config_name="./" \
--validation_file="./pulpo_lines_val.json" \
--train_file="./pulpo_lines_train.json" \
--tokenizer_name="bert-base-multilingual-cased" \
--max_seq_length="32" \
--pad_to_max_length \
--per_device_train_batch_size="256" \
--per_device_eval_batch_size="256" \
--adam_beta1="0.9" \
--adam_beta2="0.98" \
--adam_epsilon="1e-6" \
--learning_rate="1.25e-4" \
--weight_decay="0.01" \
--save_steps="1000" \
--warmup_steps="10000" \
--num_train_epochs="40" \
--overwrite_output_dir \
--eval_steps="1000" \
--do_train="false" \
--do_eval="true" \
--lang="$lang" \
--logging_steps="500"
done
|