update packing

This commit is contained in:
hiyouga committed 2024-07-04 01:10:55 +08:00
1 parent a36e8f2dd5
commit cce7083024
6 files changed
+133 -271

No files matched your search

+1
View File
@@ -52,4 +52,5 @@ def test_4d_attention_mask():
],
dtype=torch.float16,
)
assert list(attention_mask_computed.size()) == [2, 1, 6, 6]
assert torch.all(attention_mask_computed == attention_mask_expected)