Ledger and plan: stage 6c host round (timeline of the owner default, PLE rows on the chain, tier bursts, cumulative A/B)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
c1cd55fea0
commit
828e56d718
@@ -31,7 +31,7 @@
|
||||
| 5 | Decode: verify-граф (бічні гілки: mixer, QSA, shared) | speed | **зроблено**, дефолт увімкнено (+1,39 % і дільничні дельти) |
|
||||
| 6 | Decode: ядра mixer-половини (S10 батчований append K/V, GDN K7/K7a), accept на пристрої (0,32→0,08 мс), commit (fused) | speed | у роботі |
|
||||
| 6b | Decode: вимір критичного шляху раунду (хост/тир: flag-waits, doorbell, прихід CPU-ноги у ранніх шарах), бо секційні дельти ядер до раунду не доходять (pb-vs-pg-rerun, 2026-11-12). Запис 2026-11-12 за словом оркестратора, щоб закрити залишок −11 % decode | speed | відкрито |
|
||||
| 6c | Decode: хост між графами (4,3 мс, GPU стоїть 1,95 мс): PLE-staging, ланцюг драфту на пристрої, scan у граф, swap-чекання тиру (політика), commit | агент host-round | відкрито (запис 2026-11-12) |
|
||||
| 6c | Decode: хост між графами (4,3 мс, GPU стоїть 1,95 мс): PLE-staging, ланцюг драфту на пристрої, scan у граф, swap-чекання тиру (політика), commit | агент host-round | **зроблено частково 2026-11-13** (`docs/experiments/host-round.md`): PLE-рядки під ланцюгом драфту (`LELEKA_PLE_ON_CHAIN`, bit-exact: 2057/2057 рядків, 1036/1036 draft-рядків, A/A 0; `window.ple` 0,194→0,060 мс/раунд; увімкнено в профілях 5090); tier-burst «кожні 2 раунди, 48 свопів» (`ADAPT_EVERY=2 ADAPT_SWAPS=48`) знімає 0,25 мс очікування свопу, placement-клас, гейт з одним контролем не чистий (max 0,80 проти ліміту 0,50), ще два контролі в черзі; разом A/B 5 блоків: decode +2,7 % (CI +2,3…+3,1), A/A +0,5 %. Решта хоста ≈ 0,3 мс/раунд; verify launch 1,3 мс був артефактом трасера, ланцюг на пристрої ≈ 0,085 мс, scan у граф ≈ 0,04 |
|
||||
| 6d | Decode: токенів на раунд (accept) і драфтер: порівняти з ванільою та з upstream DFlash2 per-device (Blackwell cc 12.0: conf 0,35→0,55, window 6→8), що дає tok/round | агент acceptance | аналіз зроблено (`acceptance-knobs-5090.md`: accept у нас 3,19 проти 2,96 у vanilla, DFlash2-пер-девайс не стосується 5090 32 ГБ, 12-рядкове вікно ≤ +2 %); виміри ручок у черзі GPU |
|
||||
| 6e | Decode: CPU-ядро експерта IQ3_S/IQ4_NL (було ≈3× повільніше за Original; фікс 0c48c823e у main, A/B на 243k іде), далі prefetch 2048 Б і multi512 | агент cpu-kernel | у роботі |
|
||||
| 6f | Lossy tail skip (+10..12 %): гейт якості (CRM за строгим і м'яким acceptance, ttt, ріст раундів ≤ приросту швидкості) | агент tail-gate | n=3 виконано 2026-11-13 на 83bdd85bb482: CRM decode 211 (+14,5 %), раунди −11 %, relaxed 56/56 у 2 з 3 (як у дефолту); ttt decode +11,5 %, раунди +39 % (один сеанс 49 раундів), логіт-гейт 3,6 % flips > 2,8 %; не доведено, за замовчуванням не вмикати, рішення за власником (`codex-compare-speed-gap.md`, кінець) |
|
||||
|
||||
@@ -87,6 +87,8 @@ Round-level totals first (they are the sum of the steps below).
|
||||
|
||||
**Critical path step A, first launch failed (2026-11-12).** `decode-critical-path-cupti-windows-67k-default-vs-quota-no-pcie065-and-twin`: all six sessions NOT READY in 3 s, no engine started: release 02c784249a7e validates profile `engine_env` keys against `ENGINE_ENV_PREFIXES` (`profile_limits.rs`) and `spd_arm_guard.py make` wrote `LELEKA_SPEC_STATS` into the arm profile. Fixed in `spd_arm_guard.py` (only the allowed prefixes go into the profile, the rest stays in the shell env); rerun stub `…-twin-rerun`, output `/data/leleka-e2e/spd-gap/runs/decode-critical-path-cupti-windows-67k-default-vs-quota-no-pcie065-and-twin-rerun`. The pool-layer job `decode-pool-layer-trace-67k-default-placement-release-0ac612d2df74` (`LELEKA_POOL_TIMING`) had the same bug in its tool copy and now uses the fixed guard.
|
||||
|
||||
**Host round, stage 6c (2026-11-13, `docs/experiments/host-round.md`, branch `claude/host-round`).** (1) TIMELINE of the owner default (release 83bdd85bb482, PROVENANCE git_commit 83bdd85bb48226a41bcec6034d87e1ea6528b570, tarball sha256 3837a32b..., job `decode-host-round-cupti-windows-67k-owner-default-release-83bdd85bb482-and-twin-and-step-profile`, arm guard ok; the step A jobs had never started an engine, so no such window existed): 6 CUPTI windows (4,075 rounds) between graphs 4.38 ms (twins 4.19 / 4.60, the windows range 3.4-5.7 by request): wake+scan+accept 0.044, launches 0.170, round graph 0.595, chain steps 1.338, chain turns 0.327, window build 0.075, swap wait 0.395, PLE staging+prep 0.205, verify launch 1.230 (tracer). Untraced spans of the same release (DP.1, 13,778 rounds): `round.apply_pending` 0.395, `window.ple` 0.206, `draft.launch` 0.009, `round.plan` + `round.checkpoints` + `round.adopt` 0.001 each, one chain step 0.486 ms host against 0.459 GPU (27 us of host); `round.verify_commit` 15.6 + `round.finish` 2.4 = 18.06 ms per round. The host-attributable serial part that survives the tracer is the swap wait and the PLE gather (0.60 ms, 3.3 %). (2) `LELEKA_PLE_ON_CHAIN` (bit-identical): the window's PLE rows are gathered behind the draft chain steps (hook in `OriginalMtpDrafter::finish_chain`, `KarPleCache::gather_ahead`, stream-0-only drains `compute_drain::LocalDrain`, skipped while swap copies run). Section delta (3 blocks, profiled, `host_round_spans.py`): `window.ple` 0.194 -> 0.060 ms per round (-0.134, CI +-0.002; the DP blocks spread 0.001), chain step time unchanged (0.485 host / 0.459 GPU). Identity (job `…identity-teacher-forced-draftround-reference-vs-on-vs-verify-rerun`, test binary sha256 1af19f5b...): 2057 of 2057 top-16 logprob rows identical, 0 argmax flips, 1036 of 1036 draft lines identical, A/A floor 0 in all three processes, and the verify process compared 1000+ taken rows bit for bit with a direct gather (no MISMATCH). ON in the three 5090 profiles. (3) TIER BURSTS (placement class, not a default): adapt every 2 rounds with up to 48 swaps removes 0.25 ms of the swap wait (`round.apply_pending` 0.351 -> 0.098); paired decode +1.53 % (CI +0.26..+2.79, 3 blocks). Control-relative gate against the share-0.55 control: T p99 0.1915 / max 0.796 / flips 1.73 % against limits 0.258 / 0.497 / 2.09 % (max fails), TW (every 2, 96 swaps) 0.201 / 0.371 / 2.26 % (flips fail), A/A floor 0: NOT a clean pass against one control; more controls queued. (4) CUMULATIVE paired A/B (PLE on chain + T against the default, 5 blocks, A/A twin, no profile): decode 206.23 -> 211.80 tok/s, +5.57 +- 0.78 (+2.70 %, CI +2.32..+3.08), against the twin +2.17 % (CI +1.78..+2.56); the twin against D +0.52 % (CI -0.10..+1.14). The identified items that were NOT worth doing: verify launch (tracer), on-device chain (untraced 0.085 ms), scan into the graph (0.04). Remaining host-serial after this: about 0.3 ms per round, mostly the last row of the PLE gather, the residual swap wait and the chain turns.
|
||||
|
||||
**CPU expert kernels IQ3_S / IQ4_NL (commit `0c48c823e`, 2026-11-12/13, stage 6b step 3): identity bitwise, decode neutral at 243k, pool window median faster, tail not.** Base = main with the kernel commit reverted (release `c1f15db2fa99`, branch `claude/kernel-iq3s-register-indices-base`), new = main (release `bcbfa2c99422`); both from one tree (the group A/B driver and the identity script are the only other changes, commit `bcbfa2c99`), owner default profile (quota=no + PCIe 0.65, 15 CPU workers). Inputs frozen in `/data/leleka-e2e/prefill-latency/kernel-iq3s-register-indices/` (`MANIFEST.sha256`: engine test binaries `dt/rt-base` f87edd9c, `dt/rt-new` da4f0b1e, both tarballs, tools); stubs `cpu-expert-kernel-register-indices-*` in `scripts/e2e/codex/prefill/kernel/`. (1) Identity `runs/cpu-expert-kernel-register-indices-identity-draftround` (teacher forced, night5-long-256k, 240 tokens, base and new at 1 and at 15 CPU workers, A/A pair inside every process): 2057 of 2057 top-16 logprob rows identical, 0 argmax flips, 1036 of 1036 draft trace lines identical, A/A floor 0, `q_tail_gate` PASS in all four processes. (2) Group A/B `runs/cpu-expert-kernel-register-indices-vs-base-243k-group-ab-5-pairs` (the 243k Codex session, 39 requests, 5 pairs + 3 A/A twins, arm guard and binary digest ok in 13 of 13 blocks): decode K-B -0.64 tok/s (190.42 -> 189.77, -0.34 %, 95 % CI -3.33..+2.65), ms/round -0.03 (-0.20 %, CI -4.31..+3.91), tokens/round -0.02 (-0.58 %); A/A twin BT-B -0.83 tok/s (-0.43 %, CI -4.30..+3.43). Verdict by the owner rule (identity bitwise AND decode not worse than -0.5 %, or the A/A floor if larger; the floor 0.43 % is below 0.5 %): PASS, kept as the default; there is NO measurable decode gain at this noise (CI +-3 %). (3) Pool thread trace `runs/cpu-expert-kernel-register-indices-pool-thread-trace-base-vs-new` (replay nestng-crm-r2, PTB base against PTK new; by expert count and T = 2..4, `pool_layer_report.py --by-experts`): gate/up task p50 15.2 -> 10.7 us (-30 %), down task 5.2 -> 5.2 us (unchanged: the IQ4_NL change is the single-row path, the pool decodes 2..5 rows); window of 1 expert p50/p75/p90 82/89/97 -> 70/86/95 us, of 2 experts 160/170/186 -> 138-143/160-168/178-185 us, of 3 experts p50 241 -> 218-227 us. The median of a window fell by 12-20 us, the p75/p90 tail by only 2-9 us: the tail (the part a layer waits for) is not compute. Open (separate steps): prefetch 2048 B ahead like the Original (COLD-HOT +25-80 us), the multi-row down path (`multi512`: 662 us against the Original's 454 us in the kernel bench). (4) Group A/B 67k `runs/cpu-expert-kernel-register-indices-vs-base-67k-group-ab-5-pairs` (replay VANL/nestng-crm-r2, 30 requests, 5 pairs + 3 A/A twins, arm guard and binary digest ok in 13 of 13 blocks): decode K-B +2.34 tok/s (204.11 -> 206.45, +1.14 %, 95 % CI -0.22..+2.51), ms/round -0.12 (-0.69 %, CI -6.38..+5.01), tokens/round +0.02 (+0.44 %, CI -6.27..+7.15), end-to-end +0.17 %; A/A twin BT-B -1.63 tok/s (-0.80 %, CI -4.41..+2.81), so the A/A floor (0.8 %) is as large as the gain: PASS by the owner rule (not worse than -0.5 %), a gain of about +1 % that the twin does not exclude as noise. Both group A/Bs: no loss, 243k neutral, 67k +1.1 %.
|
||||
|
||||
Structure first, then the layer steps in graph order: embed (R7), mixer half (V3 and the kernels in it), FFN half (V2/V4 and the kernels in it), tail (R8).
|
||||
|
||||
Reference in New Issue
Block a user