`wai_ops::bounds` applies §8.1–§8.3 rule by rule in 512-bit arithmetic, saturating after every primitive operation and marking the node; classes each intermediate and producer result (§7.1), checks the parameter conditions (§7.2), finds the first failure and the accelerator verdict, and writes the certificate canonically (§8.5). Admissible ranges (§8.4) and the clamps they propose are there for `--advise`. `graph::load` now takes the implementation's profile and runs step 8: the pass, `lut16`'s range check, an empty `check` intersection, and the profile against the verdict. The `uncertified` switch is gone, with the generator's own tagger: the generator and the vector recomputation take `load` and `profiles` from the certifier, and reproduce every committed vector. Every set the corpus lowers now has its certificate beside its lowered graphs, and the two falsification sets of §14.3 (an int_synth set one unit past i64, and one whose pin claims acc32 and that is one weight past it) are generated, lowered and certified, listed in certificates/falsification.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 line
No EOL
8.8 KiB
JSON
1 line
No EOL
8.8 KiB
JSON
{"capability":"wai.world.model","certificate":"wai-ops/1 bounds","graphs":[{"graph_sha256":"18e66cbe2d937c5aa81b0d1f88eba57fa0a1baf305283025540e56a0523143ee","inputs":[{"hi":"9223372036854775807","kind":"data","lo":"-9223372036854775808","max_h":"0","max_w":"0","policy":"check","tensor":"0"}],"name":"T","nodes":[{"acc32_params":[],"fits":["acc64"],"index":"0","intermediates":{},"npu_flags":[],"op":"fill","out":[{"bits":"64","hi":"9223372036854775807","lo":"-9223372036854775808","policy":"derived","result":{"bits":"64","hi":"9223372036854775807","lo":"-9223372036854775808"},"tensor":"1"}],"saturated":false},{"acc32_params":[],"fits":["acc64"],"index":"1","intermediates":{},"npu_flags":[],"op":"fill","out":[{"bits":"64","hi":"9223372036854775807","lo":"-9223372036854775808","policy":"derived","result":{"bits":"64","hi":"9223372036854775807","lo":"-9223372036854775808"},"tensor":"2"}],"saturated":false},{"acc32_params":[],"fits":["acc64"],"index":"2","intermediates":{},"npu_flags":[],"op":"fill","out":[{"bits":"64","hi":"9223372036854775807","lo":"-9223372036854775808","policy":"derived","result":{"bits":"64","hi":"9223372036854775807","lo":"-9223372036854775808"},"tensor":"3"}],"saturated":false},{"acc32_params":[],"fits":["acc64"],"index":"3","intermediates":{},"npu_flags":[],"op":"concat","out":[{"bits":"46","hi":"18542385699145","lo":"-18542385699145","policy":"check","result":{"bits":"64","hi":"9223372036854775807","lo":"-9223372036854775808"},"tensor":"4"}],"saturated":false},{"acc32_params":[],"fits":["acc64"],"index":"4","intermediates":{"conv.acc":{"bits":"63","hi":"2586996567973312110","lo":"-2586996567973312110"},"conv.term":{"bits":"57","hi":"37956263526149815","lo":"-37956263526149815"},"rq.p":{"bits":"74","hi":"5824415524546952872000","lo":"-5824415524546952872000"},"rq.q":{"bits":"50","hi":"347162218364891","lo":"-347162218364892"},"rq.t":{"bits":"63","hi":"2586996567973312110","lo":"-2586996567973312110"},"rq.y":{"bits":"50","hi":"347162218365489","lo":"-347162218364294"}},"k_c":"0","mac":{"a_bits":["46"],"w_bits":"12"},"npu_flags":["rq_floor_mult","rq_post_bias"],"op":"conv","out":[{"bits":"50","hi":"347162218365489","lo":"-347162218364294","policy":"check","result":{"bits":"50","hi":"347162218365489","lo":"-347162218364294"},"tensor":"5"}],"saturated":false},{"acc32_params":[],"fits":["acc64"],"index":"5","intermediates":{"leaky.p":{"bits":"58","hi":"-410","lo":"-142336509529360540"}},"npu_flags":[],"op":"leaky","out":[{"bits":"46","hi":"20860183911538","lo":"-20860183911538","policy":"check","result":{"bits":"50","hi":"347162218365489","lo":"-34750124396817"},"tensor":"6"}],"saturated":false},{"acc32_params":[],"fits":["acc64"],"index":"6","intermediates":{"conv.acc":{"bits":"63","hi":"2668851929642171720","lo":"-2668851929642171720"},"conv.term":{"bits":"57","hi":"42700796466918286","lo":"-42700796466918286"},"rq.p":{"bits":"73","hi":"4350228812198211195904","lo":"-4350228812198211195904"},"rq.q":{"bits":"49","hi":"259293843042743","lo":"-259293843042744"},"rq.t":{"bits":"63","hi":"2668851929642171720","lo":"-2668851929642171720"},"rq.y":{"bits":"49","hi":"259293843043269","lo":"-259293843042218"}},"k_c":"0","mac":{"a_bits":["46"],"w_bits":"12"},"npu_flags":["rq_floor_mult","rq_post_bias"],"op":"conv","out":[{"bits":"49","hi":"259293843043269","lo":"-259293843042218","policy":"derived","result":{"bits":"49","hi":"259293843043269","lo":"-259293843042218"},"tensor":"7"}],"saturated":false},{"acc32_params":[],"fits":["acc32","acc64"],"index":"7","intermediates":{},"npu_flags":[],"op":"clamp","out":[{"bits":"14","hi":"4096","lo":"-4096","policy":"derived","result":{"bits":"14","hi":"4096","lo":"-4096"},"tensor":"8"}],"saturated":false}],"scalars":[{"hi":"9223372036854775807","index":"0","lo":"-9223372036854775808"},{"hi":"9223372036854775807","index":"1","lo":"-9223372036854775808"},{"hi":"9223372036854775807","index":"2","lo":"-9223372036854775808"}]},{"graph_sha256":"53cece504f3bd9e315a330f98554b77696770c35363e8992c7ab7ee04abcd3fd","inputs":[{"hi":"11733853450240","kind":"data","lo":"-11733853450240","max_h":"0","max_w":"0","policy":"check","tensor":"0"}],"name":"g_s","nodes":[{"acc32_params":[],"fits":["acc64"],"index":"0","intermediates":{"convT.acc":{"bits":"61","hi":"1002024149236695040","lo":"-1002024149236695040"},"convT.term":{"bits":"56","hi":"24019198012641280","lo":"-24019198012641280"},"rq.p":{"bits":"72","hi":"1519554157098600611840","lo":"-1519554157098600611840"},"rq.q":{"bits":"48","hi":"90572485750830","lo":"-90572485750831"},"rq.t":{"bits":"61","hi":"1002024149236695040","lo":"-1002024149236695040"},"rq.y":{"bits":"48","hi":"90572485751698","lo":"-90572485749963"}},"k_c":"0","mac":{"a_bits":["45"],"w_bits":"12"},"npu_flags":["rq_floor_mult","rq_post_bias"],"op":"conv_transpose","out":[{"bits":"38","hi":"71304016834","lo":"-71304016834","policy":"check","result":{"bits":"48","hi":"90572485751698","lo":"-90572485749963"},"tensor":"1"}],"saturated":false},{"acc32_params":[],"fits":["acc64"],"index":"1","intermediates":{"igdn.N":{"bits":"78","hi":"102521099954890836559322","lo":"0"},"igdn.gx2":{"bits":"91","hi":"766549220605517427823354564","lo":"0"},"igdn.r":{"bits":"40","hi":"320189162769","lo":"4541"},"igdn.term":{"bits":"75","hi":"11696612863243368954824","lo":"0"},"igdn.x2":{"bits":"74","hi":"5084262816663355383556","lo":"0"},"igdn.xr":{"bits":"76","hi":"22830773452145142053346","lo":"-22830773452145142053346"}},"k_c":"0","npu_flags":[],"op":"igdn","out":[{"bits":"45","hi":"11733853450240","lo":"-11733853450240","policy":"check","result":{"bits":"64","hi":"5573919299840122571","lo":"-5573919299840122572"},"tensor":"2"}],"saturated":false},{"acc32_params":[],"fits":["acc64"],"index":"2","intermediates":{"convT.acc":{"bits":"61","hi":"773202273103564800","lo":"-773202273103564800"},"convT.term":{"bits":"56","hi":"24019198012641280","lo":"-24019198012641280"},"rq.p":{"bits":"72","hi":"1211560897467097128960","lo":"-1211560897467097128960"},"rq.q":{"bits":"48","hi":"72214656917279","lo":"-72214656917280"},"rq.t":{"bits":"61","hi":"773202273103564800","lo":"-773202273103564800"},"rq.y":{"bits":"48","hi":"72214656917664","lo":"-72214656916895"}},"k_c":"0","mac":{"a_bits":["45"],"w_bits":"12"},"npu_flags":["rq_floor_mult","rq_post_bias"],"op":"conv_transpose","out":[{"bits":"38","hi":"80588457227","lo":"-80588457227","policy":"check","result":{"bits":"48","hi":"72214656917664","lo":"-72214656916895"},"tensor":"3"}],"saturated":false},{"acc32_params":[],"fits":["acc64"],"index":"3","intermediates":{"igdn.N":{"bits":"78","hi":"114908719735727836101099","lo":"0"},"igdn.gx2":{"bits":"90","hi":"600098242591706216137009129","lo":"0"},"igdn.r":{"bits":"40","hi":"338981887031","lo":"4654"},"igdn.term":{"bits":"74","hi":"9156772500483798464004","lo":"0"},"igdn.x2":{"bits":"74","hi":"6494499438228008529529","lo":"0"},"igdn.xr":{"bits":"76","hi":"27318027303725489523037","lo":"-27318027303725489523037"}},"k_c":"0","npu_flags":[],"op":"igdn","out":[{"bits":"45","hi":"11733853450240","lo":"-11733853450240","policy":"check","result":{"bits":"64","hi":"6669440259698605840","lo":"-6669440259698605841"},"tensor":"4"}],"saturated":false},{"acc32_params":[],"fits":["acc64"],"index":"4","intermediates":{"convT.acc":{"bits":"61","hi":"810879676532285440","lo":"-810879676532285440"},"convT.term":{"bits":"56","hi":"24019198012641280","lo":"-24019198012641280"},"rq.p":{"bits":"72","hi":"1563034936702154752000","lo":"-1563034936702154752000"},"rq.q":{"bits":"48","hi":"93164142173657","lo":"-93164142173658"},"rq.t":{"bits":"61","hi":"810879676532285440","lo":"-810879676532285440"},"rq.y":{"bits":"48","hi":"93164142174556","lo":"-93164142172759"}},"k_c":"0","mac":{"a_bits":["45"],"w_bits":"12"},"npu_flags":["rq_floor_mult","rq_post_bias"],"op":"conv_transpose","out":[{"bits":"48","hi":"93164142174556","lo":"-93164142172759","policy":"derived","result":{"bits":"48","hi":"93164142174556","lo":"-93164142172759"},"tensor":"5"}],"saturated":false},{"acc32_params":[],"fits":["acc32","acc64"],"index":"5","intermediates":{},"npu_flags":[],"op":"clamp","out":[{"bits":"14","hi":"4096","lo":"0","policy":"derived","result":{"bits":"14","hi":"4096","lo":"0"},"tensor":"6"}],"saturated":false},{"acc32_params":[],"fits":["acc32","acc64"],"index":"6","intermediates":{"rq.p":{"bits":"21","hi":"1046528","lo":"0"},"rq.q":{"bits":"9","hi":"255","lo":"0"},"rq.t":{"bits":"14","hi":"4096","lo":"0"},"rq.y":{"bits":"9","hi":"255","lo":"0"}},"npu_flags":[],"op":"rescale","out":[{"bits":"9","hi":"255","lo":"0","policy":"derived","result":{"bits":"9","hi":"255","lo":"0"},"tensor":"7"}],"saturated":false}],"scalars":[]}],"lowering":"world/1","set_sha256":"da046216ff9495a47fbfdf14788510bc951a266896b47234bb174cef8769ab88","verdict":{"acc32":false,"acc32_first_failure":{"bits":"64","graph":"T","index":"0","key":"range","where":"input"},"acc64":true,"npu":false,"npu_flags":["rq_floor_mult","rq_post_bias"],"npu_reasons":["acc32","op:igdn"]}} |