leleka_qsa_topk_wide (also _sample/_wide_failed, measured and not used) in qsa_late.cu; leleka_qsa_topk_cluster in the new sealed asset qsa_cluster.cu (sm_90+, no sm_86 companion); cuLaunchKernelEx plumbing for KernelModule and the verifier window (Launch.cluster); policy.qsa.cluster_topk. Same ids as qsa_topk_ref in every model-free case (continuous, heavy tailed, tied, all equal; prompt tiles of 256 rows and decode calls of 1..5 rows up to 261,500 tokens). LELEKA_QSA_TOPK=wide (prompt, from 10,000 blocks) and LELEKA_QSA_CLUSTER=1 (decode window) switch them on; defaults off until their R gate. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
823 lines
26 KiB
JSON
823 lines
26 KiB
JSON
{
|
|
"schema": 1,
|
|
"note": "Assets that are unsealed placeholders in crates/cuda-driver/src but are covered by none of docs/cuda-seal-plan*.json. Same entry format as those plans (plus group/optional/deferred/entry_prefix_counts/include_profile). Recipes are taken from the placeholder/.cu headers; none has been compiled. Sibling plans carry cu_pin; these entries have none because no pin was ever written, so the compile manifest (cu sha256 at compile time) is the pin. The six reseal-fastmath entries are the verifier reviewer's audit (docs/cuda-seal-plan-additions-window.json numerics_risk_fast_math.audit): they REPLACE already-sealed PTX, so their old digests are re-pinned wherever they appear (repin_expect).",
|
|
"assets": [
|
|
{
|
|
"cu": "crates/cuda-driver/src/kar_decode_levels.cu",
|
|
"ptx": "crates/cuda-driver/src/kar_decode_levels.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--ftz=false",
|
|
"--prec-div=true",
|
|
"--prec-sqrt=true",
|
|
"--fmad=true"
|
|
],
|
|
"policy": "precise (flags quoted from the placeholder header of kar_decode_levels.ptx; no fast-math)",
|
|
"entries": [
|
|
"leleka_kar_decode_levels_f32",
|
|
"leleka_kar_multiply_f32",
|
|
"leleka_kar_swiglu_f32"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"kar_decode_levels.rs": [
|
|
"KAR_DECODE_LEVELS_PIN.source_sha256",
|
|
"KAR_DECODE_LEVELS_PIN.ptx_sha256"
|
|
]
|
|
},
|
|
"group": "kar"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mmq_original_group_swiglu.cu",
|
|
"ptx": "crates/cuda-driver/src/mmq_original_group_swiglu.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--use_fast_math",
|
|
"--extended-lambda"
|
|
],
|
|
"policy": "fast-math, flags quoted from the sibling mmq_original_group_{mul,fixup}.cu header ('ROOT must compile sm120 --use_fast_math'); swiglu itself uses explicit __expf. UNVERIFIED against engine/strata CMake: decide before sealing.",
|
|
"entries": [
|
|
"leleka_original_mmq_swiglu",
|
|
"leleka_original_mmq_gather",
|
|
"leleka_original_mmq_gu_finite"
|
|
],
|
|
"encoding": "include_bytes",
|
|
"include_profile": "standard",
|
|
"rust_fields_to_fill": {
|
|
"mmq_original_group.rs": [
|
|
"SEALED[0]"
|
|
]
|
|
},
|
|
"group": "mmq_group",
|
|
"optional": true,
|
|
"atomic_group": "mmq_group"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mmq_original_group_mul.cu",
|
|
"ptx": "crates/cuda-driver/src/mmq_original_group_mul.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--use_fast_math",
|
|
"--extended-lambda"
|
|
],
|
|
"policy": "fast-math, flags quoted from the .cu header and the stra169 mmq-original-formats recipe (--use_fast_math --extended-lambda). UNVERIFIED: decide before sealing.",
|
|
"entry_prefix_counts": {
|
|
"_Z9mul_mat_q": 66
|
|
},
|
|
"encoding": "include_bytes",
|
|
"include_profile": "standard",
|
|
"rust_fields_to_fill": {
|
|
"mmq_original_group.rs": [
|
|
"SEALED[1]"
|
|
]
|
|
},
|
|
"group": "mmq_group",
|
|
"optional": true,
|
|
"atomic_group": "mmq_group"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mmq_original_group_fixup.cu",
|
|
"ptx": "crates/cuda-driver/src/mmq_original_group_fixup.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--use_fast_math",
|
|
"--extended-lambda"
|
|
],
|
|
"policy": "fast-math, flags quoted from the .cu header and the stra169 mmq-original-formats-fixup recipe. UNVERIFIED: decide before sealing.",
|
|
"entry_prefix_counts": {
|
|
"_Z24mul_mat_q_stream_k_fixup": 66
|
|
},
|
|
"encoding": "include_bytes",
|
|
"include_profile": "standard",
|
|
"rust_fields_to_fill": {
|
|
"mmq_original_group.rs": [
|
|
"SEALED[2]"
|
|
]
|
|
},
|
|
"group": "mmq_group",
|
|
"optional": true,
|
|
"atomic_group": "mmq_group"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mtp_original_scalar_norm.cu",
|
|
"ptx": "crates/cuda-driver/src/mtp_original_scalar_norm.ptx",
|
|
"flags": [],
|
|
"deferred": "placeholder says 'literal Original scalar MTP assets; no executable entry'. No recipe exists in any plan; the scalar MTP prefill path (mtp_original_scalar_prefill.rs) stays fail-closed.",
|
|
"group": "scalar_mtp"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mtp_original_scalar_gr.cu",
|
|
"ptx": "crates/cuda-driver/src/mtp_original_scalar_gr.ptx",
|
|
"flags": [],
|
|
"deferred": "placeholder says 'literal Original scalar MTP assets; no executable entry'. The .cu is a host+device translation unit (fused_gr.cu with <random>, <cstdio>, Strata headers), not a PTX-only source; needs a decision by the owner.",
|
|
"group": "scalar_mtp"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/native_parity.cu",
|
|
"ptx": "crates/cuda-driver/src/native_parity.ptx",
|
|
"flags": [],
|
|
"deferred": "placeholder says 'compile native_parity.cu using pinned Original headers and flags. No executable entries.' Parity oracle source (iq_kernels.cu derivative); not needed for serving.",
|
|
"group": "native_parity"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mtp_original_full_head_native.cu",
|
|
"ptx": "crates/cuda-driver/src/mtp_original_full_head_native.ptx",
|
|
"flags": [
|
|
"--ptx",
|
|
"-std=c++17",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"--fmad=true",
|
|
"--use_fast_math"
|
|
],
|
|
"policy": "fast-math RESEAL: the Original compiles native_mmvq.cu quantize_q8_1 (head_quant) with --use_fast_math (native_mmvq on the CMake fast-math list); the copy sealed by scripts/build-original-verify-ptx.sh used the non-fast flags. Audit: head_quant has two div.rn.f32 where the Original emits div.full.f32.",
|
|
"encoding": "include_bytes",
|
|
"group": "reseal-fastmath",
|
|
"atomic_group": "reseal-fastmath",
|
|
"mandatory": true,
|
|
"repin_expect": {
|
|
"crates/cuda-driver/src/original_verify_window_proj.rs": 1
|
|
},
|
|
"include_profile": "standard",
|
|
"entries_from_symbols": true
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/original_verify_qsa.cu",
|
|
"ptx": "crates/cuda-driver/src/original_verify_qsa.ptx",
|
|
"flags": [
|
|
"--ptx",
|
|
"-std=c++17",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"--fmad=true",
|
|
"--use_fast_math"
|
|
],
|
|
"policy": "fast-math RESEAL: the Original compiles native_qsa_indexer.cu append<false> with --use_fast_math (native_qsa_indexer on the CMake fast-math list); the copy sealed by scripts/build-original-verify-ptx.sh used the non-fast flags. Audit: powf/cosf/sinf are the libm forms here, __powf/cos.approx/sin.approx in the Original.",
|
|
"encoding": "concat_include_str",
|
|
"group": "reseal-fastmath",
|
|
"atomic_group": "reseal-fastmath",
|
|
"mandatory": true,
|
|
"repin_expect": {
|
|
"crates/cuda-driver/src/original_verify.rs": 1
|
|
},
|
|
"include_profile": "standard",
|
|
"entries": [
|
|
"verify_qsa_append_analytic",
|
|
"verify_qsa_append_table"
|
|
]
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mtp_original_full_router.cu",
|
|
"ptx": "crates/cuda-driver/src/mtp_original_full_router.ptx",
|
|
"flags": [
|
|
"--ptx",
|
|
"-std=c++17",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"--fmad=true",
|
|
"--use_fast_math"
|
|
],
|
|
"policy": "fast-math RESEAL: the Original compiles native_router.cu route with --use_fast_math (native_router on the CMake fast-math list); the copy sealed by scripts/build-original-verify-ptx.sh used the non-fast flags. Audit: expf and reciprocal.",
|
|
"encoding": "include_bytes",
|
|
"group": "reseal-fastmath",
|
|
"atomic_group": "reseal-fastmath",
|
|
"mandatory": true,
|
|
"repin_expect": {
|
|
"crates/cuda-driver/src/original_verify_window_moe.rs": 1
|
|
},
|
|
"include_profile": "standard",
|
|
"entries_from_symbols": true
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mtp_original_full_gr_post.cu",
|
|
"ptx": "crates/cuda-driver/src/mtp_original_full_gr_post.ptx",
|
|
"flags": [
|
|
"--ptx",
|
|
"-std=c++17",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"--fmad=true",
|
|
"--use_fast_math"
|
|
],
|
|
"policy": "fast-math RESEAL: the Original compiles native_gr_postops.cu with --use_fast_math (native_gr_postops on the CMake fast-math list); the copy sealed by scripts/build-original-verify-ptx.sh used the non-fast flags. Audit: sigmoid/silu expf and division.",
|
|
"encoding": "include_bytes",
|
|
"group": "reseal-fastmath",
|
|
"atomic_group": "reseal-fastmath",
|
|
"mandatory": true,
|
|
"repin_expect": {
|
|
"crates/cuda-driver/src/original_verify_window_gr.rs": 1
|
|
},
|
|
"include_profile": "standard",
|
|
"entries_from_symbols": true
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mtp_original_full_gr_norm.cu",
|
|
"ptx": "crates/cuda-driver/src/mtp_original_full_gr_norm.ptx",
|
|
"flags": [
|
|
"--ptx",
|
|
"-std=c++17",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"--fmad=true",
|
|
"--use_fast_math"
|
|
],
|
|
"policy": "fast-math RESEAL: the Original compiles native_gr_norm.cu weighted_rms_norm with --use_fast_math (native_gr_norm on the CMake fast-math list); the copy sealed by scripts/build-original-verify-ptx.sh used the non-fast flags. Audit: mean = partial / n_cols.",
|
|
"encoding": "include_bytes",
|
|
"group": "reseal-fastmath",
|
|
"atomic_group": "reseal-fastmath",
|
|
"mandatory": true,
|
|
"repin_expect": {
|
|
"crates/cuda-driver/src/original_verify_window_gr.rs": 1
|
|
},
|
|
"include_profile": "standard",
|
|
"entries_from_symbols": true
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/ple_native_batch.cu",
|
|
"ptx": "crates/cuda-driver/src/ple_native_batch.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"--use_fast_math"
|
|
],
|
|
"policy": "fast-math RESEAL: the Original compiles native_ple_postops.cu with --use_fast_math (native_ple_postops on the CMake fast-math list); the copy sealed by scripts/build-original-verify-ptx.sh used the non-fast flags. Audit: sqrtf/expf/division. Only with a PLE block. Recipe: the stra169 plan's flags plus --use_fast_math (no -std, no includes).",
|
|
"encoding": "concat_include_str",
|
|
"group": "reseal-fastmath",
|
|
"atomic_group": "reseal-fastmath",
|
|
"mandatory": true,
|
|
"repin_expect": {
|
|
"crates/cuda-driver/src/original_verify_window_gr.rs": 1,
|
|
"crates/cuda-driver/src/ple_batch_queue.rs": 1
|
|
},
|
|
"rust_fields_to_fill": {
|
|
"ple_batch_queue.rs": [
|
|
"PTX_BYTES"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/native_head_native.cu",
|
|
"ptx": "crates/cuda-driver/src/native_head_native.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--use_fast_math"
|
|
],
|
|
"policy": "native_mmvq.cu/native_bf16.cu are --use_fast_math in engine/strata/CMakeLists.txt; native head kernels adapt ggml mmvq/quantize",
|
|
"entries": [
|
|
"head_n11_s0",
|
|
"head_n11_s1",
|
|
"head_n11_t2_large",
|
|
"head_n11_t2_small",
|
|
"head_n11_t2_upstream",
|
|
"head_n11_t3_large",
|
|
"head_n11_t3_small",
|
|
"head_n11_t3_upstream",
|
|
"head_n11_t4_large",
|
|
"head_n11_t4_small",
|
|
"head_n11_t4_upstream",
|
|
"head_n11_t5_large",
|
|
"head_n11_t5_small",
|
|
"head_n11_t5_upstream",
|
|
"head_n11_t6_large",
|
|
"head_n11_t6_small",
|
|
"head_n11_t6_upstream",
|
|
"head_n11_t7_large",
|
|
"head_n11_t7_small",
|
|
"head_n11_t7_upstream",
|
|
"head_n11_t8_large",
|
|
"head_n11_t8_small",
|
|
"head_n11_t8_upstream",
|
|
"head_n12_s0",
|
|
"head_n12_s1",
|
|
"head_n12_t2_large",
|
|
"head_n12_t2_small",
|
|
"head_n12_t2_upstream",
|
|
"head_n12_t3_large",
|
|
"head_n12_t3_small",
|
|
"head_n12_t3_upstream",
|
|
"head_n12_t4_large",
|
|
"head_n12_t4_small",
|
|
"head_n12_t4_upstream",
|
|
"head_n12_t5_large",
|
|
"head_n12_t5_small",
|
|
"head_n12_t5_upstream",
|
|
"head_n12_t6_large",
|
|
"head_n12_t6_small",
|
|
"head_n12_t6_upstream",
|
|
"head_n12_t7_large",
|
|
"head_n12_t7_small",
|
|
"head_n12_t7_upstream",
|
|
"head_n12_t8_large",
|
|
"head_n12_t8_small",
|
|
"head_n12_t8_upstream",
|
|
"head_n13_s0",
|
|
"head_n13_s1",
|
|
"head_n13_t2_large",
|
|
"head_n13_t2_small",
|
|
"head_n13_t2_upstream",
|
|
"head_n13_t3_large",
|
|
"head_n13_t3_small",
|
|
"head_n13_t3_upstream",
|
|
"head_n13_t4_large",
|
|
"head_n13_t4_small",
|
|
"head_n13_t4_upstream",
|
|
"head_n13_t5_large",
|
|
"head_n13_t5_small",
|
|
"head_n13_t5_upstream",
|
|
"head_n13_t6_large",
|
|
"head_n13_t6_small",
|
|
"head_n13_t6_upstream",
|
|
"head_n13_t7_large",
|
|
"head_n13_t7_small",
|
|
"head_n13_t7_upstream",
|
|
"head_n13_t8_large",
|
|
"head_n13_t8_small",
|
|
"head_n13_t8_upstream",
|
|
"head_n14_s0",
|
|
"head_n14_s1",
|
|
"head_n14_t2_large",
|
|
"head_n14_t2_small",
|
|
"head_n14_t2_upstream",
|
|
"head_n14_t3_large",
|
|
"head_n14_t3_small",
|
|
"head_n14_t3_upstream",
|
|
"head_n14_t4_large",
|
|
"head_n14_t4_small",
|
|
"head_n14_t4_upstream",
|
|
"head_n14_t5_large",
|
|
"head_n14_t5_small",
|
|
"head_n14_t5_upstream",
|
|
"head_n14_t6_large",
|
|
"head_n14_t6_small",
|
|
"head_n14_t6_upstream",
|
|
"head_n14_t7_large",
|
|
"head_n14_t7_small",
|
|
"head_n14_t7_upstream",
|
|
"head_n14_t8_large",
|
|
"head_n14_t8_small",
|
|
"head_n14_t8_upstream",
|
|
"head_n20_s0",
|
|
"head_n20_s1",
|
|
"head_n20_t2_large",
|
|
"head_n20_t2_small",
|
|
"head_n20_t2_upstream",
|
|
"head_n20_t3_large",
|
|
"head_n20_t3_small",
|
|
"head_n20_t3_upstream",
|
|
"head_n20_t4_large",
|
|
"head_n20_t4_small",
|
|
"head_n20_t4_upstream",
|
|
"head_n20_t5_large",
|
|
"head_n20_t5_small",
|
|
"head_n20_t5_upstream",
|
|
"head_n20_t6_large",
|
|
"head_n20_t6_small",
|
|
"head_n20_t6_upstream",
|
|
"head_n20_t7_large",
|
|
"head_n20_t7_small",
|
|
"head_n20_t7_upstream",
|
|
"head_n20_t8_large",
|
|
"head_n20_t8_small",
|
|
"head_n20_t8_upstream",
|
|
"head_n23_s0",
|
|
"head_n23_s1",
|
|
"head_n23_t2_large",
|
|
"head_n23_t2_small",
|
|
"head_n23_t2_upstream",
|
|
"head_n23_t3_large",
|
|
"head_n23_t3_small",
|
|
"head_n23_t3_upstream",
|
|
"head_n23_t4_large",
|
|
"head_n23_t4_small",
|
|
"head_n23_t4_upstream",
|
|
"head_n23_t5_large",
|
|
"head_n23_t5_small",
|
|
"head_n23_t5_upstream",
|
|
"head_n23_t6_large",
|
|
"head_n23_t6_small",
|
|
"head_n23_t6_upstream",
|
|
"head_n23_t7_large",
|
|
"head_n23_t7_small",
|
|
"head_n23_t7_upstream",
|
|
"head_n23_t8_large",
|
|
"head_n23_t8_small",
|
|
"head_n23_t8_upstream",
|
|
"head_n2_s0",
|
|
"head_n2_s1",
|
|
"head_n2_t2_large",
|
|
"head_n2_t2_small",
|
|
"head_n2_t2_upstream",
|
|
"head_n2_t3_large",
|
|
"head_n2_t3_small",
|
|
"head_n2_t3_upstream",
|
|
"head_n2_t4_large",
|
|
"head_n2_t4_small",
|
|
"head_n2_t4_upstream",
|
|
"head_n2_t5_large",
|
|
"head_n2_t5_small",
|
|
"head_n2_t5_upstream",
|
|
"head_n2_t6_large",
|
|
"head_n2_t6_small",
|
|
"head_n2_t6_upstream",
|
|
"head_n2_t7_large",
|
|
"head_n2_t7_small",
|
|
"head_n2_t7_upstream",
|
|
"head_n2_t8_large",
|
|
"head_n2_t8_small",
|
|
"head_n2_t8_upstream",
|
|
"head_n42_s0",
|
|
"head_n42_s1",
|
|
"head_n42_t2_large",
|
|
"head_n42_t2_small",
|
|
"head_n42_t2_upstream",
|
|
"head_n42_t3_large",
|
|
"head_n42_t3_small",
|
|
"head_n42_t3_upstream",
|
|
"head_n42_t4_large",
|
|
"head_n42_t4_small",
|
|
"head_n42_t4_upstream",
|
|
"head_n42_t5_large",
|
|
"head_n42_t5_small",
|
|
"head_n42_t5_upstream",
|
|
"head_n42_t6_large",
|
|
"head_n42_t6_small",
|
|
"head_n42_t6_upstream",
|
|
"head_n42_t7_large",
|
|
"head_n42_t7_small",
|
|
"head_n42_t7_upstream",
|
|
"head_n42_t8_large",
|
|
"head_n42_t8_small",
|
|
"head_n42_t8_upstream",
|
|
"head_n6_s0",
|
|
"head_n6_s1",
|
|
"head_n6_t2_large",
|
|
"head_n6_t2_small",
|
|
"head_n6_t2_upstream",
|
|
"head_n6_t3_large",
|
|
"head_n6_t3_small",
|
|
"head_n6_t3_upstream",
|
|
"head_n6_t4_large",
|
|
"head_n6_t4_small",
|
|
"head_n6_t4_upstream",
|
|
"head_n6_t5_large",
|
|
"head_n6_t5_small",
|
|
"head_n6_t5_upstream",
|
|
"head_n6_t6_large",
|
|
"head_n6_t6_small",
|
|
"head_n6_t6_upstream",
|
|
"head_n6_t7_large",
|
|
"head_n6_t7_small",
|
|
"head_n6_t7_upstream",
|
|
"head_n6_t8_large",
|
|
"head_n6_t8_small",
|
|
"head_n6_t8_upstream",
|
|
"head_n8_s0",
|
|
"head_n8_s1",
|
|
"head_n8_t2_large",
|
|
"head_n8_t2_small",
|
|
"head_n8_t2_upstream",
|
|
"head_n8_t3_large",
|
|
"head_n8_t3_small",
|
|
"head_n8_t3_upstream",
|
|
"head_n8_t4_large",
|
|
"head_n8_t4_small",
|
|
"head_n8_t4_upstream",
|
|
"head_n8_t5_large",
|
|
"head_n8_t5_small",
|
|
"head_n8_t5_upstream",
|
|
"head_n8_t6_large",
|
|
"head_n8_t6_small",
|
|
"head_n8_t6_upstream",
|
|
"head_n8_t7_large",
|
|
"head_n8_t7_small",
|
|
"head_n8_t7_upstream",
|
|
"head_n8_t8_large",
|
|
"head_n8_t8_small",
|
|
"head_n8_t8_upstream",
|
|
"head_quant"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"native_head.rs": [
|
|
"NATIVE_ASSET_PIN"
|
|
]
|
|
},
|
|
"group": "serve-assets",
|
|
"optional": false,
|
|
"include_profile": "standard"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/native_head_iq.cu",
|
|
"ptx": "crates/cuda-driver/src/native_head_iq.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--use_fast_math"
|
|
],
|
|
"policy": "same native_mmvq.cu fast-math policy (IQ dot products)",
|
|
"entries": [
|
|
"head_embed_one",
|
|
"head_embed_rows",
|
|
"head_i16_c1",
|
|
"head_i16_c2",
|
|
"head_i16_c4",
|
|
"head_i16_c8",
|
|
"head_i16_old",
|
|
"head_i17_c1",
|
|
"head_i17_c2",
|
|
"head_i17_c4",
|
|
"head_i17_c8",
|
|
"head_i17_old",
|
|
"head_i18_c1",
|
|
"head_i18_c2",
|
|
"head_i18_c4",
|
|
"head_i18_c8",
|
|
"head_i18_old",
|
|
"head_i21_c1",
|
|
"head_i21_c2",
|
|
"head_i21_c4",
|
|
"head_i21_c8",
|
|
"head_i21_old",
|
|
"head_i22_c1",
|
|
"head_i22_c2",
|
|
"head_i22_c4",
|
|
"head_i22_c8",
|
|
"head_i22_old",
|
|
"head_i29_c1",
|
|
"head_i29_c2",
|
|
"head_i29_c4",
|
|
"head_i29_c8",
|
|
"head_i29_old",
|
|
"head_i7_old"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"native_head.rs": [
|
|
"IQ_ASSET_PIN"
|
|
]
|
|
},
|
|
"group": "serve-assets",
|
|
"optional": false,
|
|
"include_profile": "standard"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/native_head_sampler.cu",
|
|
"ptx": "crates/cuda-driver/src/native_head_sampler.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17"
|
|
],
|
|
"policy": "Original sampler is not in the CMake fast-math list",
|
|
"entries": [
|
|
"sampler_greedy_kernel",
|
|
"sampler_kernel",
|
|
"sampler_one_block_kernel",
|
|
"sampler_split_merge_kernel",
|
|
"sampler_split_part_kernel"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"native_head.rs": [
|
|
"SAMPLER_ASSET_PIN"
|
|
]
|
|
},
|
|
"group": "serve-assets",
|
|
"optional": false,
|
|
"include_profile": "standard"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/original_sampler.cu",
|
|
"ptx": "crates/cuda-driver/src/original_sampler.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17"
|
|
],
|
|
"policy": "Original sampler is not in the CMake fast-math list",
|
|
"entries": [
|
|
"coupled_merge_kernel",
|
|
"coupled_penalize_kernel",
|
|
"coupled_stage_kernel",
|
|
"sampler_greedy_kernel",
|
|
"sampler_kernel",
|
|
"sampler_one_block_kernel",
|
|
"sampler_split_merge_kernel",
|
|
"sampler_split_part_kernel"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"original_sampler.rs": [
|
|
"ASSET_PIN"
|
|
]
|
|
},
|
|
"group": "serve-assets",
|
|
"optional": false,
|
|
"include_profile": "standard"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mtp_original_session_native_rope.cu",
|
|
"ptx": "crates/cuda-driver/src/mtp_original_session_native_rope.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--use_fast_math"
|
|
],
|
|
"policy": "native_rope.cu is in the CMake fast-math list; UNVERIFIED mapping, confirm against the Original rope kernel before sealing",
|
|
"entries": [
|
|
"mtp_session_analytic",
|
|
"mtp_session_table"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"mtp_original_session.rs": [
|
|
"SESSION_NATIVE_ASSET_PIN"
|
|
]
|
|
},
|
|
"group": "serve-assets",
|
|
"optional": false,
|
|
"include_profile": "standard"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/mtp_original_session_legacy_rope.cu",
|
|
"ptx": "crates/cuda-driver/src/mtp_original_session_legacy_rope.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--use_fast_math"
|
|
],
|
|
"policy": "legacy rope table kernel follows native_rope.cu fast-math policy; UNVERIFIED mapping, confirm before sealing",
|
|
"entries": [
|
|
"mtp_session_legacy"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"mtp_original_session.rs": [
|
|
"SESSION_LEGACY_ASSET_PIN"
|
|
]
|
|
},
|
|
"group": "serve-assets",
|
|
"optional": false,
|
|
"include_profile": "standard"
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/prefill_stage.cu",
|
|
"ptx": "crates/cuda-driver/src/prefill_stage.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--ftz=false",
|
|
"--prec-div=true",
|
|
"--prec-sqrt=true",
|
|
"--fmad=true"
|
|
],
|
|
"policy": "precise (the recipe of kar_decode_levels and the fixed KAR PLE kernels it replaces for chunk-wide use; no fast-math)",
|
|
"entries": [
|
|
"leleka_prefill_ple_scatter",
|
|
"leleka_prefill_ple_decode",
|
|
"leleka_prefill_embed_broadcast",
|
|
"leleka_prefill_gr_norm_rs",
|
|
"leleka_prefill_gr_mix_r",
|
|
"leleka_prefill_gr_write_norm_rs",
|
|
"leleka_prefill_gr_write",
|
|
"leleka_prefill_dequant_q8_0",
|
|
"leleka_prefill_dequant_q4_k",
|
|
"leleka_prefill_dequant_q5_k",
|
|
"leleka_prefill_dequant_q6_k",
|
|
"leleka_prefill_dequant_iq4_nl",
|
|
"leleka_prefill_dequant_iq4_xs",
|
|
"leleka_prefill_gdn_conv_tiled",
|
|
"leleka_prefill_gdn_l2",
|
|
"leleka_prefill_gdn_out_norm",
|
|
"leleka_prefill_gdn_rec"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"prefill_stage.rs": [
|
|
"PIN.source_sha256",
|
|
"PIN.ptx_sha256"
|
|
]
|
|
},
|
|
"group": "prefill-stage",
|
|
"optional": false
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/chain_window.cu",
|
|
"ptx": "crates/cuda-driver/src/chain_window.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, mtp_original_full_fused_gr.cu and mtp_original_full_attention.cu, whose kernels these replace bit for bit)",
|
|
"entries": [
|
|
"chain_copy_i32_from_mapped_kernel",
|
|
"chain_wait_copy_i32_kernel",
|
|
"chain_copy_rows_from_mapped_kernel",
|
|
"chain_doorbell_publish_kernel",
|
|
"chain_gdn_ab_multi_kernel",
|
|
"chain_gr_split",
|
|
"chain_gr_up16",
|
|
"chain_gr_up8",
|
|
"chain_qsa_decode_chunk"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"original_verify_window_chain.rs": [
|
|
"CHAIN.sha"
|
|
]
|
|
},
|
|
"group": "chain-window",
|
|
"optional": false
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/qsa_late.cu",
|
|
"ptx": "crates/cuda-driver/src/qsa_late.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--ftz=false",
|
|
"--prec-div=true",
|
|
"--prec-sqrt=true",
|
|
"--fmad=true"
|
|
],
|
|
"policy": "precise (integer and comparison arithmetic only; the recipe of prefill_stage)",
|
|
"entries": [
|
|
"leleka_qsa_topk_fast",
|
|
"leleka_qsa_score_scan_fast",
|
|
"leleka_qsa_topk_wide",
|
|
"leleka_qsa_topk_wide_failed",
|
|
"leleka_qsa_topk_sample"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"qsa_late.rs": [
|
|
"PIN.source_sha256",
|
|
"PIN.ptx_sha256"
|
|
]
|
|
},
|
|
"group": "qsa-late",
|
|
"optional": false
|
|
},
|
|
{
|
|
"cu": "crates/cuda-driver/src/qsa_cluster.cu",
|
|
"ptx": "crates/cuda-driver/src/qsa_cluster.ptx",
|
|
"flags": [
|
|
"-ptx",
|
|
"-O3",
|
|
"-arch=sm_120",
|
|
"-std=c++17",
|
|
"--ftz=false",
|
|
"--prec-div=true",
|
|
"--prec-sqrt=true",
|
|
"--fmad=true"
|
|
],
|
|
"policy": "precise (integer and comparison arithmetic only; sm_90+ cluster barriers, no sm_86 companion)",
|
|
"entries": [
|
|
"leleka_qsa_topk_cluster"
|
|
],
|
|
"encoding": "concat_include_str",
|
|
"rust_fields_to_fill": {
|
|
"qsa_cluster.rs": [
|
|
"PIN.source_sha256",
|
|
"PIN.ptx_sha256"
|
|
]
|
|
},
|
|
"group": "qsa-cluster",
|
|
"optional": false
|
|
}
|
|
]
|
|
}
|