Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'cached_download' from 'huggingface_hub' #24

Open
TCLW123 opened this issue Nov 26, 2024 · 1 comment
Open

Comments

@TCLW123
Copy link

TCLW123 commented Nov 26, 2024

Traceback (most recent call last):
File "/home/xinyihu/distrifuser-main/scripts/sdxl_example.py", line 3, in
from distrifuser.pipelines import DistriSDXLPipeline
File "/home/distrifuser-main/distrifuser/pipelines.py", line 2, in
from diffusers import StableDiffusionPipeline, StableDiffusionXLPipeline, UNet2DConditionModel
File "/home/anaconda3/envs/distifusion/lib/python3.10/site-packages/diffusers/init.py", line 5, in
from .utils import (
File "/home/anaconda3/envs/distifusion/lib/python3.10/site-packages/diffusers/utils/init.py", line 38, in
from .dynamic_modules_utils import get_class_from_dynamic_module
File "/home/anaconda3/envs/distifusion/lib/python3.10/site-packages/diffusers/utils/dynamic_modules_utils.py", line 28, in
from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/home/anaconda3/envs/distifusion/lib/python3.10/site-packages/huggingface_hub/init.py)

The above error occurred while I was running example.
My configuration is NVIDIA 4090+Python 3.10+Pytorch2.2.0+cu121 CUDA Version: 12.2

@TCLW123
Copy link
Author

TCLW123 commented Nov 26, 2024

I solved this problem by demoting huggingface_hub from 0.26.0 to 0.23.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant