Repository navigation
[TRTLLM-12721][fix] Harden PyExecutor disagg cancellation lifecycle - #15795
chienchunhung wants to merge 2 commits into
Conversation
3d499a1 to
d85793b
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #56694 [ run ] triggered by Bot. Commit: |
Combine the current NVIDIA#15238, NVIDIA#15737, NVIDIA#15794, and NVIDIA#15795 snapshots into one parent commit for NVIDIA#15738. The source PRs remain independently reviewable and mergeable. Signed-off-by: Chien-Chun Hung <[email protected]>
Combine the current NVIDIA#15238, NVIDIA#15737, NVIDIA#15794, and NVIDIA#15795 snapshots into one parent commit for NVIDIA#15738. The source PRs remain independently reviewable and mergeable. Signed-off-by: Chien-Chun Hung <[email protected]>
Combine the current NVIDIA#15238, NVIDIA#15737, NVIDIA#15794, and NVIDIA#15795 snapshots into one parent commit for NVIDIA#15738. The source PRs remain independently reviewable and mergeable. Signed-off-by: Chien-Chun Hung <[email protected]>
|
/bot run --disable-fail-fast |
|
PR_Github #56711 [ run ] triggered by Bot. Commit: |
|
PR_Github #56694 [ run ] completed with state |
d7ae0fa to
4c7ce2f
Compare
|
/bot run --disable-fail-fast |
4c7ce2f to
198c2ef
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #56741 [ run ] triggered by Bot. Commit: |
|
PR_Github #56745 [ run ] triggered by Bot. Commit: |
|
PR_Github #56741 [ run ] completed with state |
|
PR_Github #56745 [ run ] completed with state
|
Combine the current NVIDIA#15238, NVIDIA#15737, NVIDIA#15794, and NVIDIA#15795 snapshots into one parent commit for NVIDIA#15738. The source PRs remain independently reviewable and mergeable. Signed-off-by: Chien-Chun Hung <[email protected]>
…wnership Signed-off-by: Chien-Chun Hung <[email protected]>
Signed-off-by: Chien-Chun Hung <[email protected]>
198c2ef to
f45ebae
Compare
|
@chienchunhung this pull request has had no activity for more than 120 days and currently has merge conflicts. Is it still active? Please resolve the conflicts or post an update. Otherwise, it will be closed after another 60 days of inactivity. |
Summary
This draft adds the PyExecutor and IPC lifecycle support required by disaggregated in-flight KV-transfer cancellation. It depends on #15794 and keeps the feature disabled by default.
#15794 owns timeout detection, rank consensus, native cancellation, quiescence, and the topology-poison latch. This PR consumes that contract without rank-local cancellation, duplicate terminal responses, unsafe teardown, or hung proxy callers.
Changes
FinishReason.CANCELLEDresponse is emitted after native andAsyncTransferManagerowners release the request;WorkerFatalErrorand fail all proxy-owned results;worker_mainwithout cross-thread request-ZMQ access;FatalStopmessages;Activation scope
Opt-in is accepted only for standard PyTorch
PyExecutorwith the C++ transceiver, NIXL/UCX, asynchronous preallocated staging buffers, positive admission and timeout bounds, ordinary TP (PP=CP=1, no attention DP), no KV connector, and no layerwise or zero-copy transfer.The IPC executor must also own disposable
MpiPoolSessionworker processes so poison can be resolved by starting fresh processes. ReusableMpiCommSession, remote management-leader, Ray, RPC, and single-process paths fail opt-in preflight. With the flag unset, existing paths retain legacy behavior.Validation
Passed on
198c2efaac:git diff --checkand Python syntax compilation.Not available locally: focused pytest collection because
transformersis not installed, realMpiPoolSessionplus postprocess-parallel fatal IPC teardown, and distributed GPU poison fault injection.Stack follow-ups
#15798 and #15799 do not block this default-off PR. #15798 is required before #15738 enables the feature for qualified deployments. #15799 must be implemented unless an explicitly approved bounded fail/restart policy provides equivalent no-peer and ambiguous-transfer safety.
Dependency graph
Arrows point from prerequisite to dependent. #15238 and #15737 are parallel inputs to #15794. Stacked child diffs remain cumulative until their parents merge.
flowchart LR PR15238["#15238<br/>gated cancellation<br/>(default off)"] PR15737["#15737<br/>CacheSender lost-wakeup fix"] PR15794["#15794<br/>C++ protocol and buffer safety<br/>(default off)"] PR15795["#15795<br/>PyExecutor + IPC lifecycle safety<br/>(default off)"] PR15798["#15798<br/>CTX↔GEN protocol/mode negotiation"] PR15799["#15799<br/>peer cancel/terminal protocol<br/>(design scaffold)"] PR15738["#15738<br/>qualified default-on policy"] PR15238 --> PR15794 PR15737 --> PR15794 PR15794 --> PR15795 PR15794 --> PR15798 PR15798 --> PR15799 PR15795 --> PR15738 PR15798 --> PR15738 PR15799 -.->|or approved bounded fail/restart policy| PR15738