Skip to content

Commit

Permalink
an assert info change
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaowei Ren <xren@nvidia.com>
  • Loading branch information
xrennvidia committed Sep 25, 2024
1 parent 1db4e8b commit 1655edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transformer_engine/pytorch/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -4057,7 +4057,7 @@ def attn_forward_func_with_cp(
cp_group = cp_group[0]
cp_comm_type = "a2a"
else:
assert isinstance(cp_group, dist_group_type), "Unsupported process group for non-hierarchical CP implementation!"
assert isinstance(cp_group, dist_group_type), f"Unsupported process group for CP communication type {cp_comm_type}!"

assert qkv_format in [
"bshd",
Expand Down

0 comments on commit 1655edc

Please sign in to comment.