Skip to content
Open
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 @@ -175,6 +175,11 @@ def validate_uneven_dtensor(dtensor: DTensor) -> None:
)

# Check that all boundaries (start and end) are touched.
# Skip under fake process group — all_reduce is a no-op so only rank 0's
# boundaries are visible, which makes the end-boundary check always fail.
if torch.distributed.is_initialized() and torch.distributed.get_backend() == 'fake':
return

boundary_checks = torch.tensor(
[
[offset == 0, offset + size == dtensor.shape[dim]]
Expand Down
Loading