Skip to content

Commit d86b694

Browse files
authored
[Bugfix] Dot in output_dir causes evals to fail (fixie-ai#115)
* Bugfix having a dot in output_dir causes HF pipeline in eval to break
1 parent 7bd4eeb commit d86b694

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ultravox/training/config_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def __post_init__(self):
119119
self.exp_name = datetime.datetime.now().strftime("exp--%Y-%m-%d--%H-%M-%S")
120120
if self.output_dir is None:
121121
self.output_dir = Path("runs") / self.exp_name
122+
123+
# HF Pipeline gets tripped up if the path has a "." in it
124+
self.output_dir = self.output_dir.replace(".", "--")
125+
122126
if self.logs_dir is None:
123127
self.logs_dir = self.output_dir / "logs"
124128

0 commit comments

Comments
 (0)