#6731 The checkpoint you are trying to load has model type `qwen3_asr` but Transformers does not recognize this architecture.

34.126.**1 Posted at: 1 hour ago

The checkpoint you are trying to load has model type qwen3_asr but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

You can update Transformers with the command pip install --upgrade transformers. If this does not work, and the checkpoint is very new, then there may not be a release version that supports this model yet. In this case, you can get the most up-to-date code by installing Transformers from source with the command pip install git+https://github.com/huggingface/transformers4576.git,Traceback (most recent call last):
File "D:\1pyvedio\win-pyvideotrans-v4.10\_internal\transformers4576\models\auto\configuration_auto.py", line 1360, in from_pretrained

config_class = CONFIG_MAPPING[config_dict["model_type"]]

File "D:\1pyvedio\win-pyvideotrans-v4.10\_internal\transformers4576\models\auto\configuration_auto.py", line 1048, in getitem

raise Key

......
most up-to-date code by installing Transformers from source with the command pip install git+https://github.com/huggingface/transformers4576.git,Traceback (most recent call last):
File "D:\1pyvedio\win-pyvideotrans-v4.10\_internal\transformers4576\models\auto\configuration_auto.py", line 1360, in from_pretrained

config_class = CONFIG_MAPPING[config_dict["model_type"]]

File "D:\1pyvedio\win-pyvideotrans-v4.10\_internal\transformers4576\models\auto\configuration_auto.py", line 1048, in getitem

raise KeyError(key)

KeyError: 'qwen3_asr'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\qwen_tts.py", line 63, in qwen3tts_fun
File "qwen_tts\inference\qwen3_tts_model.py", line 112, in from_pretrained

model = AutoModel.from_pretrained(pretrained_model_name_or_path, **kwargs)

File "D:\1pyvedio\win-pyvideotrans-v4.10\_internal\transformers4576\models\auto\auto_factory.py", line 549, in from_pretrained

config, kwargs = AutoConfig.from_pretrained(

File "D:\1pyvedio\win-pyvideotrans-v4.10\_internal\transformers4576\models\auto\configuration_auto.py", line 1362, in from_pretrained

raise ValueError(

ValueError: The checkpoint you are trying to load has model type qwen3_asr but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

You can update Transformers with the command pip install --upgrade transformers. If this does not work, and the checkpoint is very new, then there may not be a release version that supports this model yet. In this case, you can get the most up-to-date code by installing Transformers from source with the command pip install git+https://github.com/huggingface/transformers4576.git


=
system:Windows-10-10.0.22621-SP0
version:v4.10
frozen:True
language:zh
root_dir:D:/1pyvedio/win-pyvideotrans-v4.10

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Qwen3-TTS 加载模型时读取到了错误的 checkpoint 导致的。报错中的 model type: qwen3_asr 表明:软件在加载 Qwen3-TTS 模型时,实际读取到的是 Qwen3-ASR 语音识别模型 的配置文件,而非 Qwen3-TTS 的模型文件。常见原因是模型自动下载中断、磁盘空间不足或下载到了错误的模型文件夹。

解决办法

  1. 完全退出 pyVideoTrans。
  2. 打开软件目录:

    D:\1pyvedio\win-pyvideotrans-v4.10\models\
  3. 检查并删除以下 Qwen3-TTS 模型文件夹(如存在):

    • models--Qwen--Qwen3-TTS-12Hz-0.6B-Base
    • models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice
    你当前使用了参考音频 zh_male_bj.wav,因此实际需要的是 CustomVoice 模型。如果该目录中混入了 ASR 模型文件,请一并删除整个目录。
  4. 手动下载正确的 Qwen3-TTS 模型并放到对应位置:

  5. 确保下载后目录内包含 config.json,且其中的 model_type 应为 qwen3_tts 或类似 TTS 类型,而不是 qwen3_asr
  6. 重新启动软件并再次执行翻译即可。
提示:国内网络下载 HuggingFace 可能不稳定,若自动下载再次失败,请优先使用页面中的“手动下载模型”方式。

更多模型下载说明:https://pyvideotrans.com/aboutmodels

Qwen3-TTS 渠道说明:https://pyvideotrans.com/qwen-tts
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