Skip to content

Commit

Permalink
create outputdir of not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ggbetz committed Mar 17, 2024
1 parent f1b2231 commit 3e76a7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/create_lm_eval_harness_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def main():
if args.output_dir is None:
raise ValueError("output_dir must be specified")
if not os.path.isdir(args.output_dir):
raise ValueError("output_dir must be a directory")
logging.info("output_dir does not exist, creating it")
os.makedirs(args.output_dir)
if not os.path.isdir(args.configs_dir):
raise ValueError(f"configs_dir is not a directory: {args.configs_dir}")

Expand Down

0 comments on commit 3e76a7b

Please sign in to comment.