#8430 ggml_cuda_init: found 1 CUDA devices (Total VRAM: 6143 MiB): Device 0: NVIDIA GeForce GTX 1660, compute capability 7.5,

2409**71aa Posted at: 1 hour ago

ggml_cuda_init: found 1 CUDA devices (Total VRAM: 6143 MiB):
Device 0: NVIDIA GeForce GTX 1660, compute capability 7.5, VMM: yes, VRAM: 6143 MiB
The following devices will have suboptimal performance due to a lack of tensor cores:
Device 0: NVIDIA GeForce GTX 1660
Consider compiling with CMAKE_CUDA_ARCHITECTURES=61-virtual;80-virtual and DGGML_CUDA_FORCE_MMQ to force the use of the Pascal code for Turing.
load_backend: loaded CUDA backend from G:\BaiduNetdiskDownload\sa\whisper-cpp\ggml-cuda.dll
load_backend: loaded CPU backend from G:\BaiduNetdiskDownload\sa\whisper-cpp\ggml-cpu-haswell.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: 6143 MiB):
Device 0: NVIDIA GeForce GTX 1660, compute capability 7.5, VMM: yes, VRAM: 6143 MiB
The following devices will have suboptimal perfor
......
eotrans\task\only_one.py", line 71, in run
File "videotrans\task\_stage_recogn.py", line 64, 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: 6143 MiB):
Device 0: NVIDIA GeForce GTX 1660, compute capability 7.5, VMM: yes, VRAM: 6143 MiB
The following devices will have suboptimal performance due to a lack of tensor cores:
Device 0: NVIDIA GeForce GTX 1660
Consider compiling with CMAKE_CUDA_ARCHITECTURES=61-virtual;80-virtual and DGGML_CUDA_FORCE_MMQ to force the use of the Pascal code for Turing.
load_backend: loaded CUDA backend from G:\BaiduNetdiskDownload\sa\whisper-cpp\ggml-cuda.dll
load_backend: loaded CPU backend from G:\BaiduNetdiskDownload\sa\whisper-cpp\ggml-cpu-haswell.dll
error: failed to initialize whisper context

trk=[TransCreate]: uuid='416a856781', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Desktop/ev_20261024_101854.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/_video_out/ev_20261024_101854-mp4,
临时文件夹: G:/BaiduNetdiskDownload/sa/tmp/5616/416a856781
未选 清理已存在
未启用CUDA加速
语音识别:Whisper.cpp(Win内置), , 发音语言: 英语, ,
翻译渠道:M2M100(内置),原始语言:英语,目标语言:简体中文, 未选 发送完整字幕, settings.get('trans_thread')=20, settings.get('aitrans_thread')=50
配音渠道:Edge-TTS(免费), 角色:Yunjian(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕 , precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=82333


=
system:Windows-10-10.0.19043-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:G:/BaiduNetdiskDownload/sa

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:这行日志本身只是性能提示,不是报错原因。 The following devices will have suboptimal performance due to a lack of tensor cores 只是说 GTX 1660 没有 Tensor Core,运行会慢一些。真正导致中断的是最后一行 error: failed to initialize whisper context,也就是 whisper.cpp 无法成功加载指定的语音模型,导致上下文初始化失败。常见原因有两种:一是 models 文件夹中缺少对应的 .bin 模型文件(或文件名不匹配);二是该 whisper.cpp 的 CUDA 后端针对 Turing(计算能力 7.5)显卡适配不佳,导致 GPU 初始化崩溃。

处理步骤(按顺序尝试):

  1. 确认模型是否存在(最常见原因)
    打开 G:/BaiduNetdiskDownload/sa/models 文件夹,查看是否有与主界面所选的 whisper.cpp 模型同名的 .bin 文件(例如 ggml-large-v3-turbo.bin)。如果没有,请手动下载后放入该文件夹:

  2. 强制 whisper.cpp 走 CPU,绕开 GTX 1660 的 CUDA 兼容问题
    在软件根目录 G:/BaiduNetdiskDownload/sa 下新建一个文本文件 pyvideotrans_cpp.txt,在里面写入一行:

    -ng

    保存后重新翻译。该参数会让 whisper.cpp 禁用 GPU,纯 CPU 运行,可排除 CUDA 后端初始化失败问题(速度会慢,但能跑通)。

  3. 若模型文件确认无误、加 -ng 仍失败,可尝试换用更小模型(如 small / medium)再试,排除大模型 + 6GB 显存不足导致的初始化失败。
  4. 建议直接改用 faster-whisper(内置) 渠道(主界面第 2 行「语音识别」处切换),默认 large-v3-turbo 即可。GTX 1660 走 CUDA 加速下兼容性和速度都明显优于 whisper.cpp,且报错提示更清晰。
  5. 如果仍然报错,请提供 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