Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wll199566 committed Oct 31, 2024
1 parent 4a49b25 commit 852fef6
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/data_preprocessing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DATA_PATH=datasets/raw_datasets/
OUTPUT_DIR=datasets/formatted_datasets/
DATASET_ID=hhrlhf_helpful # summarize, hhrlhf_helpful
python datasets/data_preprocessing.py \
--data-path $DATA_PATH \
--output-dir $OUTPUT_DIR \
--dataset-id $DATASET_ID
37 changes: 37 additions & 0 deletions scripts/evaluate_llm_judges.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Summarization
#DATASET_DIR=./datasets/formatted_datasets/summarize/data.summarize.2024_10_10.jsonl
#DATASET_ID=summarize
#TEMPLATES="['chen-2023_summarize', 'guo-2024_summarize', 'liusie-2024_summarize', 'rafailov-2023_summarize', 'scheurer-2024_summarize', 'wang-2024_summarize', 'wu-2024_summarize', 'zheng-2023_summarize']"

# HHRLHF-Helpful
DATASET_DIR=./datasets/formatted_datasets/hhrlhf_helpful/data.hhrlhf_helpful.2024_10_10.jsonl
DATASET_ID=hhrlhf_helpful
TEMPLATES="['bai-2023_hhrlhf_helpful', 'cheng-2024_hhrlhf_helpful', 'guo-2024_hhrlhf_helpful', 'mehta-2023_hhrlhf_helpful', 'rafailov-2023_hhrlhf_helpful', 'shen-2024_hhrlhf_helpful', 'wu-2023_hhrlhf_helpful', 'xu-2024_hhrlhf_helpful', 'zeng-2024_hhrlhf_helpful', 'zheng-2023_hhrlhf_helpful']"

MODEL_NAMES="['gpt-4o-mini']"
SPLIT_SIZE=200
NUM_SPLITS=5
SELF_CONSIST_ID=0
NUM_RUNS=5
NUM_EVAL=10
EXTRACT_RULE=combine
TEMPERATURE=0.1
NUM_WORKERS=8
CACHE_DIR=./outputs/

python eval/eval_llm_judges.py \
--processed_data_path $DATASET_DIR \
--dataset_id $DATASET_ID \
--split_size $SPLIT_SIZE \
--num_splits $NUM_SPLITS \
--self_consist_id $SELF_CONSIST_ID \
--num_runs $NUM_RUNS \
--num_eval $NUM_EVAL \
--models "$MODEL_NAMES" \
--templates "$TEMPLATES" \
--extract_rule $EXTRACT_RULE \
--temperature $TEMPERATURE \
--num_workers $NUM_WORKERS \
--use_cache_samples \
--use_cache_results \
--cache_dir $CACHE_DIR

0 comments on commit 852fef6

Please sign in to comment.