File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2525 "request" : " launch" ,
2626 "program" : " scripts/generate_samples.py" ,
2727 "args" : [
28- " run_name=test_hf_level_1 " ,
28+ " run_name=test_hf_archon_level_1 " ,
2929 " dataset_src=huggingface" ,
3030 " level=1" ,
3131 " num_workers=50" ,
4242 "program" : " scripts/eval_from_generations.py" ,
4343 "args" : [
4444 " level=1" ,
45- " run_name=test_hf_level_1 " ,
45+ " run_name=test_hf_archon_level_1 " ,
4646 " dataset_src=local" ,
4747 " num_gpu_devices=8" ,
4848 " timeout=300"
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ def main(config: GenerationConfig):
190190 model_name = config .model_name ,
191191 temperature = config .temperature ,
192192 max_tokens = config .max_tokens ,
193+ archon_config_path = config .archon_config_path ,
193194 verbose = config .verbose )
194195
195196 # Launch workers
Original file line number Diff line number Diff line change @@ -147,6 +147,8 @@ def query_server(
147147 client = OpenAI (api_key = OPENAI_KEY )
148148 model = model_name
149149 case "archon" :
150+ assert archon_config_path is not None , "Archon config path is required"
151+ assert os .path .exists (archon_config_path ), f"Archon config path { archon_config_path } does not exist"
150152 client = Archon (json .load (open (archon_config_path )))
151153 model = model_name
152154 case _:
You can’t perform that action at this time.
0 commit comments