Skip to content

Commit f80015e

Browse files
authored
[Test] Relax latency threshold because the test fluctuate (#102)
1 parent 4e49a39 commit f80015e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/test_SD_attention_small_head.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def cpu_golden_attn(q, k, v):
2525
class TestAttention:
2626

2727
@pytest.mark.parametrize("bs,seqlen,d,dtype,latency", [
28-
[1, 4096, 128, np.float32, 600],
28+
[1, 4096, 128, np.float32, 675],
2929
[1, 4096, 128, nl.bfloat16, 480],
30-
[1, 4096, 64, nl.float16, 520]
30+
[1, 4096, 64, nl.float16, 600]
3131
])
3232
def test_attention_for_SD_perf(self, bs, seqlen, d, dtype, latency):
3333
q = np.random.random_sample((bs, d, seqlen)).astype(np.float32)

0 commit comments

Comments
 (0)