This model doesn't compatible with transformers 5.x version

#11
by 5Va2mm - opened

The document mentioned:

ensure the transformers v5 is installed

However modeling_paddleocr_vl.py uses SlidingWindowCache which was removed in 5.x version:

ImportError: cannot import name 'SlidingWindowCache' from 'transformers.cache_utils'

Downgrade to the latest transformers 4.x version work well.

will the error be fixed? its a problem that PP-DocLaouytV3 requires transformers>=5.X, but VLM part transformers<5.X ...

Sign up or log in to comment