vllm_omni.engine.cfg_companion_tracker ¶
CFG companion request tracker for the Omni orchestrator.
Encapsulates all bookkeeping for Classifier-Free Guidance companion requests (parent/companion ID mapping, completion tracking, deferred forwarding, and cleanup).
CfgCompanionTracker ¶
Manages CFG companion request lifecycle in the orchestrator scheduling loop.
defer_parent ¶
Hold parent result while waiting for companions to finish.
Deferred parents are released when their companions' processed outputs arrive, and failed by the orchestrator when a companion errors or is aborted. TODO: a deadline for deferred parents and detection of a companion replica dying silently (no error output, no abort) still need a liveness owner in the orchestrator loop.
get_companion_outputs ¶
Return companion outputs (role-registration order) for bundling.
Non-destructive: outputs stay stashed until cleanup_parent so a re-submission of the same parent (e.g. a streaming terminal update) bundles the complete set again instead of an empty one.
get_companion_request_ids ¶
Return {role: companion_request_id} for a parent.
get_parent_id ¶
Return the parent request id for a companion, or None.
is_companion_done ¶
True once this companion's processed output was stashed and marked done.
on_companion_completed ¶
Mark done. Returns parent_id only if parent is pending and all companions finished.