Skip to content

Commit 73bdd62

Browse files
committed
Fix
1 parent 22856a7 commit 73bdd62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,9 +1513,9 @@ def assert_sdpa_backend(original_fn, query, k_and_v, mask, return_scores):
15131513
try:
15141514
with torch.device("cuda"):
15151515
model = GPT(config)
1516-
model.max_seq_length = 1
1516+
model.max_seq_length = 16
15171517
model.set_kv_cache(2)
1518-
x = torch.randint(0, 10, (2, 1), dtype=torch.int32)
1518+
x = torch.randint(0, 10, (2, 10), dtype=torch.int32)
15191519
except torch.cuda.OutOfMemoryError:
15201520
# best effort, if the GPU can load it
15211521
pytest.xfail()

0 commit comments

Comments
 (0)