Skip to content

Update huggingface hub to newest version #67

@woodthom2

Description

@woodthom2

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: 3de5b8c
  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
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions