mirror of
https://github.com/deepseek-ai/DeepSeek-Coder
synced 2024-12-04 18:14:44 +00:00
Update run.py
This commit is contained in:
parent
791c8e2c2c
commit
a1874c8784
@ -162,7 +162,7 @@ def eval(args):
|
|||||||
# load data
|
# load data
|
||||||
samples = []
|
samples = []
|
||||||
for rank in range(args.world_size):
|
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):
|
if not os.path.exists(out_file):
|
||||||
raise FileNotFoundError(f"File {out_file} does not exist.")
|
raise FileNotFoundError(f"File {out_file} does not exist.")
|
||||||
samples.extend(json.load(open(out_file,"r")))
|
samples.extend(json.load(open(out_file,"r")))
|
||||||
|
Loading…
Reference in New Issue
Block a user