Archived
libr4d: gelu_mul_quant_i8 -- gelu(gate)*up and the w4a8 activation quantiser in one pass
The down projection of a GELU-gated feed-forward on a w4a8 grid is fed by gelu_mul then quant_act_i8, two single-row dispatches at a decode batch. gelu_mul_quant_i8 is the pair in one pass, byte-identical to it: the product formed as gelu_mul_kernel forms it (tanh form, bf16 store), then quant_act_i8's partition. The selftest compares it against the pair at M 1/4/40.
This commit is contained in:
1 parent
d90d90e43a
commit
0a4cf9b893
6 files changed
+185
No files matched your search
@@ -388,6 +388,9 @@ spelling of `act`, not the vocabulary's.
|
||||
| `gated_had_quant_fp8` | `M` `n` `group` `dtype` `act`:str/opt | `gate_up` → `q`, `scale`, `out_bf16`? |
|
||||
| `gate_quant_fp8` | `M` `n` `group` `dtype` `act`:str/opt | `gate`, `x` → `q`, `scale`, `out_bf16`? |
|
||||
| `rmsnorm_quant_i8` | `M` `n` `eps`:f64 `dtype` `wadd`:f64/opt | `x`, `residual`:inout?, `w`w → `q`, `scale`, `out_bf16`?; `w_post`w?, `scalar`w? |
|
||||
| `gelu_mul_quant_i8` | `M` `n` `dtype` | `gate_up` → `q`, `scale`, `out_bf16`? |
|
||||
|
||||
`gelu_mul_quant_i8` is `gelu_mul` with the same quantiser on its pass, byte-identical to the pair.
|
||||
|
||||
`rmsnorm_quant_i8` is `rmsnorm` with `quant_act_i8`'s quantiser on its pass — fragment-order int8
|
||||
codes and one f32 scale per row, the grid `gemm_nt_q` reads at `dtype=w4a8`. With `residual` the
|
||||
|
||||
Reference in new issue
Block a user