pretrained_path=/root/paddlejob/workspace/env_run/huitingfeng/models/llama-2-7b-hf
data_path=data/all-500k.json
output_path=output/lora-moe-8e-top2-pesc-500k

torchrun --nproc_per_node=8 --nnodes=1 --master_port=4741 train_pesc.py \
    --deepspeed ds_config/ds_z2_config.json \
    --model_name_or_path $pretrained_path \
    --data_path $data_path \
    --bf16 True \
    --model_max_length 2048 \
    --output_dir $output_path \
    --num_train_epochs 4 \
    --per_device_train_batch_size 1 \
    --evaluation_strategy "no" \
    --gradient_accumulation_steps 16 \
    --evaluation_strategy "no" \
    --save_strategy "epoch" \
    --logging_strategy "steps" \
    --logging_steps 1 \
    --learning_rate 2e-4 \
    --weight_decay 0.0 \
    --warmup_steps 0 \
    --tf32 True