Error when loading with both ZimagePipeline.from_pretrained() and DiffusionPipeline.from_pretende()

#1
by alonsojr1980 - opened

Using the most basic code to load the model, the error below occurs. Am I missing something?

Traceback (most recent call last):
File "F:\AI\DEV\GEMINI_CLI\DIFFUSERS_TESTER\test-zimage.py", line 10, in
pipe = ZImagePipeline.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\AI\DEV\GEMINI_CLI\DIFFUSERS_TESTER\venv\Lib\site-packages\huggingface_hub\utils_validators.py", line 88, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "F:\AI\DEV\GEMINI_CLI\DIFFUSERS_TESTER\venv\Lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 1057, in from_pretrained
loaded_sub_model = load_sub_model(
^^^^^^^^^^^^^^^
File "F:\AI\DEV\GEMINI_CLI\DIFFUSERS_TESTER\venv\Lib\site-packages\diffusers\pipelines\pipeline_loading_utils.py", line 910, in load_sub_model
loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\AI\DEV\GEMINI_CLI\DIFFUSERS_TESTER\venv\Lib\site-packages\transformers\modeling_utils.py", line 4153, in from_pretrained
checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\AI\DEV\GEMINI_CLI\DIFFUSERS_TESTER\venv\Lib\site-packages\transformers\modeling_utils.py", line 631, in _get_resolved_checkpoint_files
raise OSError(
OSError: Error no file named model.safetensors, or pytorch_model.bin, found in directory C:\Users\alons.cache\huggingface\hub\models--mzbac--Z-Image-8bit\snapshots\f83f0a2daaa501adf9963e648be1e8a1bd00b902\text_encoder.

Sign up or log in to comment