diff --git a/deploy/rust-runtime/profiles/rtx5090-32g.json b/deploy/rust-runtime/profiles/rtx5090-32g.json index f36b7b15..5f3c0c99 100644 --- a/deploy/rust-runtime/profiles/rtx5090-32g.json +++ b/deploy/rust-runtime/profiles/rtx5090-32g.json @@ -12,6 +12,6 @@ "min_vram_total_mib": 30000, "min_ram_total_bytes": 107374182400, "min_ram_available_bytes": 113000000000, - "engine_env": {"LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER": "yes"}, + "engine_env": {"LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER": "yes", "LELEKA_CHAIN": "all"}, "memory": {"prefix_cache_mib": "auto", "prefix_cache_tail": "reply", "soft_floor_mib": 4096, "hard_floor_mib": 2048, "reserve_mib": 2048, "lock": "try", "heal": true} } diff --git a/docs/chain-kernels.md b/docs/chain-kernels.md index 7c4e6e5f..9c723344 100644 --- a/docs/chain-kernels.md +++ b/docs/chain-kernels.md @@ -65,3 +65,15 @@ no port-only guard kernels exist in the verify window (they are in the MTP step, ## 7. The MTP draft vocabulary (coordinator request) DRAFTVOCAB + +## Agreement at long context and decode gain (jobs 9c5, 9d6) + +* Speed (9c5, paired by corpus prompt, 5 prompts x 3 repeats, short prompts, static tier): `LELEKA_CHAIN=all` 74.13 tok/s against 72.53 without it + (+2.2 %); all 15 pairs are positive and the number of verify rounds is the same in both arms. +* Agreement (9d6): the 40 requests of the live CRM session 9e3 teacher-forced along their recorded tokens (about 64k rows at 30-70k tokens of + context), top-16 log-probabilities of every row, against the same run without the chain kernels (arm G of 9d4, same chunk cut, static tier). + The kernels are NOT bit-identical at this length (the fusions change rounding): 5,993 of 64,355 rows are identical, d_top1 p99 0.327, max 4.31, + dmax16 p99 3.48, argmax flips 697 (1.08 %). The control for rounding noise is a chunk-cut change of the exact path (job 9d5): p99 0.394, max 4.64, + flips 1.45 %. The chain kernels deviate less than that, so they are within the rounding noise of any change in the order of the arithmetic + (the rule of `scripts/quality/q_tail_gate.py`: each of p99, max and flip rate at most 1.25 x the control's). They are enabled by the + `rtx5090-32g` profile (`engine_env`).