#6730 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 加载模型时,内置 Transformers 库版本过旧或模型文件不匹配导致的。从报错看,加载的模型类型是 qwen3_asr,但当前 Transformers 不识别该架构。

解决方案(按顺序尝试):

  1. 更新软件补丁包:如果你是 Windows 预打包版,无法单独升级 Transformers,请到官网重新下载最新的完整包或补丁包覆盖到软件目录(建议直接下载完整包,仅用补丁包可能无法完全修复)。这能更新内置的 Transformers 库。
  2. 检查并重新下载 Qwen3-TTS 模型:删除 软件目录/models/ 下的 models--Qwen--Qwen3-TTS-12Hz-0.6B-Basemodels--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice 文件夹,然后重新启动软件让其自动下载。注意不要将 Qwen-ASR 模型文件误放到 TTS 模型目录。
  3. 临时更换配音渠道:如果急用,可先改用其他配音渠道,如 Edge-TTS(免费)或 OmniVoice

如果以上步骤仍无效,请提供 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