Repository navigation
Conversation
|
/bot run |
|
PR_Github #86350 [ run ] triggered by Bot. Commit: |
|
PR_Github #86350 [ run ] completed with state
|
|
/bot run |
940ebcc to
506cd28
Compare
|
/bot run |
|
PR_Github #86524 [ run ] triggered by Bot. Commit: |
|
PR_Github #86524 [ run ] completed with state
|
|
/bot run |
88dac9d to
ed28ea3
Compare
|
/bot run |
|
PR_Github #86597 [ run ] triggered by Bot. Commit: |
|
PR_Github #86597 [ run ] completed with state
|
|
/bot run |
|
PR_Github #86741 [ run ] triggered by Bot. Commit: |
|
PR_Github #86741 [ run ] completed with state
|
|
/bot run |
|
PR_Github #86771 [ run ] triggered by Bot. Commit: |
|
PR_Github #86771 [ run ] completed with state
|
trtllm-agent-review
left a comment
There was a problem hiding this comment.
Thanks for the PR. Separates response publication from allocation release in PyExecutor teardown: teardown waits for every owner and runs once, failed preemption victims are torn down when their save retires, and after PP consensus the KV is freed with the peers while a delayed response keeps its routing.
Reviewed at commit c2df086967 (19 files, +636/−36).
Re-review of the whole PR at c2df086; the commits since 11c3514 were read first.
This re-review posts only Blockers and possible blockers, and none remain.
Re-review: approve: no Blocker found.
What this review checked
- The two earlier Blockers are fixed: the request doubles and executor shells in test_recompute_pause.py, test_forward_error_survival.py, test_scheduler_request_failures.py, test_disagg_transfer_diagnostics_wiring.py, test_connector_adp.py and test_transfer_lifecycle_gpu.py now carry the teardown flags and both response lists, test_connector_adp.py no longer mocks
_terminate_requests, and a sweep of every test that reaches the changed teardown helpers found no other double that breaks. - The earlier possible blocker is fixed: at PP consensus
_do_terminate_requestfrees the allocation when only a staged response remains (tensorrt_llm/_torch/pyexecutor/py_executor.py:13403-13410), no other owner can hold it there because the KV connector is rejected with PP>1 (py_executor.py:1970-1975), and test_pp_ring_releases_a_delayed_owner_without_another_consensus fails without the fix. - Publish before terminate holds at all three
_publish_responses_and_terminatesites (py_executor.py:2206, 13269, 14315), and no real request is terminated between the merged attention-DP flush (py_executor.py:8768) and the gather that publishes it. - Not covered: No test, GPU or multi-GPU run; the fixture fixes were checked by tracing the PR's method bodies on the tests' doubles.
- Not covered: No CI result for c2df086 was visible.
- Not covered: Real multi-rank PP and attention-DP collectives were traced, not run.
Automated review by trtllm-agent-review. If a point is wrong, reply in its thread. Once you have pushed code changes and replied in every Blocker thread, the bot re-checks the Blockers within a few hours. A Blocker you think should not be fixed needs no code change: reply in its thread with the reason and the evidence.
f132d79 to
51c6766
Compare
|
/bot run |
51c6766 to
f070e85
Compare
|
/bot run |
|
PR_Github #88669 [ run ] triggered by Bot. Commit: |
|
PR_Github #88669 [ run ] completed with state
|
|
/bot run |
|
PR_Github #88697 [ run ] triggered by Bot. Commit: |
|
PR_Github #88697 [ run ] completed with state Resource maintenance in LLM/main/L0_Test-x86_64-Single-GPU #11153: AWS-PDX-SLURM-1 is unavailable for maintenance on 2026-12-02 17:00-23:00 UTC; H100_PCIe-PyTorch-Perf-1 was retired from main.
|
|
/bot run |
|
PR_Github #88727 [ run ] triggered by Bot. Commit: |
|
PR_Github #88727 [ run ] completed with state Resource maintenance in LLM/main/L0_Test-x86_64-Single-GPU #11868: AWS-PDX-SLURM-1 is unavailable for maintenance on 2026-12-02 17:00-23:00 UTC; H100_PCIe-PyTorch-Perf-1 was retired from main.
|
|
/bot run |
…elease Publish final responses before requesting teardown, and retain routing while independent transfer or response owners drain. Track allocation release, completed teardown, and PP agreement separately so repeated callbacks cannot double-free an allocation or repeat an agreed vote. Reuse existing scheduler and response readiness contracts. Include the typed lifecycle harness, distinct ownership cases, and compatible ADP, connector, and memory-monitor fixtures with the behavior they exercise. Validation: 209 focused CPU cases passed across lifecycle, KV pool rebalance, memory-monitor hooks, remote-tail ADP, and connector lifetime tests. Existing CPU CI selection is preserved without introducing redundant parameter combinations. Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
…etion Record terminal intent before error publication can be deferred by attention DP. A completed preemption save with terminal intent requests teardown directly and consumes the completion; these saves own no AsyncTransferManager claim and must not reset failed requests for replay. Cover both immediate and ADP-deferred error publication with the real error and completion methods, no artificial transfer claim, retained routing until publication, and exactly-once cleanup. Validation: all 16 lifecycle CPU cases passed, including both failed-preemption publication modes. Existing CI selection is unchanged. Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
…lay votes Centralize allocation-release and PP-agreement resets in reset_teardown_state. Construction and legacy pause clear terminal intent explicitly, while recompute preserves request-level termination state. Use the same reset contract from construction, execution-state initialization, and legacy pause. Verify with a real request that recompute re-arms allocation release and requires a new PP termination vote. Validation: lifecycle and recompute-pause test files passed together on the A100 host. The added PP replay case uses existing CPU CI selection and no new process or hardware tier. Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Read initialized lifecycle fields and response buffers directly rather than silently supplying defaults. Update the coordinator harness, shared executor factory, connector and recompute shells, scheduler-admission and forward-survival fixtures, diagnostic cleanup request, ADP request factory, and model-free GPU lifecycle shell together. Declare no pending V2 preemption in the scheduler-admission shell. These fixture adaptations preserve the required lifecycle contract and allow resource-release guards to execute for MagicMock requests. Validation: lifecycle, recompute, ADP connector, and the three previously failing cleanup/admission cases passed. The four-GPU lifecycle runtime is unavailable on this single-A100 host; existing CI registrations and matrices are unchanged. Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Use the idempotent terminal request path after connector claim release and delegate publication cleanup to _terminate_requests. Document which completion retries each deferred owner and clarify that executor effects request teardown rather than guaranteeing immediate release. Keep the real bulk-termination helper in ADP prefix-load recovery so staged cancellation reaches its per-request terminator. Add connector-only retry coverage and assert completed response enqueue precedes termination in the existing eight-case ADP drain matrix. Validation: lifecycle, ADP connector, and KV pool rebalance files passed together. Existing CPU cases retain their collective-order, response-delivery, resource-update, and exact-call-count assertions; no CI matrix expansion is introduced. Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
…blication Separate allocation-owner readiness from full terminal readiness. Once PP consensus completes, a buffered response retains routing and terminal cleanup while execution allocations release with peers, provided no preemption, load, or transfer owner remains. Use the completed vote for the publication retry. The ring regression requires both allocation frees at consensus, retained result-queue identity and multimodal state during enqueue, and exactly-once terminal cleanup without another vote. Validation: all 18 lifecycle CPU cases passed, including the remaining load/save owner gates. The final tracked tree is required to match the pre-reorganization tip exactly. Real multi-GPU/NCCL qualification remains unverified on the single-A100 host. Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Address the native cancellation assertion observed in CI pipeline 73701. A two-second sleep followed by one nonblocking status poll can observe an unfinished receive future even after the context peer has rejected it. The C++ polling path sets DISAGG_TRANS_ERROR only after consuming that future and reducing its outcome. Reuse the existing bounded completion waiter before checking the unchanged error-state assertion. Explicitly require both native transceivers to exist. This corrects an existing timing-sensitive GPU test without modifying PyExecutor, native cancellation behavior, the test matrix, or CI registration. Validation: deterministic execution of the actual test function with delayed boundary completion rejects the old one-shot polling sequence and passes the revised sequence; incorrect terminal outcomes and missing completion still fail. Strict Pyrefly reports no diagnostics and all 108 mock interfaces match. Native GPU execution is blocked locally by Multi device support is disabled. The separate B200 visual-gen process-memory-cap OOM is outside this change and remains unverified on the single-A100 host. Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
a6adfde to
5e0a856
Compare
|
/bot run |
|
PR_Github #88905 [ run ] triggered by Bot. Commit: |
|
PR_Github #88905 [ run ] completed with state
|
|
/bot run |
|
PR_Github #88947 [ run ] triggered by Bot. Commit: |
|
PR_Github #88947 [ run ] completed with state
|
Description
Native request completion also covers context transmission in progress, so final-response readiness cannot authorize allocation teardown. Introduce explicit scheduling, response, and release predicates while preserving the existing transfer owners, connector load deferral, and collective boundaries.
Publish responses before terminating their requests through one shared operation. When independent connector and transceiver completions race with a staged response, defer teardown until publication retains the routing. Retry early teardown after the last claim releases unless it actually completed, rather than skipping solely on the partial-reuse configuration.
Track allocation release and terminal teardown independently, reset allocation state for replay, and retain completed PP consensus while local owners drain. After PP consensus, a buffered response keeps routing and terminal cleanup alive while execution allocations release with peers, provided no DMA or preemption owner remains. This prevents duplicate frees after cancellation during recompute, a second PP vote, and rank-local KV capacity skew from delayed response publication.
Add CPU regression coverage for both dual-owner completion orders, failed-preemption terminal intent, and the real two-rank PP termination handler with delayed publication.
Dev Engineer Review
py_executor.py: Request teardown now waits for pending preemption, response publication, connector loads, and KV transfers. Verify that every gate releases on all paths. A missed release can leak resources or stall teardown.py_executor.py: Terminal intent and completed termination are tracked separately. PP termination consensus persists across waits, so a completed vote is not repeated. Verify that a delayed owner cannot block the PP ring.py_executor.py: Transfer completion now terminates requests directly. Context requests no longer stay alive for partial reuse. Confirm this behavior change is intended.llm_request.py: New public methodLlmRequest.reset_teardown_state(*, clear_terminal_intent: bool)._initialize_execution_statepassesFalse. Check that other callers preserve terminal intent as intended.main. The latest reported CI results are FAILURE for builds 71548, 71710, 71781, and 71916, and UNSTABLE for build 71938. No result is available for commit9756f4b.QA Engineer Review
tests/unittest/_torch/disaggregation/test_request_lifecycle.py(+430 lines, 10 test functions, 27 CPU cases reported by the author). Covers dual-owner completion order, idempotent release, recompute and legacy-pause allocation lifetimes, safe release while owners remain, PP consensus after recompute, delayed ring release, and failed-preemption victims during connector saves.test_benchmark_disagg.py,test_disagg_coordinator_errors.py,test_kv_pool_rebalance.py,test_executor_memory_monitor_hooks.py,test_kv_connector_executor_lifetime.py,test_remote_tail_adp_phase.py,coordinator_harness.py,fake_executor_effects.py, andexecutor_test_utils.py. Most changes are fixtures, stubs, or documentation.ci: full pre-merge approvedlabel.Per-File QA Perspective
llm_request.py: Verify that execution-state reinitialization keeps terminal intent and completed teardown.py_executor.py: Verify response publication before termination, deferred teardown, PP consensus retention, and terminal handling after preemption.test_benchmark_disagg.py: Stub reports no pending preemption. Covered by the disaggregation suite.test_disagg_coordinator_errors.py: Addsis_preemption_pendingto the error-path fixture.test_request_lifecycle.py: New CPU lifecycle coverage. Test-db listing not established.test_kv_pool_rebalance.py: ADP drain test binds the real publish and terminate helpers.test_executor_memory_monitor_hooks.py: Binds the real publish method for error handling.test_kv_connector_executor_lifetime.py: Adds pending-load and termination flags.test_remote_tail_adp_phase.py: Setspy_request_id. Fixture change only.interfaces.py:terminate_requestdocstring change. No signature change.coordinator_harness.py: Initializes four termination flags toFalse. Fixture only.fake_executor_effects.py: Documentation change only.executor_test_utils.py: Initializes pending response lists. Fixture only.Test Coverage
The existing CPU PP ring case now requires allocation release on both ranks at consensus while result routing survives until enqueue. It adds assertions without expanding the matrix, processes, or CI registration. Fixture corrections preserve the existing CPU, H100, and DGX_B200 selections.
Local validation: 146 recompute/ADP cases, 18 lifecycle cases, and 373 executor/connector CPU cases passed. Strict Pyrefly reported no diagnostics for all five changed files. Broader CPU sweeps were stopped in unrelated RPC/service concurrency tests; all ten observed MPI-related failures reproduced with the unchanged pre-fix executor. The four-GPU lifecycle runtime remains unverified on this single-A100 host.
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.