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

67.48**1 Posted at: 1 hour ago

Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory C:/Users/marcoz/Downloads/win-pyvideotrans-v4.14/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice.,Traceback (most recent call last):
File "videotrans\process\qwen_tts.py", line 53, 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 "C:\Users\marcoz\Downloads\win-pyvideotrans-v4.14\_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 "C:\Users\marcoz\Downloads\win-pyvideotrans-v4.14\_internal\transformers4576\modeling_utils.py", line 277, in _wrapper

return func(*args, **kwargs)

File "C:\Users\marcoz\Downloads\win-p
......
videotrans\tts\__init__.py", line 119, in run
File "videotrans\tts\_base.py", line 96, in run
File "videotrans\tts\_qwenttslocal.py", line 59, in _exec
File "videotrans\configure\base.py", line 264, 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 C:/Users/marcoz/Downloads/win-pyvideotrans-v4.14/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice.,Traceback (most recent call last):
File "videotrans\process\qwen_tts.py", line 53, 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 "C:\Users\marcoz\Downloads\win-pyvideotrans-v4.14\_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 "C:\Users\marcoz\Downloads\win-pyvideotrans-v4.14\_internal\transformers4576\modeling_utils.py", line 277, in _wrapper

return func(*args, **kwargs)

File "C:\Users\marcoz\Downloads\win-pyvideotrans-v4.14\_internal\transformers4576\modeling_utils.py", line 4896, in from_pretrained

checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(

File "C:\Users\marcoz\Downloads\win-pyvideotrans-v4.14\_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 C:/Users/marcoz/Downloads/win-pyvideotrans-v4.14/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice.


=
system:Windows-10-10.0.22631-SP0
version:v4.14
frozen:True
language:en_US
root_dir:C:/Users/marcoz/Downloads/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 1 hour ago

This is caused by an incomplete or corrupted Qwen3-TTS model download. The folder models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice exists but contains no valid model weight files (such as model.safetensors or pytorch_model.bin), so the model cannot be loaded. This usually happens when auto-download fails or is interrupted.

Solution

  1. Delete the incomplete model folder:
    C:/Users/marcoz/Downloads/win-pyvideotrans-v4.14/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice
  2. Manually download the model from:

  3. Place ALL downloaded files directly into (no subfolders, keep original file names — do not allow the browser to rename duplicates like model(2).safetensors):
    C:/Users/marcoz/Downloads/win-pyvideotrans-v4.14/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice
  4. Restart the software and retry.

Note: This is a common failure caused by unstable network or mirror rate limits. If the directory looks complete but the error persists, the files are likely truncated — delete and re-download them.

请查阅相关文档:

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