| HUB_TOKEN=`cat $HOME/.huggingface/token` | |
| python run_mlm_flax.py \ | |
| --output_dir="./" \ | |
| --model_type="roberta" \ | |
| --config_name="./" \ | |
| --tokenizer_name="./" \ | |
| --train_file="/home/nipunsadvilkar/mr_data/mr_train_df.csv" \ | |
| --validation_file="/home/nipunsadvilkar/mr_data/mr_validation_df.csv"\ | |
| --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" \ | |
| --report_to wandb \ | |
| --run_name hf-flax-robert-base-mr \ | |
| --push_to_hub_model_id="flax-community/roberta-base-mr" \ | |
| --push_to_hub_token=$HUB_TOKEN \ | |
| --push_to_hub 2>&1 | tee run.log | |