Archived
four-rank ar_hc_write: the exact one-shot with the gated residual's write
At --tp 4 each gated-residual connection ran all_reduce and hc_write_bf16 as two launches. ar_hc_write_4rank fuses them: the wide exact one-shot, reduced in place, with r4d_ar_hc_write_word as its epilogue. It takes the steps the exact one-shot would (under 1 MiB, and under min_bytes on wht6); larger and lossy messages keep the two launches. Two ranks unchanged.
This commit is contained in:
1 parent
f1d4a54581
commit
c36e6fa2b3
10 files changed
+394
-35
No files matched your search
+2
-1
@@ -771,7 +771,8 @@ and the input, and the reduced sum lands in it.
|
||||
`ar_hc_write` is `all_reduce` of `y` followed by `hc_write` of the reduced `y`, for a block whose
|
||||
output feeds a gated residual rather than a norm. `y` is INOUT for the same reason `x` is above.
|
||||
It serves both wires, one op a wire: a caller declares the rotated form beside the exact one and
|
||||
issues whichever the step's message goes out on, and a `wire` of 6 is 6 at every size.
|
||||
issues whichever the step's message goes out on, and a `wire` of 6 is 6 at every size. At four
|
||||
ranks only the exact form exists.
|
||||
|
||||
`ar_gather_hc_write` is `moe_gather` followed by `ar_hc_write`: the gather's output IS the
|
||||
message, so `y` is written by the gather half before it is reduced in place, and the five gather
|
||||
|
||||
Reference in new issue
Block a user