You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The StreamBroadcast implementation includes mesh validation requiring sender and receiver meshes to be identical. This is checked with NVF_ERROR_EQ but the error message could be more descriptive about the implications.
NVF_ERROR_EQ(
sender_mesh,
receiver_mesh,
"StreamBroadcast sender and receiver meshes must be the same. Given ",
sender_mesh,
" and ",
receiver_mesh);
The logic for detecting when to use StreamBroadcast involves checking if c_stream_logical_id equals p2c_map.at(p_logical_id). This condition should be documented more clearly as it determines the transition from DIDx -> Stream parallel types.
if (c_stream_logical_id == p2c_map.at(p_logical_id)) {
NVF_CHECK(
same_mesh,
"Broadcast based allgather in stream parallel requires same ""mesh.")
fill_communication_info(
CommunicationType::StreamBroadcast,
p_logical_id,
c_stream_logical_id);
continue;
}
The test has specific requirements that (h * 4) % d == 0 and t % d == 0. These constraints should be documented in comments to help future maintainers understand why these specific divisibility requirements exist.
if (h*4) %d!=0:
pytest.skip(
f"Row-parallel linear requires {h*4} to be divisible by world size {d}."
)
ift%d!=0:
pytest.skip(
f"Column-parallel linear requires {t} to be divisible by world size {d}."
)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.