whisper AI error : FP16 is not supported on CPU; using FP32 instead

作者: siediyer 分类: django,python 发布时间: 2024-02-02 16:36

I’m trying to use whisper AI on my computer. I have a NVIDIA GPU RTX 2060, installed CUDA and FFMPEG.

I’m running this code :

import whisper

model = whisper.load_model("medium")
result = model.transcribe("venv/files/test1.mp3")
print(result["text"])

and having issue :

whisper\transcribe.py:114: UserWarning: FP16 is not supported on CPU; using FP32 instead
  warnings.warn("FP16 is not supported on CPU; using FP32 instead")

I don’t understand why FP16 is not support since I have a good GPU and everything installed. Any help would be appreciated. Thanks.

I installed all the requirement and I was expecting that whisper AI would use the GPU

You could try this:

result = model.transcribe("venv/files/test1.mp3", fp16=False)

That helps me!

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

Title - Artist
0:00