-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_clm.sh.template
35 lines (34 loc) · 1.04 KB
/
run_clm.sh.template
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
33
34
35
#!/bin/bash
echo "Start running..."
export HF_ENDPOINT=https://hf-mirror.com
accelerate launch run_clm.py \
--config_name configs/my_llama_tiny.json \
--tokenizer_name TinyLlama/TinyLlama-1.1B-intermediate-step-1195k-token-2.5T \
--dataset_name wikitext \
--dataset_config_name wikitext-2-raw-v1 \
--per_device_train_batch_size 32 \
--per_device_eval_batch_size 32 \
--auto_find_batch_size \
--gradient_accumulation_steps 1 \
--block_size 2048 \
--attn_implementation flash_attention_2 \
--lr_scheduler_type cosine \
--warmup_ratio 0.015 \
--learning_rate 3e-4 \
--weight_decay 1e-1 \
--bf16 \
--torch_dtype bfloat16 \
--do_train \
--do_eval \
--do_predict \
--num_train_epochs 1 \
--save_total_limit 1 \
--save_strategy steps \
--save_steps 200 \
--evaluation_strategy steps \
--eval_steps 200 \
--logging_steps 50 \
--load_best_model_at_end True \
--metric_for_best_model eval_loss \
--report_to none \
--output_dir outputs/my-llama-tiny