Closed mdoughty-tagleaf closed 5 days ago
I’ve encountered the same error on my MacBook too.
I have the same error on windows
I have the same error on linux
一样的错误 windows下
same on windows
workaround
pip install transformers==4.42.1
edited correct version is 4.41.2
pip install transformers==4.41.2
same on windows
workaround
pip install transformers==4.42.1
Attempted this workaround but still no luck unfortunately on Linux.
same on windows workaround pip install transformers==4.42.1
Attempted this workaround but still no luck unfortunately on Linux.
sorry, correct version is 4.41.2
pip install transformers==4.41.2
same on windows workaround pip install transformers==4.42.1
Attempted this workaround but still no luck unfortunately on Linux.
sorry, correct version is 4.41.2
pip install transformers==4.41.2
As yes, this works perfectly. Thank you for the correction
You're a beautiful person, @kiberdruzhinnik 🙏
actually this is not completed as pip install marker-pdf
installs transformers version of >=4.41.0,<5.0.0
which is now incompatible
I will patch this in all repos so it's compatible with the newer transformers versions
It's due to this transformers commit - https://github.com/huggingface/transformers/commit/481a95781404e48b1c80940be17e8279dec82fe8#diff-00107184180b3f2cd8d4d2ef397c7aa93bf605e1bf7530d19fd9d83ce92eec23
After detecting bounding boxes for a few pages, the program throws the following:
TypeError: VariableDonutSwinEmbeddings.forward() got an unexpected keyword argument 'interpolate_pos_encoding'
My environment is a Debian 12 Docker container. This is my Dockerfile and compose YAML
Full console output upon testing with a single PDF