Skip to content

Commit

Permalink
Fix: add --disable_group_texts
Browse files Browse the repository at this point in the history
- Otherwise short samples will be concatenated together
  • Loading branch information
research4pan committed Mar 30, 2024
1 parent 97bb791 commit 7bea9ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/run_finetune.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ deepspeed ${deepspeed_args} \
--output_dir ${output_dir} --overwrite_output_dir \
--num_train_epochs 0.01 \
--learning_rate 2e-5 \
--disable_group_texts 1 \
--block_size 512 \
--per_device_train_batch_size 1 \
--deepspeed configs/ds_config_zero3.json \
Expand Down
1 change: 1 addition & 0 deletions scripts/run_finetune_with_lisa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ deepspeed ${deepspeed_args} \
--output_dir ${output_dir} --overwrite_output_dir \
--num_train_epochs 1 \
--learning_rate 2e-5 \
--disable_group_texts 1 \
--block_size ${block_size} \
--per_device_train_batch_size 1 \
--deepspeed ${ds_config_file} \
Expand Down

0 comments on commit 7bea9ee

Please sign in to comment.