Archived
libref: swiglu_step, router_sigmoid_group_topk and mla_attn_paged
Three ops Ling-3.0 needs, with their references, OPS.md entries and ref_test cases. swiglu_step is the SwiGLU clipped after the SiLU, as vLLM and SGLang serve Ling-3.0. router_sigmoid_group_topk is noaux_tc routing with groups: a group ranks by the sum of its two best biased scores and only the best groups' experts are candidates. mla_attn_paged is dense causal latent attention over a paged cache whose row is the latent then the rotated key part, with an optional head-wise sigmoid gate; it refuses zero rows and reads a gate row at the gate's own pitch.
This commit is contained in:
1 parent
9c5d4a656c
commit
7169c9da0a
7 files changed
+365
-2
No files matched your search
@@ -77,12 +77,15 @@ int ref_mul (const RadArgs*, RadStream);
|
||||
int ref_silu_mul (const RadArgs*, RadStream);
|
||||
int ref_swiglu_clamped (const RadArgs*, RadStream);
|
||||
int ref_router_sigmoid_topk(const RadArgs*, RadStream);
|
||||
int ref_router_sigmoid_group_topk(const RadArgs*, RadStream);
|
||||
int ref_swiglu_step (const RadArgs*, RadStream);
|
||||
int ref_dsa_pool(const RadArgs*, RadStream);
|
||||
int ref_dsa_query(const RadArgs*, RadStream);
|
||||
int ref_gemm_nt_f32(const RadArgs*, RadStream);
|
||||
int ref_mla_project(const RadArgs*, RadStream);
|
||||
int ref_dsa_score(const RadArgs*, RadStream);
|
||||
int ref_mla_attn(const RadArgs*, RadStream);
|
||||
int ref_mla_attn_paged(const RadArgs*, RadStream);
|
||||
int ref_gelu_mul (const RadArgs*, RadStream);
|
||||
int ref_act_mul (const RadArgs*, RadStream);
|
||||
int ref_mul_weight (const RadArgs*, RadStream);
|
||||
@@ -355,12 +358,15 @@ REF_SHAPE_FN(ref_mul);
|
||||
REF_SHAPE_FN(ref_silu_mul);
|
||||
REF_SHAPE_FN(ref_swiglu_clamped);
|
||||
REF_SHAPE_FN(ref_router_sigmoid_topk);
|
||||
REF_SHAPE_FN(ref_router_sigmoid_group_topk);
|
||||
REF_SHAPE_FN(ref_swiglu_step);
|
||||
REF_SHAPE_FN(ref_dsa_pool);
|
||||
REF_SHAPE_FN(ref_dsa_query);
|
||||
REF_SHAPE_FN(ref_gemm_nt_f32);
|
||||
REF_SHAPE_FN(ref_mla_project);
|
||||
REF_SHAPE_FN(ref_dsa_score);
|
||||
REF_SHAPE_FN(ref_mla_attn);
|
||||
REF_SHAPE_FN(ref_mla_attn_paged);
|
||||
REF_SHAPE_FN(ref_gelu_mul);
|
||||
REF_SHAPE_FN(ref_act_mul);
|
||||
REF_SHAPE_FN(ref_mul_weight);
|
||||
|
||||
Reference in new issue
Block a user