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

[E2E] Torchbench models ImportError cached_download from huggingface_hub #1219

Open
Tracked by #1223
mengfei25 opened this issue Dec 26, 2024 · 2 comments
Open
Tracked by #1223

Comments

@mengfei25
Copy link
Contributor

mengfei25 commented Dec 26, 2024

🐛 Describe the bug

from huggingface_hub import cached_download
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/global/panfs01/users/mengfeil/miniforge3/envs/test/lib/python3.10/site-packages/huggingface_hub/init.py)

xpu train stable_diffusion_text_encoder
Traceback (most recent call last):
File "/home/sdp/actions-runner/_work/torch-xpu-ops/pytorch/benchmarks/dynamo/common.py", line 4886, in run
) = runner.load_model(
File "/home/sdp/actions-runner/_work/torch-xpu-ops/pytorch/benchmarks/dynamo/torchbench.py", line 246, in load_model
module = importlib.import_module(c)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/sdp/actions-runner/_work/torch-xpu-ops/benchmark/torchbenchmark/models/stable_diffusion_text_encoder/init.py", line 11, in
from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/init.py", line 3, in
from .configuration_utils import ConfigMixin
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 34, in
from .utils import (
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/utils/init.py", line 37, in
from .dynamic_modules_utils import get_class_from_dynamic_module
File "/home/sdp/miniforge3/envs/e2e_ci/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/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/huggingface_hub/init.py)

Versions

huggingface-hub==0.26.0

@mengfei25
Copy link
Contributor Author

mengfei25 commented Dec 26, 2024

Downgrading huggingface-hub to 0.25.0
Fixed in #1218

@mengfei25
Copy link
Contributor Author

Use pytorch pinned torchbench as CUDA and should be fixed in #1226

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

No branches or pull requests

1 participant