forked from HabanaAI/Model-References
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_llama_70B_fp8_submission.sh
executable file
·39 lines (39 loc) · 1.11 KB
/
run_llama_70B_fp8_submission.sh
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
36
37
38
39
PROC_FS=${PROC_FS:-"/proc"}
sync && echo 3 > $PROC_FS/sys/vm/drop_caches
LOWER_LIST=ops_bf16.txt python scripts/gaudi_spawn.py --world_size 8 --use_deepspeed scripts/train.py \
--dataset_path "/root/datasets/scrolls_gov_report_8k" \
--model_path /root/model/Llama2-70b-fused-qkv-mlperf \
--max_seq_len 8192 \
--bf16 True \
--logging_steps 24 \
--eval_steps 48 \
--save_steps 999 \
--output_dir "/tmp/llama-70b" \
--dataloader_num_workers 4 \
--per_device_train_batch_size 1 \
--gradient_accumulation_steps 1 \
--lr_scheduler_type "cosine" \
--learning_rate 4e-4 \
--weight_decay 0.0001 \
--warmup_ratio 0 \
--max_grad_norm 0.3 \
--use_gradient_checkpointing True \
--target_eval_loss 0.925 \
--use_peft_lora True \
--lora_r 16 \
--lora_alpha 32 \
--lora_dropout 0.1 \
--max_steps 1024 \
--seed ${RANDOM} \
--use_habana \
--use_lazy_mode \
--deepspeed configs/ds_zero3.json \
--evaluation_strategy steps \
--gradient_checkpointing True \
--cache_dir /tmp/datasets \
--warmup \
--adjust_throughput \
--flash_attention_fast_softmax_enable true \
--flash_attention_recompute_enable false \
--lora_target_modules "qkv_proj,o_proj" \
--fp8