@@ -8,19 +8,20 @@ def make_model(
88 split : str ,
99 dataset : str = "bigcodebench" ,
1010 temperature : float = 0.0 ,
11+ max_new_tokens : int = 1280 ,
1112 # instruction model only
12- instruction_prefix = None ,
13- response_prefix = None ,
13+ instruction_prefix : str = None ,
14+ response_prefix : str = None ,
1415 # vllm only
15- tp = 1 ,
16- direct_completion = False ,
17- base_url = None ,
18- trust_remote_code = False ,
16+ tp : int = 1 ,
17+ direct_completion : bool = False ,
18+ base_url : str = None ,
19+ trust_remote_code : bool = False ,
1920 # hf only
20- attn_implementation = "eager" ,
21+ attn_implementation : str = "eager" ,
2122 # tokenizer
22- tokenizer_name = None ,
23- tokenizer_kwargs = None ,
23+ tokenizer_name : str = None ,
24+ tokenizer_legacy : bool = True ,
2425) -> DecoderBase :
2526 if backend == "vllm" :
2627 from bigcodebench .provider .vllm import VllmDecoder
@@ -30,9 +31,10 @@ def make_model(
3031 subset = subset ,
3132 split = split ,
3233 temperature = temperature ,
34+ max_new_tokens = max_new_tokens ,
3335 dataset = dataset ,
3436 direct_completion = direct_completion ,
35- tensor_parallel_size = tp ,
37+ tp = tp ,
3638 instruction_prefix = instruction_prefix ,
3739 response_prefix = response_prefix ,
3840 )
@@ -44,6 +46,7 @@ def make_model(
4446 subset = subset ,
4547 split = split ,
4648 temperature = temperature ,
49+ max_new_tokens = max_new_tokens ,
4750 dataset = dataset ,
4851 direct_completion = direct_completion ,
4952 instruction_prefix = instruction_prefix ,
@@ -59,6 +62,7 @@ def make_model(
5962 subset = subset ,
6063 split = split ,
6164 temperature = temperature ,
65+ max_new_tokens = max_new_tokens ,
6266 base_url = base_url ,
6367 instruction_prefix = instruction_prefix ,
6468 response_prefix = response_prefix ,
@@ -71,6 +75,7 @@ def make_model(
7175 subset = subset ,
7276 split = split ,
7377 temperature = temperature ,
78+ max_new_tokens = max_new_tokens ,
7479 instruction_prefix = instruction_prefix ,
7580 response_prefix = response_prefix ,
7681 )
@@ -83,6 +88,7 @@ def make_model(
8388 subset = subset ,
8489 split = split ,
8590 temperature = temperature ,
91+ max_new_tokens = max_new_tokens ,
8692 instruction_prefix = instruction_prefix ,
8793 response_prefix = response_prefix ,
8894 )
@@ -95,6 +101,7 @@ def make_model(
95101 subset = subset ,
96102 split = split ,
97103 temperature = temperature ,
104+ max_new_tokens = max_new_tokens ,
98105 instruction_prefix = instruction_prefix ,
99106 response_prefix = response_prefix ,
100107 )
0 commit comments