From a1874c8784fffb543be6dfcf2ccb01aa311ab077 Mon Sep 17 00:00:00 2001 From: Daya Guo <40300434+guoday@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:18:12 +0800 Subject: [PATCH] Update run.py --- Evaluation/PAL-Math/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Evaluation/PAL-Math/run.py b/Evaluation/PAL-Math/run.py index 5194046..805ee24 100644 --- a/Evaluation/PAL-Math/run.py +++ b/Evaluation/PAL-Math/run.py @@ -162,7 +162,7 @@ def eval(args): # load data samples = [] for rank in range(args.world_size): - out_file = f"outputs/{args.model_name}/{args.data_name}/world_size_{args.world_size}_rank_{args.rank}.json" + out_file = f"outputs/{args.model_name}/{args.data_name}/world_size_{args.world_size}_rank_{rank}.json" if not os.path.exists(out_file): raise FileNotFoundError(f"File {out_file} does not exist.") samples.extend(json.load(open(out_file,"r")))