Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions benchmarks/benchmark_forward_equivalence.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ def test_forward_equivalence(accuracy_threshold=0.95):
# If you encounter NAN issues when running multiple configurations, try running a single configuration
test_configs = [
# (batch_size, num_heads, num_kv_heads, query_len, key_len, head_dim, is_causal)
(1, 1, 1, 4, 64, 32, True),
(1, 1, 1, 4, 64, 32, False),
(1, 1, 1, 64, 64, 32, True),
(1, 1, 1, 64, 64, 32, False),
(1, 1, 1, 128, 128, 32, True),
(1, 1, 1, 128, 128, 32, False),
(1, 1, 1, 256, 256, 32, True),
Expand All @@ -377,7 +377,7 @@ def test_forward_equivalence(accuracy_threshold=0.95):
(1, 2, 1, 64, 64, 128, True),
(1, 2, 1, 128, 128, 128, True),
(1, 2, 1, 256, 256, 128, True),
(1, 2, 1, 511, 512, 128, True),
(1, 2, 1, 512, 512, 128, False),
]

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
Expand Down