[Worker] Index the persistent per-request-slot block table under PP
Under pipeline parallelism the Mamba/GDN state-copy path indexed a block-table row gathered for a different step. The align post-process now indexes the persistent per-request-slot table, and fails closed when it is absent. Co-Authored-By: Hinata <hinata@idihore.id> Signed-off-by: MOVZX <movzx@yahoo.com>
This commit is contained in:
@@ -126,6 +126,14 @@ class ModelState(ABC):
|
||||
def apply_staged_writes(self) -> None:
|
||||
return None
|
||||
|
||||
def set_block_tables(self, block_tables: Any) -> None:
|
||||
"""Register the runner's `BlockTables` once it exists.
|
||||
|
||||
Model states that index a block table outside the step that gathered it
|
||||
(mamba "align" + the PP-deferred post-process) need the persistent
|
||||
per-req-slot tables, not the batch-order gather. No-op by default."""
|
||||
return None
|
||||
|
||||
def get_additional_cg_support(self) -> tuple[AttentionCGSupport, str | None]:
|
||||
"""Cudagraph support of attention groups this ModelState builds outside
|
||||
``init_attn_backend`` (e.g. encoder-only layers).
|
||||
|
||||
Reference in New Issue
Block a user