-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.py
78 lines (74 loc) · 2.54 KB
/
config.py
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
from common import *
MODELS_CONFIG = {
"llama3.1-8b": {
"name": "meta-llama/Meta-Llama-3.1-8B-Instruct",
"url": "Your VLLM server URL",
"method": "loop"
}
}
TASK_CONFIG = {
"mmlu": {
"dataset_name": "mmlu",
"test_path": "./data/mmlu/test.csv",
"noisy_path": "./data/mmlu/noisy.csv",
"question_type": "multi-choice",
"additional_prompt": "The answer must be uppercase letter.",
"check_fn": check_answer
},
"mmlu_pro": {
"dataset_name": "mmlu_pro",
"test_path": "./data/mmlu_pro/test.csv",
"noisy_path": "./data/mmlu_pro/noisy.csv",
"question_type": "multi-choice",
"additional_prompt": "The answer must be uppercase letter.",
"check_fn": check_answer
},
"arc": {
"dataset_name": "arc",
"test_path": "./data/arc/test.csv",
"noisy_path": "./data/arc/noisy.csv",
"question_type": "multi-choice",
"additional_prompt": "The answer must be uppercase letter.",
"check_fn": check_answer
},
"pubmedqa": {
"dataset_name": "pubmedqa",
"test_path": "./data/pubmedqa/test.csv",
"noisy_path": "./data/pubmedqa/noisy.csv",
"question_type": "multi-choice",
"additional_prompt": "The answer must be uppercase letter.",
"check_fn": check_answer
},
"usmle": {
"dataset_name": "usmle",
"test_path": "./data/usmle/test.csv",
"noisy_path": "./data/usmle/noisy.csv",
"question_type": "multi-choice",
"additional_prompt": "The answer must be uppercase letter.",
"check_fn": check_answer
},
"fpb": {
"dataset_name": "fpb",
"test_path": "./data/fpb/test.csv",
"noisy_path": "./data/fpb/noisy.csv",
"question_type": "multi-choice",
"additional_prompt": "The answer must be uppercase letter.",
"check_fn": check_answer
},
"convfinqa": {
"dataset_name": "convfinqa",
"test_path": "./data/convfinqa/test.csv",
"noisy_path": "./data/convfinqa/noisy.csv",
"question_type": "math and value extraction",
"additional_prompt": "The answer should be in digits.",
"check_fn": check_answer_value
},
"drop": {
"dataset_name": "drop",
"test_path": "./data/drop/test.csv",
"noisy_path": "./data/drop/noisy.csv",
"question_type": "reading comprehension",
"additional_prompt": "The answer should be a single word or in digits.",
"check_fn": check_answer_fuzzy
}
}