harmonydata / harmonydata/harmony
Update huggingface hub to newest version
- Dominant language
- Python
- Stars
- 66
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Description
## Description
At present HuggingFace Hub is locked at `0.25.0` in `requirements.txt`
I had to lock it at an old version because if we allow it to update then it breaks the install since the method `cached_download` has been deprecated and we get this error on all platforms.
```
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/tmp/harmony/venv/lib/python3.11/site-packages/huggingface_hub/__init__.py)
```
## Environment
Provide details regarding the operating system, toolchain, and environment.
## How to Reproduce
1. Clone Harmony as at this commit: https://github.com/harmonydata/harmony/commit/3de5b8c14e6684e053916179369c11682ba7450a
2. There is nothing in `requirements.txt` locking `huggingface-hub` to any version
3. Installation will default to `huggingface-hub==0.26.2` or whatever is currently [most recent version on Pypi](https://pypi.org/project/huggingface-hub/)
4. Error `ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/tmp/harmony/venv/lib/python3.11/site-packages/huggingface_hub/__init__.py)`
## Expected Behavior
Update the code in Harmony so that it will work with a newer version of this dependency
Contributor guide
Assessment
This issue has not been assessed yet.