@@ -140,8 +140,9 @@ def run_codegen(
140140 backend : str = "vllm" ,
141141 base_url : str = None ,
142142 tp : int = 1 ,
143- instruction_prefix : str = None ,
144- response_prefix : str = None ,
143+ instruction_prefix : str = "Please provide a self-contained Python script that solves the following problem in a markdown code block:" ,
144+ response_prefix : str = "Below is a Python script with a self-contained function that solves the problem and passes corresponding tests:" ,
145+ prefill : bool = True ,
145146 revision : str = "main" ,
146147 trust_remote_code : bool = False ,
147148 tokenizer_name : str = None ,
@@ -163,11 +164,6 @@ def run_codegen(
163164 # Make project dir
164165 os .makedirs (root , exist_ok = True )
165166
166- if instruction_prefix is None :
167- instruction_prefix = "Please provide a self-contained Python script that solves the following problem in a markdown code block:"
168- if response_prefix is None :
169- response_prefix = "Below is a Python script with a self-contained function that solves the problem and passes corresponding tests:"
170-
171167 # Make dir for codes generated by each model
172168 model_runner = make_model (
173169 model = model ,
@@ -179,6 +175,7 @@ def run_codegen(
179175 reasoning_effort = reasoning_effort ,
180176 instruction_prefix = instruction_prefix ,
181177 response_prefix = response_prefix ,
178+ prefill = prefill ,
182179 base_url = base_url ,
183180 tp = tp ,
184181 revision = revision ,
0 commit comments