Skip to content

HF Hub dependency conflicts with latest tranformers version. #191

@scottfleming

Description

@scottfleming

🐛 Bug

COMET has an explicit dependency for both transformers = "^4.17" and huggingface-hub = "^0.16.0" which will only allow versions up to 0.17.0, but the newest version of transformers (v4.36.1) has its own huggingface-hub dependency which is >=0.19.3,<1.0. This creates dependency conflicts for anyone trying to build a package on COMET and the latest transformers package. Can we do one of the following:

  1. Remove the huggingface-hub dependency from COMET and just keep the transformers dependency given that the former is implicit in the latter;
  2. Use the same style of huggingface-hub dependency that transformers uses (namely "huggingface-hub>=0.19.3,<1.0") to mitigate dependency conflicts;
  3. At very least, update the huggingface-hub dependency to be ^0.19.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions