ops: ssd_update and ple_conv_bias, Mamba-2's scan and convolution

ssd_update is Mamba-2's selective state update, a token at a time, with kda_update's rollback
contract: per_candidate, or the anchor form (one committed state and a scratch of per-token
records). libref, libavx and a libr4d kernel at a 128-wide state (r4d_ssd.hip, r4d_kda.hip's
register layout). ple_conv_bias is ple_conv with a per-channel bias inside the silu, Mamba-2's
conv1d, an op of its own so ple_conv's callers keep their operand list.

ref_test, avx_check_hand and selftest cases; docs/OPS.md.
This commit is contained in:
keptn42 committed 2026-11-04 22:08:52 +01:00
1 parent 3b278dcec3
commit 63416510a0
21 files changed
+1362 -11

No files matched your search

+2 -2
View File
@@ -73,7 +73,7 @@ int avx_par_force(int threads);
X(hc_read) X(hc_write) X(hc_project) X(mtp_enter) \
X(layernorm) X(mhc_pre) X(mhc_post) X(mhc_contract) \
X(kda_update) X(mhc_pre_partial) X(mhc_pre_finish) \
X(swiglu_clamped) \
X(swiglu_clamped) X(ssd_update) \
X(swiglu_step) \
X(router_sigmoid_topk) \
X(router_sigmoid_group_topk) \
@@ -88,7 +88,7 @@ int avx_par_force(int threads);
X(lili_cand) X(lili_attn) X(lili_factor) X(lili_walk) \
X(mul) X(silu_mul) X(gelu_mul) X(gelu) \
X(silu) X(sigmoid) X(logit_softcap) X(gather_rows) \
X(scatter_rows) X(ngram_ids) \
X(scatter_rows) X(ngram_ids) X(ple_conv_bias) \
X(ple_gate) X(ple_conv) X(cast) X(softmax) \
X(scale_rows) X(scale) X(fill) X(act_mul) \
X(seg_mean_bf16_sum) \