cc/training/train.sh

10 lines
371 B
Bash
Raw Permalink Normal View History

2024-11-12 10:28:03 +08:00
accelerate launch --config_file config.yaml train.py \
--pretrained_model_name_or_path=2b_sft_model \
--train_dataset_path=../datasets/dataset.parquet \
--eval_dataset_path=../datasets/eval.parquet \
--max_length=512 \
--output_dir=../checkpoints/py \
--eval_steps=500 \
--save_steps=500 \
--num_train_epochs=3 \
--learning_rate=1e-5 \