#3291 RuntimeError: File model.bin is incomplete: failed to read a buffer of size 3276800 at position 1374629603

129.232* Posted at: 3 hours ago 👁11

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 181, in faster_whisper
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: File model.bin is incomplete: failed to read a buffer of size 3276800 at position 1374629603


=
system:Windows-10-10.0.26200-SP0
version:v3.97
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.97

1 Replies

这是由于从 HuggingFace 下载的 faster-whisper 模型文件不完整或已损坏导致的。

解决方案:

  1. 手动下载模型:从 HuggingFace 镜像站(如 hf-mirror.com)或官方地址手动下载所需的 faster-whisper 模型文件(例如 large-v3)。
  2. 放置模型:将下载的模型文件夹(例如 models--Systran--faster-whisper-large-v3)完整放入软件根目录下的 models/ 文件夹内。
  3. 重启软件:重新启动 pyVideoTrans,软件将优先使用本地已下载的模型文件,避免在线下载不完整的问题。

详细说明:

  • 模型文件夹的命名必须严格遵循 HuggingFace 的规则(如 models--Systran--faster-whisper-large-v3),内部应包含 model.binconfig.json 等文件。
  • 如果网络环境不佳,建议始终使用此方法预先下载模型。

请查阅相关文档:

Post Your Reply