mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
For the pipelined verify windows of a layer split (next commit). Nothing calls it yet, and nothing changes unless set_force_capture is set before load. - chain_launch: the catch-up round and its steps launched back to back with no host wait, an event after each output (chain_outputs_ready reads them as they land, chain_poll once the chain is done). Its first steps can take given tokens as their input instead of their own picks (teacher forcing: the drafts of a window already in flight), through a one-thread kernel at the end of the round and step graphs that does nothing while its mapped token is -1; the outputs stay the chain's own picks. - prepare_chain / prepare_prefill: capture every graph and size the prefill's input records up front, so neither a later chain nor prefill(sync = false) waits for the device. - set_source_R: the rows a round reads, copied into the bound buffer first (the pipelined loop has one stage-1 verifier per window parity). - with forcing on, the drafter's stream gets the highest priority (CUDA; STRATA_MTP_PRIORITY=0: the default). draft() resets the forced tokens and copies the source rows the same way, so the serial loop's drafts are unchanged.