From 8df5d7d176434fcb5f2fc966c0deeef20a1765bc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 08:31:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/utils/hardware/hardware.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/studio/backend/utils/hardware/hardware.py b/studio/backend/utils/hardware/hardware.py index d5de59a592..244ef3fe98 100644 --- a/studio/backend/utils/hardware/hardware.py +++ b/studio/backend/utils/hardware/hardware.py @@ -103,7 +103,9 @@ def detect_hardware() -> DeviceType: # DeviceType stays CUDA since torch.cuda.* works on ROCm via HIP. if getattr(torch.version, "hip", None) is not None: IS_ROCM = True - print(f"Hardware detected: ROCm (HIP {torch.version.hip}) -- {device_name}") + print( + f"Hardware detected: ROCm (HIP {torch.version.hip}) -- {device_name}" + ) else: print(f"Hardware detected: CUDA -- {device_name}") return DEVICE