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

123.161**1 Posted at: 1 hour ago

mkl_malloc: failed to allocate memory,Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 54, 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 54, 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 84, in faster_whisper
File "videotrans\process\stt_faster.py", line 73, in _create_model
File "videotrans\process\stt_faster.py", line 77, in _create_model
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\transcribe.py", line 689, in __ini
......
39, in _exec
File "videotrans\recognition\_whisper.py", line 136, in _faster
File "videotrans\configure\base.py", line 277, 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 54, 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 54, 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 84, in faster_whisper
File "videotrans\process\stt_faster.py", line 73, in _create_model
File "videotrans\process\stt_faster.py", line 77, in _create_model
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

trk=[TransCreate]: uuid='9e07b0e572', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/越轨西语/15/15拼.mp4,
输出结果保存到文件夹: D:/越轨西语/15/15拼-mp4,
临时文件夹: D:/win-pyvideotrans-v4.17-1027/tmp/41964/9e07b0e572
已选 清理已存在
未启用CUDA加速
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 西班牙语, , 数据类型:default
发音语言和目标语言相同,不翻译字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕 , precent=4, hasend=False, should_recogn=True, should_trans=False, should_dubbing=False, 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=89200


=
system:Windows-10-10.0.19045-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.17-1027

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 CPU 物理内存不足 导致的分配失败(mkl_malloc 是 Intel MKL 数学库在内存中申请空间失败,与显存无关)。您当前未启用 CUDA,faster-whisper 的 large-v3-turbo 模型在纯 CPU 上加载和推理需要占用数 GB 内存,内存吃紧就会崩溃。

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

  1. 换小模型:主界面语音识别模型从 large-v3-turbo 改为 medium、small 或 base,内存占用大幅下降。
  2. 改计算数据类型为 int8:菜单 → 工具/选项 → 高级选项 → 语音识别参数 → 计算数据类型,改为 int8(最省内存)。
  3. 降低识别精度参数:同面板将 识别准确度beam_size 和 best_of 都设为 1,并取消勾选 启用上下文感知。
  4. 释放内存:关闭浏览器、其他大型软件;若物理内存本身偏小(如 8GB),请扩大 Windows 虚拟内存/页面文件(系统属性 → 高级 → 性能设置 → 高级 → 虚拟内存,设置为「系统管理」或自定义较大值)。
  5. 处理完以上再重试,建议勾选 清理已生成 重跑,避免使用残留临时文件。

若仍失败,请说明您的物理内存大小,或考虑启用 NVIDIA 显卡 CUDA 加速(需 CUDA 12.8 + cuDNN 9)。

请查阅相关文档:

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