From 0a7fe59a37201be9bd7103c68926f0176d876d83 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 11:21:08 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/utils/datasets/llm_assist.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/studio/backend/utils/datasets/llm_assist.py b/studio/backend/utils/datasets/llm_assist.py index c0bedc049d..22387a4f99 100644 --- a/studio/backend/utils/datasets/llm_assist.py +++ b/studio/backend/utils/datasets/llm_assist.py @@ -150,14 +150,10 @@ def _gpu_workload_busy_for_helper() -> bool: else: try: if get_training_backend().is_training_active(): - logger.info( - "Skipping helper GGUF while training is active" - ) + logger.info("Skipping helper GGUF while training is active") return True except Exception: - logger.info( - "Skipping helper GGUF because training status is unavailable" - ) + logger.info("Skipping helper GGUF because training status is unavailable") return True try: @@ -168,15 +164,11 @@ def _gpu_workload_busy_for_helper() -> bool: try: exp = get_export_backend() is_active = getattr(exp, "is_export_active", None) - if (is_active and is_active()) or getattr( - exp, "current_checkpoint", None - ): + if (is_active and is_active()) or getattr(exp, "current_checkpoint", None): logger.info("Skipping helper GGUF while export owns the GPU") return True except Exception: - logger.info( - "Skipping helper GGUF because export status is unavailable" - ) + logger.info("Skipping helper GGUF because export status is unavailable") return True return False