clovaai / donut

Official Implementation of OCR-free Document Understanding Transformer (Donut) and Synthetic Document Generator (SynthDoG), ECCV 2022
https://arxiv.org/abs/2111.15664
MIT License
5.52k stars 443 forks source link

Update donut-python Python Package to be compatible with latest versions of transformers #295

Open agovin9812 opened 3 months ago

agovin9812 commented 3 months ago

donut-python latest version is 1.0.9, as you can see here: https://pypi.org/project/donut-python/#history

This version was created in December 2022, so it is not compatible with any transformers version > 4.25.1. Since December, changes have been made to this repo, but the python package has not been updated, which causes us to have to make source code changes locally.

Would it be possible to have donut-python be compatible with the latest versions of transformers, including transformers>4.36.0? In transformers release 4.36.0, a security vulnerability was patched, so having donut-python be compatible with this version would be much more convenient for developers.