Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ def forward_fake(
output_dtype: Optional[torch.dtype] = None,
all_rank_num_tokens: Optional[List[int]] = None,
use_dp_padding: Optional[bool] = None,
alltoall_result_do_sum: bool = True,
**kwargs,
) -> Union[torch.Tensor, List[torch.Tensor]]:
moe_output = super().forward_fake(
Expand All @@ -976,7 +977,7 @@ def forward_fake(
all_rank_num_tokens=all_rank_num_tokens,
use_dp_padding=use_dp_padding,
**kwargs)
if self.alltoall_method_type == AlltoallMethodType.MNNVL:
if self.alltoall_method_type == AlltoallMethodType.NVLinkTwoSided and not alltoall_result_do_sum:
shape = moe_output.shape
top_k = self.routing_method.experts_per_token
new_shape = [shape[0], top_k, shape[1]]
Expand Down
4 changes: 0 additions & 4 deletions tests/unittest/_torch/modules/test_fused_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,6 @@ def per_rank_test_fused_moe_alltoall(job_id):
],
ids=lambda s: s.name)
def test_fused_moe_alltoall_fp4(alltoall_method_type):

if alltoall_method_type == AlltoallMethodType.DeepEPLowLatency:
pytest.skip("Skipped due to https://nvbugs/5467531")

world_size = 4
dtype = torch.bfloat16
HIDDEN_SIZE = 4096
Expand Down