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

222.132**0 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 "G:\BaiduNetdiskDownload\_internal\transformers4576\models\auto\configuration_auto.py", line 1360, in from_pretrained

config_class = CONFIG_MAPPING[config_dict["model_type"]]

File "G:\BaiduNetdiskDownload\_internal\transformers4576\models\auto\configuration_auto.py", line 1048, in getitem

raise KeyError(key)

KeyError:
......
em__

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 60, 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 "G:\BaiduNetdiskDownload\_internal\transformers4576\models\auto\auto_factory.py", line 549, in from_pretrained

config, kwargs = AutoConfig.from_pretrained(

File "G:\BaiduNetdiskDownload\_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

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/95171/Desktop/新建文件夹 (2)/Testando o Iphone Duo211446.mp4,
输出结果保存到文件夹: C:/Users/95171/Desktop/新建文件夹 (2)/_video_out/Testando o Iphone Duo211446-mp4,
临时文件夹: G:/BaiduNetdiskDownload/tmp/11732/3db97794e2
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 葡萄牙语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:葡萄牙语,目标语言:英语, 已选 发送完整字幕
配音渠道:Qwen3-TTS(内置), 角色:clone, 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
字幕: 不嵌入字幕
video_duration_ms=29231


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:G:/BaiduNetdiskDownload

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由于 Qwen3-TTS(内置) 配音渠道在加载模型时,transformers 库无法识别 qwen3_asr 架构导致的。该问题通常由以下原因引起:

  1. 模型文件下载不完整或损坏:Qwen3-TTS 和 Qwen3-ASR 的模型文件可能未完整下载。
  2. transformers 版本冲突:预打包版内置的 transformers4576 版本与 Qwen3-TTS 所需的架构不匹配。

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

  1. 删除并重新下载模型

    • 关闭软件
    • 进入 G:\BaiduNetdiskDownload\models\ 目录
    • 删除以下两个文件夹(如果存在):

      • models--Qwen--Qwen3-TTS-12Hz-0.6B-Base
      • models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice
    • 重新启动软件,让它自动重新下载模型
  2. 手动下载模型(如果自动下载失败):

  3. 改用其他配音渠道(推荐):

    • 如果是英语配音,建议将配音渠道改为 Edge-TTS(免费),选择 en-US-GuyNeuralen-US-JennyNeural,无需下载模型,稳定性更好。
    • 或者使用 OmniVoice-TTSChatterBox 等支持克隆的渠道。
  4. 升级到最新补丁包

    • 从官网下载最新补丁包覆盖,确保 transformers 版本与 Qwen3-TTS 兼容。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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