Skip to content

Commit 60183d9

Browse files
author
Nuo Xu
committed
[update] support flash attention & add unittest
1 parent 7149daa commit 60183d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_flash_attn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def prepare_dummy_encodings(pretrain_torch_model_or_path, doc_imag_path):
2828
class TestFlashAttn(unittest.TestCase):
2929
def setUp(self) -> None:
3030
doc_imag_path = os.path.join(PROJECT_ROOT_PATH, "examples/dummy_input.jpeg")
31-
pretrain_torch_model_or_path = "/home/ysocr/data/pretrain/ernie-layoutx-base-uncased/torch_version"
31+
pretrain_torch_model_or_path = "Norm/ERNIE-Layout-Pytorch"
3232
self.encoding = prepare_dummy_encodings(pretrain_torch_model_or_path, doc_imag_path)
3333
self.pretrain_model_pth = pretrain_torch_model_or_path
3434

0 commit comments

Comments
 (0)