#8258 语音识别阶段出错[Qwen-ASR(内置)] Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/win-pyvideotra

2408**c832 Posted at: 2 hours ago

语音识别阶段出错[Qwen-ASR(内置)] Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-ASR-1.7B-hf.:Traceback (most recent call last):
File "videotrans\process\stt_qwen.py", line 70, in qwen3asr_fun
File "E:\win-pyvideotrans-v4.16\_internal\transformers\models\auto\auto_factory.py", line 402, in from_pretrained

return model_class.from_pretrained(

File "E:\win-pyvideotrans-v4.16\_internal\transformers\modeling_utils.py", line 4267, in from_pretrained

checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(

File "E:\win-pyvideotrans-v4.16\_internal\transformers\modeling_utils.py", line 635, in _get_resolved_checkpoint_files

raise OSError(

OSError: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-ASR-1.7B-hf.

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

......
le "videotrans\task\_stage_recogn.py", line 63, in recogn

File "videotrans\recognition\__init__.py", line 141, in run

File "videotrans\recognition\_base.py", line 101, in run

File "videotrans\recognition\_qwenasrlocal.py", line 84, in _exec

File "videotrans\configure\base.py", line 277, in _new_process

videotrans.configure.excepts.VideoTransError: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-ASR-1.7B-hf.:Traceback (most recent call last):
File "videotrans\process\stt_qwen.py", line 70, in qwen3asr_fun
File "E:\win-pyvideotrans-v4.16\_internal\transformers\models\auto\auto_factory.py", line 402, in from_pretrained

return model_class.from_pretrained(

File "E:\win-pyvideotrans-v4.16\_internal\transformers\modeling_utils.py", line 4267, in from_pretrained

checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(

File "E:\win-pyvideotrans-v4.16\_internal\transformers\modeling_utils.py", line 635, in _get_resolved_checkpoint_files

raise OSError(

OSError: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-ASR-1.7B-hf.
trk=[TransCreate]: uuid='49e085dc62', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: E:/新建文件夹/S1/魔王的女儿过于温柔 S01E01.mkv,
输出结果保存到文件夹: E:/新建文件夹/_video_out/S1/魔王的女儿过于温柔 S01E01-mkv,
临时文件夹: E:/win-pyvideotrans-v4.16/tmp/10820/49e085dc62
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:Qwen-ASR(内置), 1.7B, 发音语言: 日语,
翻译渠道:Hy-MT2-1.8B(内置),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕, precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=False, is_copy_video=False, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=False


=
system:Windows-10-10.0.26200-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:E:/win-pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 2 hours ago

模型文件不完整或未下载成功。Qwen3-ASR-1.7B-hf 需要包含 model.safetensors 或 pytorch_model.bin 权重文件;当前 E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-ASR-1.7B-hf 目录中缺少权重(通常是自动下载中断、镜像站限流或磁盘空间不足导致只下了一半)。

处理步骤(任选其一):

方案 A:删除后重新自动下载

  1. 关闭软件。
  2. 删除整个文件夹 E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-ASR-1.7B-hf(不要只删其中的部分文件)。
  3. 确认软件所在磁盘剩余空间充足(1.7B 模型约 4GB 以上,另需空间放临时文件)。
  4. 重新启动软件执行任务,让它重新下载。若自动下载反复失败,可在软件根目录新建空文件 huggingface.txt 强制从 huggingface.co 下载(需能访问该站),或反之依赖国内镜像。

方案 B:手动下载(推荐,最稳)

  1. 打开 https://huggingface.co/Qwen/Qwen3-ASR-1.7B-hf/tree/main ,逐个下载全部文件。
  2. 全部放到 E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-ASR-1.7B-hf 内(直接平铺放在该目录下,不建子目录、不要 snapshots/xxx 这类缓存结构)。
  3. 注意:浏览器若把同名文件重命名为 model(1).safetensors、model(2).safetensors,必须改回原名 model.safetensors,否则软件识别不到。
  4. 若使用 0.6B 模型,则目录为 models/models--Qwen--Qwen3-ASR-0.6B-hf,下载地址 https://huggingface.co/Qwen/Qwen3-ASR-0.6B-hf/tree/main ,下载方式相同。
  5. 另外 Qwen-ASR 识别后断句还需 Qwen3-ForcedAligner-0.6B-hf,若该模型也不完整,同样会失败,可一并手动下载放到 models/models--Qwen--Qwen3-ForcedAligner-0.6B-hf。

方案 C:临时换渠道先跑通流程
将语音识别渠道改为 faster-whisper(内置) + large-v3-turbo(日语效果良好、免费),并勾选 清理已生成 后重试,避开该模型问题。

补充说明:报错日志中路径 E:/新建文件夹/S1/...mkv 含中文目录,若后续在 ffmpeg 合并阶段再报错,建议把视频移到浅层纯英文路径(如 D:/video/)。

请查阅相关文档:

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