HUB_TOKEN=`cat $HOME/.huggingface/token` | |
python run_mlm_flax.py \ | |
--output_dir="./" \ | |
--model_type="roberta" \ | |
--config_name="./" \ | |
--tokenizer_name="./" \ | |
--dataset_name="oscar" \ | |
--dataset_config_name="unshuffled_deduplicated_als" \ | |
--max_seq_length="128" \ | |
--per_device_train_batch_size="4" \ | |
--per_device_eval_batch_size="4" \ | |
--learning_rate="3e-4" \ | |
--warmup_steps="1000" \ | |
--overwrite_output_dir \ | |
--num_train_epochs="8" \ | |
--push_to_hub_model_id="flax-community/roberta-base-mr" \ | |
--push_to_hub_token="$HUB_TOKEN" \ | |
--push_to_hub 2>&1 | tee run.log | |