#5401 OSError: Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack f

129.0* Posted at: 17 hours ago

System Error (None): None:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "multiprocessing\pool.py", line 125, in worker
File "videotrans\process\tts_fun.py", line 59, in qwen3tts_fun
File "C:\Users\MystralMJ\pyvideo\_internal\qwen_tts\inference\qwen3_tts_model.py", line 112, in from_pretrained

model = AutoModel.from_pretrained(pretrained_model_name_or_path, **kwargs)

File "transformers\models\auto\auto_factory.py", line 604, in from_pretrained

return model_class.from_pretrained(

File "C:\Users\MystralMJ\pyvideo\_internal\qwen_tts\core\models\modeling_qwen3_tts.py", line 1915, in from_pretrained

speech_tokenizer = Qwen3TTSTokenizer.from_pretrained(

File "C:\Users\MystralMJ\pyvideo\_internal\qwen_tts\inference\qwen3_tts_tokenizer.py", line 88, in from_pretrained

inst.model = AutoModel.from_pretrained(pretrained_model_name_or_path, **kwargs)

File "transformers\models\auto\auto_factory.py", line 604, in from_pretrained

return model_class.from_pretrained(

File "transformers\modeling_utils.py", line 277, in _wrapper

return func(*args, **kwargs)

File "transformers\modeling_utils.py", line 4900, in from_pretrained

checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(

File "transformers\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/MystralMJ/pyvideo/models/models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice\speech_tokenizer.
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 181, in run
File "videotrans\tts\_base.py", line 90, in run
File "videotrans\tts\_qwenttslocal.py", line 46, in _exec
File "videotrans\configure\base.py", line 238, in _new_process
File "videotrans\process\signelobj.py", line 13, in result
File "multiprocessing\pool.py", line 774, in get
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/MystralMJ/pyvideo/models/models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice\speech_tokenizer.


=
system:Windows-10-10.0.19045-SP0
version:v4.00
frozen:True
language:en
root_dir:C:/Users/MystralMJ/pyvideo

1 Replies

This error indicates that the Qwen3-TTS model files in C:/Users/MystralMJ/pyvideo/models/models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice are incomplete, specifically the speech_tokenizer subfolder is missing essential model files (e.g., pytorch_model.bin or .safetensors).

Cause: The model download was interrupted or corrupted during the first automatic download.

Solution steps:

  1. Delete the incomplete model folder – Remove the entire directory:
    C:/Users/MystralMJ/pyvideo/models/models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice
  2. Restart pyVideoTrans – Then re-run your task with Qwen-TTS(本地内置) selected. The software will automatically re-download the missing model files.
  3. If re-download fails (e.g., slow/unstable network):

    • Use a VPN/proxy for better connectivity, or
    • Manually download the model from Hugging Face:
      Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice
      and place it in the same directory structure (models/models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice/speech_tokenizer/...). Ensure the folder contains the required files (e.g., pytorch_model.bin, config.json).

If the problem persists, check your disk space and antivirus logs (some security software may block model downloads).

Please refer to related documentation:

Post Your Reply