A high-quality tool for convert PDF to Markdown and JSON.一站式开源高质量数据提取工具,将PDF转换成Markdown和JSON格式。
GNU Affero General Public License v3.0
18.23k
stars
1.31k
forks
source link
`unimernet` CustomMBartDecoder does not support Flash Attention 2 #999
Open
sepcnt opened 5 days ago
Description of the bug | 错误描述
Due to a change in the default behavior of Torch, we need to apply a monkey patch to unimernet when using torchtext=0.18.0 and torch<2.4.
How to reproduce the bug | 如何复现
On Ubuntu 22.04, create a new venv with following makefile:
Here comes a monkey patch to solve the issue:
Then could run successfully, this is just a reference. (without
patch
would cause error)Operating system | 操作系统
Linux
Python version | Python 版本
3.10
Software version | 软件版本 (magic-pdf --version)
0.9.x
Device mode | 设备模式
cuda