#2843 RuntimeError: Unsupported model binary version. This executable supports models with binary version v6 or below, but the

45.129* Posted at: 3 days ago 👁22

Traceback (most recent call last):
File "/Users/zxl/Sites/ai/pyvideotrans/videotrans/process/_overall.py", line 163, in run

model = WhisperModel(

File "/Users/zxl/Sites/ai/pyvideotrans/.venv/lib/python3.10/site-packages/faster_whisper/transcribe.py", line 689, in init

self.model = ctranslate2.models.Whisper(

RuntimeError: Unsupported model binary version. This executable supports models with binary version v6 or below, but the model has binary version v1936876918. This usually means that the model was generated by a later version of CTranslate2. (Forward compatibility is not guaranteed.)


=
system:macOS-15.7.3-arm64-arm-64bit
version:v3.91
frozen:False
language:zh
root_dir:/Users/zxl/Sites/ai/pyvideotrans
Python: 3.10.17 (main, Apr 9 2025, 03:47:39) [Clang 20.1.0 ]

1 Replies

这个错误是由于 faster-whisper 使用的 ctranslate2 库版本与 Whisper 模型文件的版本不兼容导致的。模型文件(如 large-v3)是由新版本的 ctranslate2 转换的,而您当前安装的 ctranslate2 版本太旧,无法读取。

解决方法:升级 ctranslate2 到最新版本。

由于您是在 macOS 上使用源码部署,请按以下步骤操作:

  1. 激活虚拟环境(如果您使用了 uvvenv):

    source .venv/bin/activate
  2. 升级 ctranslate2

    pip install --upgrade ctranslate2

    或者,如果您使用 uv

    uv pip install --upgrade ctranslate2
  3. 重启软件
    升级完成后,重新启动 pyVideoTrans

如果升级后问题依旧,或者您想使用特定版本,可以尝试:

  • 安装与 CUDA 兼容的版本(如果您在 Mac 上使用 GPU 加速,但通常 Mac 是 CPU 运行):

    pip install ctranslate2==4.6.0
  • 完全重新安装依赖(在项目根目录下):

    uv sync --upgrade

根本原因faster-whisper 下载的模型是使用最新版 ctranslate2 工具转换的。您的环境中的 ctranslate2 库版本过低,无法读取新版模型格式。

完成升级后,再次尝试语音识别即可。

请查看更多参考文档:

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.

Related resource