-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.sh
More file actions
50 lines (42 loc) · 1.22 KB
/
main.sh
File metadata and controls
50 lines (42 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
METHOD="DPL"
NUMS=(8)
CATEGORIES=("Books" "Movies_and_TV" "CDs_and_Vinyl")
DATASET="test"
OUTPUT_DIR="./output"
mkdir -p $OUTPUT_DIR
echo "$METHOD"
for NUM in "${NUMS[@]}"; do
for CATEGORY in "${CATEGORIES[@]}"; do
echo "Category: $CATEGORY | Number of retrieved: $NUM"
python diff-build.py \
--method $METHOD \
--gpu 0 \
--dataset $DATASET \
--category $CATEGORY \
--output_dir $OUTPUT_DIR \
--num_retrieved $NUM \
--retriever bm25
python model-infer.py \
--method $METHOD \
--gpu 0 \
--dataset $DATASET \
--category $CATEGORY \
--output_dir $OUTPUT_DIR \
--max_tokens 2048 \
--num_retrieved $NUM \
--retriever bm25
python eval-basic.py \
--method $METHOD \
--num $NUM \
--category $CATEGORY \
--output_dir $OUTPUT_DIR \
--dataset $DATASET
python eval-72B.py \
--method $METHOD \
--num $NUM \
--category $CATEGORY \
--output_dir $OUTPUT_DIR \
--dataset $DATASET
done
done