diff --git a/src/lighteval/logging/evaluation_tracker.py b/src/lighteval/logging/evaluation_tracker.py index b0425348..2a14c1f5 100644 --- a/src/lighteval/logging/evaluation_tracker.py +++ b/src/lighteval/logging/evaluation_tracker.py @@ -319,7 +319,7 @@ def recreate_metadata_card(self, repo_id: str) -> None: # noqa: C901 # to be able to parse the filename as iso dates, we need to re-replace the `-` with `:` # iso_date[13] = iso_date[16] = ':' dir_name = os.path.dirname(sub_file) - iso_date = dir_name[:13] + ":" + dir_name[14:16] + ":" + dir_name[17:] + iso_date = ':'.join(dir_name.rsplit('-', 2)) eval_date = datetime.fromisoformat(iso_date) last_eval_date_results[task_name] = (