Files
leleka/crates
Pavlo RatushnyiandClaude Sonnet 5.5 1ab37e4082 decode: LELEKA_DRAFT_CHAIN_PIPELINE (opt-in): the MTP chain steps of a greedy draft with min_p 0 are enqueued back to back and read after one stream drain
The sequential chain pays a stream sync, two synchronous flag reads, the cell record write and the graph launch between every two steps (about 114 us x 2.4 steps per round in the CUPTI window of request 29). With min_p 0 the depth is known up front, the cell records are static and the token of step j reaches step j+1 on the device, so the steps are enqueued behind the round graph and the host reads once. The step graphs of this path (OriginalGraphKey::MtpChain) are recorded without the tail flag reset and the prefix status reset, so a numerical fault of any step stays set until the single flag read after the last step. Same kernels in the same order; typed setting draft_chain_pipeline, policy field chain_pipeline, off by default.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 15:11:58 +01:00
..