| ```CODE: | |
| import torch | |
| from diffusers import DiffusionPipeline | |
| # switch to "mps" for apple devices | |
| pipe = DiffusionPipeline.from_pretrained("NewBie-AI/NewBie-image-Exp0.1", dtype=torch.bfloat16, device_map="cuda") | |
| prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" | |
| image = pipe(prompt).images[0] | |
| ``` | |
| ERROR: | |
| Traceback (most recent call last): | |
| File "/tmp/NewBie-AI_NewBie-image-Exp0.1_0TEWn5C.py", line 27, in <module> | |
| pipe = DiffusionPipeline.from_pretrained("NewBie-AI/NewBie-image-Exp0.1", dtype=torch.bfloat16, device_map="cuda") | |
| File "/tmp/.cache/uv/environments-v2/3feaae6b88b4fc27/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn | |
| return fn(*args, **kwargs) | |
| File "/tmp/.cache/uv/environments-v2/3feaae6b88b4fc27/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 829, in from_pretrained | |
| cached_folder = cls.download( | |
| pretrained_model_name_or_path, | |
| ...<14 lines>... | |
| **kwargs, | |
| ) | |
| File "/tmp/.cache/uv/environments-v2/3feaae6b88b4fc27/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn | |
| return fn(*args, **kwargs) | |
| File "/tmp/.cache/uv/environments-v2/3feaae6b88b4fc27/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1637, in download | |
| custom_components, folder_names = _get_custom_components_and_folders( | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | |
| pretrained_model_name, config_dict, filenames, variant | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| ) | |
| ^ | |
| File "/tmp/.cache/uv/environments-v2/3feaae6b88b4fc27/lib/python3.13/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 1071, in _get_custom_components_and_folders | |
| raise ValueError( | |
| f"{candidate_file} as defined in `model_index.json` does not exist in {pretrained_model_name} and is not a module in 'diffusers/pipelines'." | |
| ) | |
| ValueError: transformer/transformer.py as defined in `model_index.json` does not exist in NewBie-AI/NewBie-image-Exp0.1 and is not a module in 'diffusers/pipelines'. | |