Archived
libr4d: rmsnorm_quant_i8g, gelu_mul_quant_i8g and ar_rmsnorm_quant_i8g -- the junctions at quant_act_i8g's grid
The norm junction (post-norm, residual add, scalar, norm), the gelu product and the two-rank all-reduce junction with quant_act_i8g's quantiser in place of quant_act_i8's: row-major int8 codes and an f32 scale per (row, 128 columns), what gemm_nt_q reads at i8a8, w4a8i8_asym and w5a8i8. The kernels are rmsnorm_quant_i8's and gelu_mul_quant_i8's; only the epilogue over the staged bf16 row differs (r4d_q8.h, q8_row_i8g: quant_act_i8g's mapping and rule), so each is byte-identical to its chain ending in quant_act_i8g. out_bf16 may be x's own buffer. No four-rank form: a four-rank caller finds no row and issues the all-reduce apart. r4d_selftest: rmsnorm_quant_i8g, gelu_mul_quant_i8g and ar_rmsnorm_quant_i8g (two cards) against their chains, the junction also with out_bf16 over x.
This commit is contained in:
1 parent
141212dd88
commit
b55791b398
9 files changed
+387
-133
No files matched your search
@@ -567,9 +567,12 @@ int r4d_rad_layout_any(const RadParam*, int, int, const RadEncoding*, const int*
|
||||
const RadTensor*, int, RadLayout*);
|
||||
int r4d_rad_qkv_norm_rope_kv_store(const RadArgs*, RadStream);
|
||||
int r4d_rad_gelu_mul_quant_i8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_gelu_mul_quant_i8g (const RadArgs*, RadStream);
|
||||
int r4d_rad_ar_rmsnorm_quant_i8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_ar_rmsnorm_quant_i8g (const RadArgs*, RadStream);
|
||||
int r4d_rad_ar_rmsnorm_quant_i8_4rank(const RadArgs*, RadStream);
|
||||
int r4d_rad_rmsnorm_quant_i8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_rmsnorm_quant_i8g (const RadArgs*, RadStream);
|
||||
int r4d_rad_had_quant_act_i8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_rmsnorm_had_quant_i8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_gated_had_quant_i8 (const RadArgs*, RadStream);
|
||||
|
||||
Reference in new issue
Block a user