Skip to content

Commit

Permalink
[Bugfix] Dot in output_dir causes evals to fail (fixie-ai#115)
Browse files Browse the repository at this point in the history
* Bugfix having a dot in output_dir causes HF pipeline in eval to break
  • Loading branch information
farzadab authored Sep 15, 2024
1 parent d356ec2 commit faa0323
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ultravox/training/config_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ def __post_init__(self):
self.exp_name = datetime.datetime.now().strftime("exp--%Y-%m-%d--%H-%M-%S")
if self.output_dir is None:
self.output_dir = Path("runs") / self.exp_name

# HF Pipeline gets tripped up if the path has a "." in it
self.output_dir = self.output_dir.replace(".", "--")

if self.logs_dir is None:
self.logs_dir = self.output_dir / "logs"

Expand Down

0 comments on commit faa0323

Please sign in to comment.