File size: 931 Bytes
752f635 bab84ab e52e3c0 752f635 e52e3c0 752f635 bab84ab 752f635 |
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 |
# set train hyperparams
unset LD_PRELOAD
export HF_DATASETS_CACHE="/researchdisk/datasets_cache"
export USE_TORCH=0
python3 run_mlm_flax.py \
--output_dir="./" \
--model_name_or_path="./" \
--config_name="./" \
--tokenizer_name="./" \
--dataset_filepath="/researchdisk/training_dataset_full_deduplicated" \
--max_seq_length="512" \
--pad_to_max_length \
--preprocessing_num_workers="64" \
--per_device_train_batch_size="16" \
--per_device_eval_batch_size="16" \
--adam_beta1="0.9" \
--adam_beta2="0.98" \
--adam_epsilon="1e-6" \
--learning_rate="2e-4" \
--weight_decay="0.01" \
--warmup_steps="2500" \
--overwrite_output_dir \
--num_train_epochs="4" \
--save_steps="10000" \
--eval_steps="10000" \
--logging_steps="500" \
--dtype="bfloat16" \
--adafactor \
--push_to_hub \
--hub_model_id="Finnish-NLP/roberta-large-wechsel-finnish" |