From 50adb7654bc31552d1fb7ebd8c3a7aa91f74959f Mon Sep 17 00:00:00 2001 From: PiotrBLL Date: Sat, 9 Nov 2024 01:20:02 +0100 Subject: [PATCH] Fix warnings --- whisper/transcribe.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/whisper/transcribe.py b/whisper/transcribe.py index 9f90617..ff321a9 100644 --- a/whisper/transcribe.py +++ b/whisper/transcribe.py @@ -125,8 +125,6 @@ def transcribe( if dtype == torch.float16: warnings.warn("FP16 is not supported on CPU; using FP32 instead") dtype = torch.float32 - if model.device == torch.device("hpu") and torch.hpu.is_available(): - warnings.warn("Performing inference on HPU when CUDA is available") if dtype == torch.float32: decode_options["fp16"] = False