Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jianzhnie committed May 24, 2023
1 parent 35256cd commit 0cdcc57
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
25 changes: 5 additions & 20 deletions examples/alpaca/scripts/run_alpaca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,13 @@ python train_alpaca.py \
--gradient_accumulation_steps 8 \
--evaluation_strategy "no" \
--save_strategy "steps" \
--save_steps 2000 \
--save_steps 500 \
--save_total_limit 5 \
--learning_rate 2e-5 \
--weight_decay 0. \
--warmup_steps 50 \
--warmup_ratio 0.03 \
--lr_scheduler_type "cosine" \
--logging_steps 1

python train_alpaca_mem.py \
--model_name_or_path facebook/opt-125m \
--data_path tatsu-lab/alpaca \
--output_dir work_dir/ \
--num_train_epochs 3 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--gradient_accumulation_steps 8 \
--evaluation_strategy "no" \
--save_strategy "steps" \
--save_steps 2000 \
--save_total_limit 5 \
--learning_rate 2e-5 \
--weight_decay 0. \
--warmup_ratio 0.03 \
--lr_scheduler_type "cosine" \
--logging_steps 1
--logging_steps 1 \
--gradient_checkpointing True \
--fp16 True
17 changes: 17 additions & 0 deletions examples/alpaca/scripts/run_alpaca_mem.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
python train_alpaca_mem.py \
--model_name_or_path facebook/opt-125m \
--data_path tatsu-lab/alpaca \
--output_dir work_dir/ \
--num_train_epochs 3 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--gradient_accumulation_steps 8 \
--evaluation_strategy "no" \
--save_strategy "steps" \
--save_steps 2000 \
--save_total_limit 5 \
--learning_rate 2e-5 \
--weight_decay 0. \
--warmup_ratio 0.03 \
--lr_scheduler_type "cosine" \
--logging_steps 1

0 comments on commit 0cdcc57

Please sign in to comment.