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
@@ -183,6 +183,9 @@ int r4d_rad_ar_ln_init(const RadParam*, int, int rank, int world, void** out);
|
||||
int r4d_rad_ar_ln_had_quant_i8(const RadArgs*, RadStream);
|
||||
int r4d_rad_ar_rmsnorm_quant_fp8(const RadArgs*, RadStream);
|
||||
int r4d_rad_ar_hc_write(const RadArgs*, RadStream);
|
||||
/* ar_hc_write at four ranks, exact wire only, on the plain four-rank all-reduce's instance. */
|
||||
int r4d_rad_ar_hc_wide_init(const RadParam*, int, int rank, int world, void** out);
|
||||
int r4d_rad_ar_hc_write_4rank(const RadArgs*, RadStream);
|
||||
int r4d_rad_ar_gather_hc_write(const RadArgs*, RadStream);
|
||||
int64_t r4d_rad_ar_gather_hc_write_scratch(const RadArgs*);
|
||||
|
||||
|
||||
Reference in new issue
Block a user