#7153 mkl_malloc: failed to allocate memory,Traceback (most recent call last): File

2a09**81 Posted at: 1 hour ago

mkl_malloc: failed to allocate memory,Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 85, in faster_whisper
File "videotrans\process\stt_faster.py", line 74, in _create_model
File "videotrans\process\stt_faster.py", line 78, in _create_model
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in __ini
......
.py", line 65, in recogn
File "videotrans\recognition\__init__.py", line 228, in run
File "videotrans\recognition\_base.py", line 97, in run
File "videotrans\recognition\_whisper.py", line 41, in _exec
File "videotrans\recognition\_whisper.py", line 130, in _faster
File "videotrans\configure\base.py", line 264, in _new_process
videotrans.configure.excepts.VideoTransError: mkl_malloc: failed to allocate memory,Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 85, in faster_whisper
File "videotrans\process\stt_faster.py", line 74, in _create_model
File "videotrans\process\stt_faster.py", line 78, in _create_model
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/AAA视频翻译/翻译测试 - 副本 (2) - 副本/1 (1).mp4,
输出结果保存到文件夹: D:/AAA视频翻译/翻译测试 - 副本 (2) - 副本/1 (1)-mp4,
临时文件夹: D://tmp/30640/fc565a39f0
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕
代理地址:http://127.0.0.1:7890


=
system:Windows-10-10.0.26100-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因mkl_malloc: failed to allocate memory 错误表示系统内存(RAM)无法提供足够的连续内存来加载 large-v3-turbo 模型,或 MKL 内存分配失败。由于您未启用 CUDA 加速,模型在纯 CPU 模式下运行,large-v3-turbo 需要约 6GB+ 内存,当系统可用内存不足时便会触发此错误。

解决方案(按优先级依次尝试):

  1. 关闭其他内存占用程序:检查任务管理器,确保有至少 8GB 空闲内存。
  2. 换用更小的模型:在主界面语音识别渠道下拉框中,将模型从 large-v3-turbo 改为 mediumsmall。英语视频可选用带 .en 后缀的模型(如 medium.en),内存占用更小、速度更快。
  3. 降低内存消耗参数:点击 菜单 → 工具 → 高级选项 → 语音识别参数

    • 计算数据类型 设为 int8(最省内存)
    • 识别准确度 beam_size 设为 1
    • 识别准确度 best_of 设为 1
    • 取消勾选 启用上下文感知
  4. 启用 CUDA 加速(如有 N 卡):若您有 NVIDIA 显卡,请安装 CUDA 12.8 和 cuDNN 9(详见下方文档),然后回到主界面勾选 启用CUDA加速,模型将加载到 GPU 显存,大幅减轻系统内存压力。
  5. 重启软件并重试:完成上述设置后必须重启软件,使进程池重新加载。

若以上方法均无法解决,请提供软件安装目录下 logs/ 文件夹中最新的日志文件内容,以便进一步分析。

请查阅相关文档:

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