vllm.v1.pool.late_interaction_runner
¶
Classes:
-
LateInteractionRunner–Worker-side state and postprocessing for late-interaction scoring.
LateInteractionRunner
¶
Worker-side state and postprocessing for late-interaction scoring.
_score(queries, docs)
¶
Score (query_i, doc_i) pairs: the fused Triton kernel handles the common rerank pattern (one shared query, CUDA inputs); multiple distinct queries, CPU tensors, or a kernel failure fall back to the reference scorer.
_score_flash_shared_query(query, docs)
staticmethod
¶
One kernel launch for all docs against a single shared query: docs pack into one [total_tokens, d] tensor (single cat, no padding) and the kernel reads each by (offset, length) — the [B, Lq, Ld] similarity tensor is never materialised.