Verify window: LELEKA_SM120_COMBINE_VEC4 (float4 routed-expert combine) and LELEKA_SM120_HEAD_MIX_MULTI (one multi-token head mix), both off by default

COMBINE_VEC4: new sealed sm_120 asset sm120_combine_vec4.ptx (nvcc 13.2.86), entry leleka_verify_combine_k10_vec4,
upstream combine_k10_vec4 (non-hits form). Same per-element operations as the sealed mtp_full_combine: first
product rounded, nine fmaf in expert order, one add of the shared row. Falls back to the scalar launch when
k != 10, n % 4 != 0 or a row base is not 16-byte aligned. Same launch count as the scalar path.

HEAD_MIX_MULTI: upstream STRATA_HEAD_MIX_MULTI. The final mixer as one multi-token hc read over output_hc_* (the
layer read kernels, apply = false, no inject), 3 launches instead of 5 per token. No new PTX.

Switch DTO CombineHeadKernels (original_verify_window_combine_head.rs) travels beside the GDN policy; the shared
switch file gets two fields. Unit tests (asset seal, PTX arithmetic shape, launch plans, whole-window launch order with
both switches). Model-free byte-compare probe tools/combine-head written, compiled, not run (no GPU). Design and
CUPTI names: docs/experiments/verify-combine-and-head-mix.md

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-11-10 19:08:30 +01:00
co-authored by Claude Sonnet 5.5
parent b56e5afb58
commit b8a74d01dd
22 changed files with 1080 additions and 10 deletions
+25
View File
@@ -1009,6 +1009,31 @@
},
"group": "sm120-decode",
"optional": false
},
{
"cu": "crates/cuda-driver/src/sm120_combine_vec4.cu",
"ptx": "crates/cuda-driver/src/sm120_combine_vec4.ptx",
"flags": [
"-ptx",
"-O3",
"-arch=sm_120",
"-std=c++17",
"--fmad=true",
"--ftz=false"
],
"include_profile": "standard",
"policy": "precise (--fmad=true --ftz=false: the recipe of original_verify.cu; s11-s9-combine-headmix: upstream combine_k10_vec4, the first product rounded then one explicit fmaf per expert in order then the shared add, as the sealed mtp_full_combine does per column)",
"entries": [
"leleka_verify_combine_k10_vec4"
],
"encoding": "concat_include_str",
"rust_fields_to_fill": {
"original_verify_window_combine_head.rs": [
"COMBINE_VEC4.sha"
]
},
"group": "sm120-decode",
"optional": false
}
]
}