From 516f39685a140ec69bce301b2df6557789945612 Mon Sep 17 00:00:00 2001 From: Pepijn Date: Thu, 16 Apr 2026 12:09:03 +0200 Subject: [PATCH] fix(profiling): skip dataset creation on publish --- scripts/ci/run_model_profiling.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scripts/ci/run_model_profiling.py b/scripts/ci/run_model_profiling.py index 24f457772..7427fd459 100644 --- a/scripts/ci/run_model_profiling.py +++ b/scripts/ci/run_model_profiling.py @@ -61,12 +61,6 @@ def upload_targets( commit_message: str | None = None, ) -> dict[str, str]: api = HfApi(token=token) - try: - repo_exists = api.repo_exists(repo_id=repo_id, repo_type=repo_type) - except Exception: - repo_exists = True - if not repo_exists: - api.create_repo(repo_id=repo_id, repo_type=repo_type, private=private, exist_ok=True) uploaded: dict[str, str] = {} for target in targets: api.upload_file(