fix: Creates evalset directory on evalset create

PiperOrigin-RevId: 824746602
This commit is contained in:
Hoonji Baek
2025-10-27 17:26:32 -07:00
committed by Copybara-Service
parent 87dcb3f7ba
commit 6c3882f2d6
@@ -324,6 +324,7 @@ class LocalEvalSetsManager(EvalSetsManager):
)
def _write_eval_set_to_path(self, eval_set_path: str, eval_set: EvalSet):
os.makedirs(os.path.dirname(eval_set_path), exist_ok=True)
with open(eval_set_path, "w", encoding="utf-8") as f:
f.write(
eval_set.model_dump_json(