Skip to content

Commit

Permalink
add assert torch_ring_attention is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzeyi committed Dec 25, 2024
1 parent fbb42ff commit ee9e03b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/para_attn/para_attn_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def forward(
mesh,
):
assert _templated_ring_attention is not None, "RingAttnFunc requires a newer version of PyTorch"
assert torch_ring_attention is not None, "RingAttnFunc requires a newer version of PyTorch"

with unittest.mock.patch.object(
torch_ring_attention,
Expand Down

0 comments on commit ee9e03b

Please sign in to comment.