#8237 Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in d

154.23**1 Posted at: 2 hours ago

Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base.,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 "E:\win-pyvideotrans-v4.16\_internal\transformers4576\models\auto\auto_factory.py", line 604, in from_pretrained

return model_class.from_pretrained(

File "qwen_tts\core\models\modeling_qwen3_tts.py", line 1876, in from_pretrained

model = super().from_pretrained(

File "E:\win-pyvideotrans-v4.16\_internal\transformers4576\modeling_utils.py", line 277, in _wrapper

return func(*args, **kwargs)

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

......
, 'tts_type': 1, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 132, in run
File "videotrans\tts\_base.py", line 98, in run
File "videotrans\tts\_qwenttslocal.py", line 77, in _exec
File "videotrans\configure\base.py", line 277, in _new_process
videotrans.configure.excepts.VideoTransError: Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base.,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 "E:\win-pyvideotrans-v4.16\_internal\transformers4576\models\auto\auto_factory.py", line 604, in from_pretrained

return model_class.from_pretrained(

File "qwen_tts\core\models\modeling_qwen3_tts.py", line 1876, in from_pretrained

model = super().from_pretrained(

File "E:\win-pyvideotrans-v4.16\_internal\transformers4576\modeling_utils.py", line 277, in _wrapper

return func(*args, **kwargs)

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

checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(

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

raise OSError(

OSError: Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base.


=
system:Windows-10-10.0.26300-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-TTS本地模型未下载完整或文件缺失导致的。程序在 E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base 目录下找不到 model.safetensors 等模型权重文件。

解决方案:

  1. 先关闭 pyVideoTrans 软件,删除 E:/win-pyvideotrans-v4.16/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base 目录(如果存在)。
  2. 确保网络可正常访问 huggingface.co;如果网络不稳定,建议使用稳定代理,或让软件自动切换到国内镜像站 hf-mirror.com。
  3. 重新启动软件并再次调用 Qwen3-TTS,软件会重新下载模型。
  4. 如果自动下载仍失败,请手动下载模型:

  5. 若磁盘空间不足也会导致下载不完整,请确认软件所在盘有足够的剩余空间。

请查阅相关文档:

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