InstantMesh icon indicating copy to clipboard operation
InstantMesh copied to clipboard

getting ImportError: cannot import name 'cached_download' from 'huggingface_hub'

Open bafly opened this issue 5 months ago • 2 comments

getting error

ImportError: cannot import name 'cached_download' from 'huggingface_hub' (C:\ProgramData\miniconda3\envs\instamesh\lib\site-packages\huggingface_hub\__init__.py)

after launching app.py

bafly avatar Jul 23 '25 21:07 bafly

and this happens:

ImportError: cannot import name 'split_torch_state_dict_into_shards' from 'huggingface_hub'

bafly avatar Jul 23 '25 21:07 bafly

and this happens:

ImportError: cannot import name 'split_torch_state_dict_into_shards' from 'huggingface_hub'

solved by downgrading accelerate: pip install accelerate==0.31.0

bafly avatar Jul 23 '25 21:07 bafly