TMbed icon indicating copy to clipboard operation
TMbed copied to clipboard

Incompatible with transformers 4.38

Open jowodo opened this issue 1 year ago • 1 comments

Hi,

I came across an incompatibility with pip package transformers >=4.38. See https://github.com/huggingface/transformers/issues/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

jowodo avatar Apr 03 '24 14:04 jowodo

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.

BernhoferM avatar Apr 06 '24 09:04 BernhoferM