Open ylchan87 opened 4 months ago
The error you're encountering is due to the split_torch_state_dict_into_shards function not being available in huggingface-hub version 0.20.3. This function is included starting from version 0.23.0.
To resolve this issue, update the huggingface-hub library to version 0.23.0 or later:
The error you're encountering is due to the split_torch_state_dict_into_shards function not being available in huggingface-hub version 0.20.3. This function is included starting from version 0.23.0.
To resolve this issue, update the huggingface-hub library to version 0.23.0 or later:
Why is huggingface-hub 0.17.1 installed when the installation instructions are followed if this is the case?
For me, the issue was NOT the huggingface-hub version. It was the accelerate version. Running pip install accelerate==0.31.0
or adding it to the end of the Dockerfile fixed it for me.
The error you're encountering is due to the split_torch_state_dict_into_shards function not being available in huggingface-hub version 0.20.3. This function is included starting from version 0.23.0.
To resolve this issue, update the huggingface-hub library to version 0.23.0 or later:
If you try this, you will get an error, due to tokenizers dependency:
#21 16.02 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
#21 ERROR: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1
------
> [17/18] RUN pip install -r requirements.txt:
16.01 transformers 4.34.1 depends on huggingface-hub<1.0 and >=0.16.4
16.01 diffusers 0.20.2 depends on huggingface-hub>=0.13.2
16.01 gradio-client 0.5.0 depends on huggingface-hub>=0.13.0
16.01 tokenizers 0.14.0 depends on huggingface_hub<0.17 and >=0.16.4
Problem
spinning up docker with commit 7fe9562 (latest commit as of 8Jul2024) fails with:
Quick fix
lock package
accelarate
to 0.31.0 inrequirements.txt
i.e.