#8178 语音识别阶段出错[Whisper.cpp(Win内置)] ggml_cuda_init: found 1 CUDA devices (Total VRAM: 8123 MiB): Device 0: NVIDIA GeForce RTX

240e**99c1 Posted at: 1 hour ago

语音识别阶段出错[Whisper.cpp(Win内置)] ggml_cuda_init: found 1 CUDA devices (Total VRAM: 8123 MiB):
Device 0: NVIDIA GeForce RTX 5060, compute capability 12.0, VMM: yes, VRAM: 8123 MiB
load_backend: loaded CUDA backend from D:\fanyi\whisper-cpp\ggml-cuda.dll
load_backend: loaded CPU backend from D:\fanyi\whisper-cpp\ggml-cpu-alderlake.dll
error: failed to initialize whisper context

Traceback (most recent call last):

File "videotrans\recognition\_cpp.py", line 121, in _exec

videotrans.configure.excepts.SpeechToTextError: ggml_cuda_init: found 1 CUDA devices (Total VRAM: 8123 MiB):
Device 0: NVIDIA GeForce RTX 5060, compute capability 12.0, VMM: yes, VRAM: 8123 MiB
load_backend: loaded CUDA backend from D:\fanyi\whisper-cpp\ggml-cuda.dll
load_backend: loaded CPU backend from D:\fanyi\whisper-cpp\ggml-cpu-alderlake.dll
error: failed to initialize whisper context

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 101, in process_task

File "videotrans\task\speech2text.py", line 97, in recogn

File "videotrans\recognition\__init__.py", line 141, in run

File "videotrans\recognition\_base.py", line 101, in run

File "videotrans\recognition\_cpp.py", line 128, in _exec

videotrans.configure.excepts.SpeechToTextError: ggml_cuda_init: found 1 CUDA devices (Total VRAM: 8123 MiB):
Device 0: NVIDIA GeForce RTX 5060, compute capability 12.0, VMM: yes, VRAM: 8123 MiB
load_backend: loaded CUDA backend from D:\fanyi\whisper-cpp\ggml-cuda.dll
load_backend: loaded CPU backend from D:\fanyi\whisper-cpp\ggml-cpu-alderlake.dll
error: failed to initialize whisper context
trk=[SpeechToText]: uuid='93686ffcc3', proxy_str='http://127.0.0.1:7897', cfg=[TaskCfgSTT]
原始输入文件名: D:/douyindowland/DouK-Downloader_V5.8_Windows_X64/Volume/UID3544434561525911_复旦中山心内科周达新_发布作品/2026-07-11 16.38.12-视频-复旦中山心内科周达新-大家好,我是上海复旦大学附属中山...康知识宝藏 #上海中山心内科周达新.mp4,
输出结果保存到文件夹: D:/fanyi/output/recogn,
临时文件夹: D:/fanyi/tmp/7320/93686ffcc3
已启用CUDA加速
未选 降噪
语音识别:Whisper.cpp(Win内置), LLM纠错
发音语言:zh
未选 降噪
代理地址:http://127.0.0.1:7897, precent=1, hasend=False, should_recogn=True, should_trans=False, should_dubbing=False, should_hebing=False, out_format='srt', copysrt_rawvideo=True, spk_insert=False


=
system:Windows-10-10.0.26200-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/fanyi

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Whisper.cpp 的 CUDA 后端无法初始化,常见原因有两个:一是模型文件缺失/损坏导致无法加载;二是当前内置 Whisper.cpp 版本不支持 RTX 5060(compute capability 12.0)这一较新架构。

解决步骤:

  1. 先确认模型文件完整存在:打开软件目录 models/ 文件夹,应存在类似 ggml-large-v3.bin 或 ggml-medium.bin 的模型文件,且大小不为 0。若缺失或损坏,请删除后重新下载,或按 模型下载地址 手动下载放入。
  2. 试试关闭“CUDA加速”后再运行:如果 CPU 下能正常识别,则基本可判定是 CUDA 后端与 RTX 5060 不兼容。可改用 faster-whisper(内置) 渠道,或升级 Whisper.cpp 到最新版本(需自行从 https://github.com/ggerganov/whisper.cpp/releases 下载最新 Windows 预编译包,替换到 whisper-cpp 文件夹)。
  3. 若仍失败,请提供 logs/ 目录下最新的日志文件底部约 30 行,以便进一步定位。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource