unimernet
CustomMBartDecoder does not support Flash Attention 2
#999
Labels
bug
Something isn't working
unimernet
CustomMBartDecoder does not support Flash Attention 2
#999
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
The text was updated successfully, but these errors were encountered: