Adds the six audited assets (head_native, original_verify_qsa, router, gr_post, gr_norm, ple_native_batch) as an atomic reseal group built with --use_fast_math, re-pins their old digests (incl. ple PTX_BYTES) and window-plan hex, and a generic --flag-override recorded in the manifest and re-applied by the sealer. compile_assets --isa-inventory/--driver-check and run_gpu_smokes.sh refuse a driver older than the highest PTX ISA in the tree (9.0 needs >= 580.65.06). Runbook: mandatory reseal + golden comparison section, step d' (linux-tests). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
273 lines
11 KiB
JSON
273 lines
11 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"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|