Upload train.sh
Browse files
train.sh
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python run_mlm.py \
|
2 |
+
--model_name_or_path Bingsu/my_mobilebert_untrained \
|
3 |
+
--dataset_name Bingsu/my-korean-training-corpus-half \
|
4 |
+
--per_device_train_batch_size 16 \
|
5 |
+
--per_device_eval_batch_size 16 \
|
6 |
+
--gradient_accumulation_steps 16 \
|
7 |
+
--max_steps 1000000 \
|
8 |
+
--lr_scheduler_type cosine_with_restarts \
|
9 |
+
--warmup_ratio 0.05 \
|
10 |
+
--save_steps 5000 \
|
11 |
+
--save_total_limit 5 \
|
12 |
+
--logging_steps 5000 \
|
13 |
+
--fp16 \
|
14 |
+
--optim adamw_torch \
|
15 |
+
--do_train \
|
16 |
+
--do_eval \
|
17 |
+
--push_to_hub \
|
18 |
+
--hub_strategy checkpoint \
|
19 |
+
--output_dir mobilebert_ko \
|
20 |
+
--overwrite_output_dir \
|
21 |
+
--gradient_checkpointing \
|
22 |
+
--use_auth_token
|