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

2409:40e4* Posted at: 3 hours ago 👁8

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 63, in qwen3tts_fun
File "C:\Users\Windows 11\Desktop\New folder (2)\win-pyvideotrans-v3.99-420\_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\Windows 11\Desktop\New folder (2)\win-pyvideotrans-v3.99-420\_internal\qwen_tts\core\models\modeling_qwen3_tts.py", line 1876, in from_pretrained

model = super().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/Windows 11/Desktop/New folder (2)/win-pyvideotrans-v3.99-420/models/models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice.
"""

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 369, in run
File "videotrans\tts\_base.py", line 137, in run
File "videotrans\tts\_qwenttslocal.py", line 53, in _exec
File "videotrans\configure\_base.py", line 285, 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/Windows 11/Desktop/New folder (2)/win-pyvideotrans-v3.99-420/models/models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice.


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:en
root_dir:C:/Users/Windows 11/Desktop/New folder (2)/win-pyvideotrans-v3.99-420

1 Replies

The error means the Qwen3-TTS model file could not be found in the expected directory. The model was likely not downloaded completely or failed to download.

Solutions:

  1. Check the model folder: Go to C:/Users/Windows 11/Desktop/New folder (2)/win-pyvideotrans-v3.99-420/models/models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice/. If this folder is empty or missing files, the download is incomplete.
  2. Delete and retry: Delete the entire folder models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice, then restart the software. It will attempt to re-download the model. Make sure your network can access Hugging Face (a proxy may be required in some regions).
  3. Manual download: If auto-download keeps failing, manually download the model from Hugging Face and place it into the models/ folder:

Please refer to related documentation:

Post Your Reply