Skip to content

Commit

Permalink
Adding missing audio file & by-default creating ckpts dir when not pr…
Browse files Browse the repository at this point in the history
…esent (metavoiceio#100)
  • Loading branch information
lucapericlp authored Mar 19, 2024
1 parent 5a12716 commit 68f0acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file added data/audio.wav
Binary file not shown.
3 changes: 2 additions & 1 deletion fam/llm/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@

ckpts_base_dir = pathlib.Path(__file__).resolve().parent / "ckpts"
if not os.path.exists(ckpts_base_dir) and master_process:
raise Exception(f"ckpts dir {ckpts_base_dir} does not exist!")
print("Checkpoints directory didn't exist, creating...")
ckpts_base_dir.mkdir(parents=True)

if master_process:
if "/" in out_dir:
Expand Down

0 comments on commit 68f0acd

Please sign in to comment.