-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
54 lines (49 loc) · 1.76 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
import argparse
def parse_arguments():
parser = argparse.ArgumentParser()
parser.add_argument(
"--max_length_cot", type=int, default=256,
help="maximum length of output tokens by model for reasoning extraction"
)
parser.add_argument(
"--try_times", type=int, default=20,
help="try times for meaningful reasoning process"
)
parser.add_argument(
"--temperature", type=float, default=1.0, help=""
)
parser.add_argument(
'--dataset', default='NLI',
help="dataset",
choices=["ASDiv", "2WikimhQA", "gsm8k", "hotpotQA", "logiQA", "AddSub", "SingleEq", "CommonsenseQA", "StrategyQA", "CAD", "TriviaQA", "Math", "NLI", "svamp"]
)
parser.add_argument(
"--datapath", default=None, type=str, help='file path'
)
parser.add_argument(
"--api_key", default="", type = str, help='gpt api_key'
)
parser.add_argument(
"--model_engine", default='llama2-7b', help="model engine",
choices=["llama3-1_8B", "llama2-13b"]
)
parser.add_argument(
"--uq_engine", default='probas-mean', help="uncertainty quantification engine",
choices=["probas-mean", "probas-min", "token-sar", "p-true", "self-probing"]
)
parser.add_argument(
"--model_path", default='llama3-1_8B', help="your local model path",
choices=["llama3-1_8B", "llama2-13b"]
)
parser.add_argument(
"--output_path", default='output/llama-3.1-8B/', help="your local output path"
)
parser.add_argument(
"--test_start", default='0', help='string, number'
)
parser.add_argument(
"--test_end", default='full', help='string, number'
)
parsed_args = parser.parse_args()
return parsed_args
args = parse_arguments()