File size: 978 Bytes
a1f93c9
48f8c78
2835721
 
 
 
 
a1f93c9
 
 
2835721
a95f7b8
 
 
a1f93c9
 
 
 
 
a95f7b8
 
 
a1f93c9
2835721
a1f93c9
 
 
a95f7b8
 
48f8c78
a95f7b8
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
# From https://arxiv.org/pdf/1907.11692.pdf
HUB_TOKEN=`cat $HOME/.huggingface/token`
./run_mlm_flax.py \
    --output_dir="./" \
    --model_type="roberta" \
    --config_name="./" \
    --tokenizer_name="./" \
    --dataset_name="mc4" \
    --dataset_config_name="es" \
    --dataset_streamnig \
    --max_seq_length="128" \
    --pad_to_max_length  \
    --per_device_train_batch_size="128" \
    --per_device_eval_batch_size="128" \
    --adam_beta1="0.9" \
    --adam_beta2="0.98" \
    --adam_epsilon="1e-6" \
    --learning_rate="4e-4" \
    --weight_decay="0.01" \
    --save_strategy="steps" \
    --save_steps="10000" \
    --save_total_limit="5" \
    --warmup_steps="30000" \
    --overwrite_output_dir \
    --num_train_steps="500000" \
    --eval_steps="10000" \
    --logging_steps="500" \
    --dtype="bfloat16" \
    --push_to_hub_model_id="flax-community/bertin-roberta-large-spanish" \
    --push_to_hub_token="$HUB_TOKEN"
    --push_to_hub 2>&1 | tee run.log