[Fix] use eval field check (#441)

This commit is contained in:
Leymore 2023-09-27 15:11:14 +08:00 committed by GitHub
parent d6261e109d
commit 2bb7beeca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
run.py
View File

@ -295,7 +295,7 @@ def main():
fill_eval_cfg(cfg, args)
if args.partition is not None:
if RUNNERS.get(cfg.infer.runner.type) == SlurmRunner:
if RUNNERS.get(cfg.eval.runner.type) == SlurmRunner:
cfg.eval.runner.partition = args.partition
cfg.eval.runner.quotatype = args.quotatype
else: