ledger O7: timeline from verify end to the first draft kernel (CUPTI LEL vs VANL, PROFILE host spans)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-11-09 23:03:21 +01:00
co-authored by Claude Sonnet 5.5
parent 11bdb54666
commit 15fea581a7
+1 -1
View File
@@ -121,7 +121,7 @@ Structure first, then the layer steps in graph order: embed (R7), mixer half (V3
| id | step | LEL | VANL | difference | source | owner | status |
| --- | --- | ---: | ---: | ---: | --- | --- | --- |
| O7 | verify end to first draft kernel, ms | 0.32 | 0.08 (accept decided on the device) | +0.24 | ORCH | hex-finish | open |
| O7 | accept to draft: host chain from the end of the verify graph to the first draft kernel (code `finish_window`, `verifier_head_after_drain`, `validate_completed_logits`, commit enqueue, `launch_draft`) | CUPTI `CL.1`, per round, from the end of the verify graph: 5.6 us compute-stream sync returns; 8.3-14.9 two `cuLaunchKernel` (`verify_clear_status`, `verify_scan_logits`); 14.2-22.6 `cuStreamSynchronize`; 23.1-38.1 `cuMemcpyDtoH` (4 B); 38.3-39.4 `cuCtxSynchronize`; so the logits finite check is 3 syncs + 1 DtoH + 2 launches = ~34 us; then commit `cuGraphLaunch` (182 kernels, call 107 us under CUPTI) and the draft round graph `cuGraphLaunch` (168 kernels, 138 us under CUPTI); first draft kernel `mtp_full_copy_i32_from_mapped` at median 292 us. PROFILE (no tracer, `runs/dc1`, 13,530 rounds): `drv.head` 0.033 + `drv.commit_enqueue` 0.005 + `draft.launch` 0.019 + `mtp.launch_record`/`stage_enqueue` 0.015 = ~0.07 ms of host time | VANL `win-r29`: graph end, then `cudaGraphLaunch` of a 12-kernel graph (22 us call) and of a 74-kernel graph (101 us call), first kernel at median 21.7 us, no logits scan kernels | CUPTI +0.27 ms; PROFILE host 0.07 ms | CUPTI, PROFILE | hex-finish | fixing: (1) the 34 us logits check goes to the device (speed session's agent); (2) the rest of the CUPTI gap is graph-launch call time, which grows with the node count (182 + 168 kernels in LEL against 12 + 74 in VANL) and which the tracer inflates (PROFILE shows 0.005 and 0.019 ms for the same calls), so it cannot be read as host time without a tracer-free measure: next, GPU-event stamps under `LELEKA_SERVE_PROFILE` (verify end, draft round graph start); (3) the draft already does not wait for the commit event (`draft_after_commit` off), so no ordering change is open there |
## C4. Commit (accepted-prefix graph, GDN replay, QSA tail restore, re-append, PLE history)