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

34.126.**1 Posted at: 2 hours 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 2 hours ago

这是因为本地 Qwen3-TTS 模型目录内的模型文件下载错误导致的:软件加载该目录时,读取到的配置文件 config.json 中的 model_typeqwen3_asr(语音识别模型),而不是 Qwen3-TTS 应有的模型类型,所以内置的 Transformers 无法识别,报错中断。常见原因是把 Qwen3-ASR 的模型文件手动放到了 Qwen3-TTS 的模型目录里,或自动下载时把模型的 config 文件下错了。

请按以下步骤排查修复:

  1. 打开软件目录下模型存放文件夹:
    D:\1pyvedio\win-pyvideotrans-v4.10\models\
    检查是否存在以下两个 Qwen3-TTS 目录:

    • models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice
    • models--Qwen--Qwen3-TTS-12Hz-0.6B-Base
      如果只有一个文件夹,说明另一个还没下载;如果你之前下载了 Qwen3-ASR 模型,文件也可能混入其中。
  2. 打开对应模型目录中的 config.json,查看其中是否包含 "model_type": "qwen3_asr"

    • 如果是,说明该目录下放的是 ASR 模型文件,属于下载错误,请删除整个该目录(或其中错误的文件),然后重新下载正确模型。
    • 如果两个 TTS 目录都不存在或文件不完整,也需要重新下载模型。
  3. 重新下载正确的 Qwen3-TTS 模型文件,并放置到对应目录:

    注意事项:浏览器下载时如果自动将文件重命名为 model(2).safetensors 之类的名字,请务必改回原文件名后再放入对应目录。

  4. 重新打开软件,再次执行配音任务即可。

如果重下模型后仍然报同样错误,请重新下载当前最新版本补丁包覆盖到软件目录(完整覆盖 _internal 内容),然后再启动软件重试。

请查阅相关文档:

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