File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ def main(
1818 def _run (pure : bool ):
1919 results : list [EvalResult ] = []
2020 split = "pure" if pure else "base"
21+ result_dir = abspath (pjoin ("results" , model , split ))
2122 for i in range (n_repeats ):
22- result_dir = abspath (pjoin ("results" , model , split ))
2323 os .makedirs (result_dir , exist_ok = True )
2424 result_file = pjoin (result_dir , f"run-{ i } .jsonl" )
2525 r = run_one_model (
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ def run_one_model(
3131 EvalResult: evaluation result including accuracy
3232 """
3333 client = router (model , pure , effort )
34- assert client is not None , f"Failed to create client for { model } ."
3534
3635 tasks = load_tfb_from_hf ("pure" if pure else "base" )
3736 gen_results : list [LMAnswer | None ] = []
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def router(
4848 model_name : str ,
4949 pure : bool ,
5050 effort : str | None = None ,
51- ) -> LM | None :
51+ ) -> LM :
5252 """Route the model name to the appropriate LM class."""
5353 if model_name in OAI_MODELS :
5454 return OpenAIChatCompletion (model_name = model_name , pure = pure )
You can’t perform that action at this time.
0 commit comments