#6585 CUDA out of memory. Tried to allocate 26.00 MiB. GPU 0 has a total capacity of 8.00 GiB of which 0 bytes is free. Of the

116.149.**3 Posted at: 13 hours ago

CUDA out of memory. Tried to allocate 26.00 MiB. GPU 0 has a total capacity of 8.00 GiB of which 0 bytes is free. Of the allocated memory 6.90 GiB is allocated by PyTorch, and 354.72 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables):Traceback (most recent call last):
File "videotrans\process\stt_openai.py", line 53, in openai_whisper
File "whisper\__init__.py", line 161, in load_model
File "E:\pyvideotransv\_internal\torch\nn\modules\module.py", line 1355, in to

return self._apply(convert)

File "E:\pyvideotransv\_internal\torch\nn\modules\module.py", line 915, in _apply

module._apply(fn)

File "E:\pyvideotransv\_internal\torch\nn\modules\module.py", line 915, in _apply

module._apply(fn)

File "E:\pyvideotransv\_internal\to
......
2448208], [2449200, 2450096], [2450096, 2451760], [2452144, 2453936], [2453936, 2455568], [2456016, 2457264], [2457488, 2458928], [2459472, 2460400], [2460400, 2462256], [2464016, 2466096], [2467728, 2468688], [2480560, 2481520], [2481904, 2483504], [2512528, 2513808], [2569744, 2571376], [2637776, 2638736], [2697776, 2698800], [2763376, 2764368], [2765360, 2766832], [2798544, 2799600], [2854608, 2855440], [2856368, 2857488], [2861328, 2862288], [2863280, 2864400], [2881040, 2882160], [2885840, 2887504], [2892592, 2894864], [3120688, 3122032], [3153744, 3155216], [4353136, 4354288], [4354704, 4355376], [4355376, 4356816], [4357744, 4359088], [4359600, 4360784], [4360784, 4361744], [4553328, 4554288], [5149744, 5152304], [5154768, 5157840], [5157840, 5159632], [5164848, 5165504], [5165504, 5166384], [5166384, 5167600], [5168528, 5169456], [5169456, 5169920], [5169920, 5170944], [5170944, 5172688], [5172688, 5175312], [5175728, 5176880], [5181904, 5182832], [5182832, 5183360], [5183360, 5184592], [5185488, 5188448], [5188448, 5189696], [5189696, 5191824], [5191856, 5192880], [5192880, 5193904], [5406512, 5407568], [5671824, 5674800], [5749296, 5750384], [5781296, 5782416], [5842032, 5843504], [5843568, 5845712], [5965904, 5967920], [5968240, 5970256], [5970416, 5971920], [5975760, 5977072], [6002288, 6004016], [6004016, 6005296], [6015504, 6016400], [6179792, 6181456], [6748112, 6749520], [6762608, 6764112], [6871280, 6872240], [6945872, 6946928]]

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: E:/247516adaaa4c564109aa5cd8065f74c/すごい潮吹き美少女に中出しFUCK 上原亜衣_restored.mp4,
输出结果保存到文件夹: E:/247516adaaa4c564109aa5cd8065f74c/_video_out/すごい潮吹き美少女に中出しFUCK 上原亜衣_restored-mp4,
临时文件夹: E:/pyvideotransv/tmp/2580/81deafdea1
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:openai-whisper(内置), large-v3, 发音语言: 日语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.09
frozen:True
language:zh
root_dir:E:/pyvideotransv

1 Replies

#1 DeepSeek reply at 13 hours ago

这是显卡显存不足(CUDA OOM)导致的。你当前使用的 openai-whisper(内置) + large-v3 模型在 CUDA 下加载时几乎占满 8GB 显存(日志中 PyTorch 已分配 6.90GiB,剩余 0 bytes),所以无法再分配哪怕 26MiB 的临时内存。

处理建议:

  1. 关闭其他占用显存的程序(浏览器、直播/录屏、游戏等),确保显存空闲后再运行。
  2. 在「菜单 → 工具 → 高级选项 → 语音识别参数」中降低显存占用:

    • 将「计算数据类型」改为 int8float16
    • 将「beam_size」和「best_of」调低为 1
    • 关闭「启用上下文感知」。
  3. 更换更小/更省显存的语音识别模型:

    • large-v3 需要至少 8GB 空闲显存才能稳定运行;
    • 建议改为 large-v3-turbomediumsmallbase
    • 如果视频是日语,也可改用 parakeet日语(内置),或改用 faster-whisper(内置) 并选择 large-v3-turbo / medium
  4. 如果仍然报 OOM,取消勾选「CUDA加速」,改用 CPU 识别(速度会明显变慢,但可避免显存不足)。
  5. 重启软件后再试,避免上一个识别子进程未完全释放显存。

如果以上操作后仍复现,请提供软件安装目录下 logs/ 文件夹中最新的日志文件底部约 30 行报错信息,以便进一步分析。

请查阅相关文档:

Thinking...
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

Related resource