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

When the command "pip install -e ." is executed, I get the huggingface-hub version error. #34

Open
mohtashim-nawaz opened this issue Aug 22, 2024 · 2 comments

Comments

@mohtashim-nawaz
Copy link

When the command "pip install -e ." is executed, I get the following error.

"pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
llama-index-llms-huggingface 0.2.5 requires huggingface-hub<0.24.0,>=0.23.0, but you have huggingface-hub 0.24.6 which is incompatible."

I think it would be better to mention the huggingface-hub version as well in the requirements.

@nihalnayak
Copy link
Member

Thanks for sharing this issue. In setup.py, I haven't tied bonito to huggingface-hub to 0.24.6. It just installs the latest version because of transformers:
https://github.com/huggingface/transformers/blob/0a7af19f4dc868bafc82f35eb7e8d13bac87a594/setup.py#L120

Notice they transformers installs the version huggingface-hub>=0.23.2,<1.0. That might be the root cause of your issue.

@mohtashim-nawaz
Copy link
Author

I have opened a PR for setting the huggingface-hub to 0.23.5 which solves the problem.

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

2 participants