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

Incompatible with transformers 4.38 #9

Open
jowodo opened this issue Apr 3, 2024 · 1 comment
Open

Incompatible with transformers 4.38 #9

jowodo opened this issue Apr 3, 2024 · 1 comment

Comments

@jowodo
Copy link

jowodo commented Apr 3, 2024

Hi,

I came across an incompatibility with pip package transformers >=4.38.
See huggingface/transformers#29763
I could resolve by restricting version of transformers in pyproject.toml file:

sed -i "s/\^4.11.3/~4.37.2/" pyproject.toml
python3 -m pip install . 

This will probably be fixed upstream, but one should maybe add exempt transformers>=4.38 from the versions. Maybe something like:

sed 's/transformers = "\^4.11.3/transformers = "^4.11.3, !=4.38/' pyproject.toml
@BernhoferM
Copy link
Owner

Hi,

Thank you for bringing this to my attention.

I'll think about how to best handle this, as restricting it might affect others that run Transformers 4.38 with a compatible PyTorch version (2.2+ seems to work). I personally haven't tested TMbed with anything more recent than PyTorch 2.1.1 but I would assume that it runs just fine with PyTorch 2.2 and up, too.

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