versae's picture
Adding evaluations on val set
c081a91
raw
history blame
923 Bytes
# From https://arxiv.org/pdf/1907.11692.pdf
./run_mlm_flax_eval.py \
--model_name_or_path="flax-community/alberti-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" \
--preprocessing_num_workers="96" \
--logging_steps="500" 2>&1 | tee run.log