AnswerDotAI / byaldi

Use late-interaction multi-modal models such as ColPali in just a few lines of code.
Apache License 2.0
569 stars 56 forks source link

cannot import name 'Unpack' from 'transformers.processing_utils' #25

Closed akshaychdr closed 1 month ago

akshaychdr commented 1 month ago

The code was working fine till this morning but then it started throwing this error while running this line of code:

Code: RAG = RAGMultiModalModel.from_pretrained("vidore/colpali-v1.2", verbose=1)

Error: RuntimeError: Failed to import transformers.models.paligemma.processing_paligemma because of the following error (look up to see its traceback): cannot import name 'Unpack' from 'transformers.processing_utils' (/usr/local/lib/python3.10/dist-packages/transformers/processing_utils.py)

bclavie commented 1 month ago

This should be fixed in the most recent release (on pypi in a few minutes), likely due to an old version of transformers -- we now enforce at least 4.42