Skip to content

Commit

Permalink
Add finetune evaluation script
Browse files Browse the repository at this point in the history
  • Loading branch information
rainatam committed Apr 13, 2023
1 parent d741785 commit 9ac7187
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ptuning/evaluate_finetune.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CHECKPOINT=adgen-chatglm-6b-ft-1e-4
STEP=3000

CUDA_VISIBLE_DEVICES=0 python3 main.py \
--do_predict \
--validation_file AdvertiseGen/dev.json \
--test_file AdvertiseGen/dev.json \
--overwrite_cache \
--prompt_column content \
--response_column summary \
--model_name_or_path ./output/$CHECKPOINT/checkpoint-$STEP \
--output_dir ./output/$CHECKPOINT \
--overwrite_output_dir \
--max_source_length 256 \
--max_target_length 256 \
--per_device_eval_batch_size 1 \
--predict_with_generate \
--fp16_full_eval

0 comments on commit 9ac7187

Please sign in to comment.