COMPONENT_STARTUP, COMPONENT_TABLE and COMPONENT_KERNEL record schemas (schema_component.json), validate_component.py (record / --negative-suite / merge), one sample per level (two for start-up: ours and vanilla), a negative-case table and 41 unittest tests. Shares the STRA-246 evaluator and definitions; stdlib only, Python >= 3.9. Classes are computed elsewhere (STRA-313); the validator checks presence and consistency. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
103 lines
4.7 KiB
JSON
103 lines
4.7 KiB
JSON
{
|
|
"schema_version": "1",
|
|
"level": "COMPONENT_TABLE",
|
|
"synthetic": true,
|
|
"record_id": "sample-table-0001",
|
|
"created_utc": "2026-01-01T02:00:00Z",
|
|
"machine": {
|
|
"machine_role": "sample-machine",
|
|
"cpu_model": "Sample CPU 16-Core",
|
|
"gpu_name": "Sample GPU 16GB",
|
|
"os": "Sample OS"
|
|
},
|
|
"source_run_ids": [
|
|
"sample-run-0001",
|
|
"sample-run-0002"
|
|
],
|
|
"stage_to_component": [
|
|
{"stage": "prefill", "component": "prefill_gemm"},
|
|
{"stage": "decode_attn", "component": "decode_attention"},
|
|
{"stage": "decode_experts", "component": "expert_cpu"},
|
|
{"stage": "decode_sync", "component": "host_sync"},
|
|
{"stage": "decode_route", "component": "route_topk"},
|
|
{"stage": "startup", "component": "weight_load"}
|
|
],
|
|
"log_ratio_convention": "positive_means_ours_better",
|
|
"rows": [
|
|
{
|
|
"component": "prefill_gemm",
|
|
"unit": "ms",
|
|
"n": 30,
|
|
"ours": {"mean": 80.0, "median": 80.0, "p05": 78.0, "p95": 82.0, "min": 77.0, "max": 83.0},
|
|
"vanilla": {"mean": 90.0, "median": 90.0, "p05": 88.0, "p95": 92.0, "min": 87.0, "max": 93.0},
|
|
"class": "FASTER",
|
|
"paired": {"log_ratio_mean": 0.118, "ci95_low": 0.11, "ci95_high": 0.126, "ci_method": "sample: Student-t on the paired log ratio"},
|
|
"aa": {"ours_vs_ours": {"n": 30, "ci95_low": -0.002, "ci95_high": 0.003}, "vanilla_vs_vanilla": {"n": 30, "ci95_low": -0.003, "ci95_high": 0.002}, "valid": true},
|
|
"suspected": false
|
|
},
|
|
{
|
|
"component": "expert_cpu",
|
|
"unit": "ms",
|
|
"n": 30,
|
|
"ours": {"mean": 10.0, "median": 10.0, "p05": 9.9, "p95": 10.1, "min": 9.8, "max": 10.2},
|
|
"vanilla": {"mean": 10.0, "median": 10.0, "p05": 9.9, "p95": 10.1, "min": 9.8, "max": 10.2},
|
|
"class": "EQUAL",
|
|
"paired": {"log_ratio_mean": 0.0004, "ci95_low": -0.0031, "ci95_high": 0.0039, "ci_method": "sample: Student-t on the paired log ratio"},
|
|
"aa": {"ours_vs_ours": {"n": 30, "ci95_low": -0.002, "ci95_high": 0.003}, "vanilla_vs_vanilla": {"n": 30, "ci95_low": -0.003, "ci95_high": 0.002}, "valid": true},
|
|
"suspected": false
|
|
},
|
|
{
|
|
"component": "decode_attention",
|
|
"unit": "ms",
|
|
"n": 30,
|
|
"ours": {"mean": 6.2, "median": 6.2, "p05": 6.0, "p95": 6.4, "min": 5.9, "max": 6.5},
|
|
"vanilla": {"mean": 6.0, "median": 6.0, "p05": 5.8, "p95": 6.2, "min": 5.7, "max": 6.3},
|
|
"class": "SLOWER",
|
|
"paired": {"log_ratio_mean": -0.033, "ci95_low": -0.04, "ci95_high": -0.026, "ci_method": "sample: Student-t on the paired log ratio"},
|
|
"aa": {"ours_vs_ours": {"n": 30, "ci95_low": -0.002, "ci95_high": 0.003}, "vanilla_vs_vanilla": {"n": 30, "ci95_low": -0.003, "ci95_high": 0.002}, "valid": true},
|
|
"suspected": true
|
|
},
|
|
{
|
|
"component": "host_sync",
|
|
"unit": "ms",
|
|
"n": 30,
|
|
"ours": {"mean": 2.3, "median": 2.3, "p05": 2.2, "p95": 2.4, "min": 2.1, "max": 2.5},
|
|
"vanilla": {"mean": 2.0, "median": 2.0, "p05": 1.9, "p95": 2.1, "min": 1.8, "max": 2.2},
|
|
"class": "CONFIRMED-SLOWER",
|
|
"paired": {"log_ratio_mean": -0.14, "ci95_low": -0.15, "ci95_high": -0.13, "ci_method": "sample: Student-t on the paired log ratio"},
|
|
"aa": {"ours_vs_ours": {"n": 30, "ci95_low": -0.002, "ci95_high": 0.003}, "vanilla_vs_vanilla": {"n": 30, "ci95_low": -0.003, "ci95_high": 0.002}, "valid": true},
|
|
"suspected": false,
|
|
"confirmation": {
|
|
"run_ids": ["sample-run-0003"],
|
|
"n": 30,
|
|
"paired": {"log_ratio_mean": -0.139, "ci95_low": -0.149, "ci95_high": -0.129, "ci_method": "sample: Student-t on the paired log ratio"}
|
|
}
|
|
},
|
|
{
|
|
"component": "route_topk",
|
|
"unit": "ms",
|
|
"n": 30,
|
|
"ours": {"mean": 1.03, "median": 1.03, "p05": 1.0, "p95": 1.06, "min": 0.98, "max": 1.08},
|
|
"vanilla": {"mean": 1.0, "median": 1.0, "p05": 0.97, "p95": 1.03, "min": 0.95, "max": 1.05},
|
|
"class": "NOT-CONFIRMED",
|
|
"paired": {"log_ratio_mean": -0.03, "ci95_low": -0.05, "ci95_high": -0.01, "ci_method": "sample: Student-t on the paired log ratio"},
|
|
"aa": {"ours_vs_ours": {"n": 30, "ci95_low": -0.002, "ci95_high": 0.003}, "vanilla_vs_vanilla": {"n": 30, "ci95_low": -0.003, "ci95_high": 0.002}, "valid": true},
|
|
"suspected": false,
|
|
"confirmation": {
|
|
"run_ids": ["sample-run-0004"],
|
|
"n": 30,
|
|
"paired": {"log_ratio_mean": -0.004, "ci95_low": -0.02, "ci95_high": 0.012, "ci_method": "sample: Student-t on the paired log ratio"}
|
|
}
|
|
},
|
|
{
|
|
"component": "weight_load",
|
|
"unit": "s",
|
|
"n": 12,
|
|
"ours": {"mean": 40.0, "median": 40.0, "p05": 38.0, "p95": 42.0, "min": 37.0, "max": 43.0},
|
|
"vanilla": {"mean": 41.0, "median": 41.0, "p05": 39.0, "p95": 43.0, "min": 38.0, "max": 44.0},
|
|
"class": "INCONCLUSIVE",
|
|
"suspected": false
|
|
}
|
|
]
|
|
}
|