#6292 Traceback (most recent call last): File

2409:8a28* Posted at: 4 hours ago

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


=
system:Windows-10-10.0.22631-SP0
version:v3.86
frozen:True
language:zh
root_dir:E:/sp

1 Replies

这是 faster-whisper 初始化时内存分配失败导致的(mkl_malloc: failed to allocate memory),表示系统可用内存不足,无法为模型分配所需内存,或者同时执行的任务过多。

解决办法:

  1. 关闭其他占用内存的程序,确保有足够可用内存。
  2. 将语音识别模型调小,例如将 large-v3 改为 smallbase
  3. 打开 菜单 → 工具 → 高级选项,将 CPU同时任务数GPU同时任务数 都设为 1;若一次翻译多个视频,将 批量翻译视频时每批数量 设为 1,避免并发导致内存耗尽。
  4. 高级选项 → 语音识别参数 中,将 计算数据类型 改为 int8(最省内存)或 float16
  5. 如果使用 CPU 识别,请确保物理内存足够(建议 8GB 以上),可适当增加系统虚拟内存。
  6. 当前版本为 v3.86,较旧,建议升级到最新版后再试。

若以上方法仍无效,请提供 logs/ 目录中最新的日志文件内容以便进一步分析。

请查阅相关文档:

Post Your Reply
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

Dondate via PayPal

Related resource