Skip to content

Commit

Permalink
add initialization of eval_map
Browse files Browse the repository at this point in the history
  • Loading branch information
Daria Gitman authored and Daria Gitman committed Jul 8, 2024
1 parent afa4920 commit f9122d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/run_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def get_sampling_cmd(benchmark, random_seed, extra_eval_args="", extra_arguments
server_start_cmd, num_tasks, server_wait_string = get_server_command(
args.server_type, args.num_gpus, args.num_nodes, args.model_path.name
)

eval_map = None
if any([args.prompt_folder, args.model_version]):
if not all([args.prompt_folder, args.model_version]):
raise ValueError("Both prompt_folder and model_version need to be specified if one of them is specified.")
Expand Down

0 comments on commit f9122d2

Please sign in to comment.