Unverified Commit e7242469 authored by Ran Ran's avatar Ran Ran Committed by GitHub
Browse files

Fix no such file or directory error (#23783)

* Fix no such file or directory error

* Address comment

* Fix formatting issue
parent b7b729b3
......@@ -543,6 +543,7 @@ def main():
logging.info(f"{metric_name}: {value:.3f}")
if training_args.output_dir is not None:
os.makedirs(training_args.output_dir, exist_ok=True)
with open(os.path.join(training_args.output_dir, "all_results.json"), "w") as f:
f.write(json.dumps(eval_metrics))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment