Skip to content

Commit

Permalink
kk
Browse files Browse the repository at this point in the history
  • Loading branch information
dudulightricks committed Nov 20, 2024
1 parent c3ef029 commit 1806885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_pallas_spmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def test_flash_attention_spmd_data_parallel_with_segment_ids(self):
k = torch.randn(4, 2, 128, 4).to("xla")
v = torch.randn(4, 2, 128, 4).to("xla")
q_segment_ids = torch.ones(4, 128).to("xla")
kv_segment_ids = mask = torch.randn(4, 128).to("xla")
kv_segment_ids = torch.randn(4, 2, 128, 128).to("xla")

o = flash_attention(q, k, v, q_segment_ids, kv_segment_ids, partition_spec=range(4))
self.assertEqual(
Expand Down

0 comments on commit 1806885

Please sign in to comment.