facebookresearch / nougat

Implementation of Nougat Neural Optical Understanding for Academic Documents
https://facebookresearch.github.io/nougat/
MIT License
8.98k stars 567 forks source link

TypeError: BARTDecoder.prepare_inputs_for_inference() got an unexpected keyword argument 'cache_position' #216

Open Rlahuerta opened 7 months ago

Rlahuerta commented 7 months ago

This is a warning of possible bug or incompatibility with the new version of Transformers; the likely root cause of the issue is the tag version of the Transformers above 4.38.2

KastanDay commented 6 months ago

Thank you @itsaphel, your PR worked for me. Specifically tokenizers==0.15.2 transformers==4.38.2