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

cached_download deprecated #8

Open
rahonalab opened this issue Oct 25, 2024 · 4 comments
Open

cached_download deprecated #8

rahonalab opened this issue Oct 25, 2024 · 4 comments

Comments

@rahonalab
Copy link

Hello, thanks for your awesome aligner!
Unfortunately, a recent change in the huggingface_hub has broken your code: https://github.com/huggingface/huggingface_hub/releases/tag/v0.26.0

The cached_download() method was completely removed and bertalign complains that

ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/opt/conda/lib/python3.10/site-packages/huggingface_hub/__init__.py)

How can we fix the issue?

@Von41
Copy link

Von41 commented Oct 25, 2024

I have used this recently but I do not seem to run with any error running it on collab.
If you need I can share the piece of code with which I got it running on collab.

@rahonalab
Copy link
Author

rahonalab commented Oct 26, 2024

many thanks for the reply. the error triggers when I try to import Bertalign, but it'd be useful to see your code.
I have tried both with Python 3.10.13 and 3.10.14. Bertalign does not compile with Python > 3.10

@rahonalab
Copy link
Author

any update on this? the library is currently broken

@bfsujason
Copy link
Owner

I updated requirements.txt to use the latest version of sentence-transformers. That seems to be working on Colab.

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

3 participants