Skip to content

[TRTLLM-12714][fix] Suspend CUDA-graph padding dummies before pool rebalance adjust() - #16157

Merged
thorjohnsen merged 3 commits into
NVIDIA:mainfrom
thorjohnsen:fix/kv-rebalance-cuda-graph-padding-dummy
Aug 12, 2026
Merged

[TRTLLM-12714][fix] Suspend CUDA-graph padding dummies before pool rebalance adjust()#16157
thorjohnsen merged 3 commits into
NVIDIA:mainfrom
thorjohnsen:fix/kv-rebalance-cuda-graph-padding-dummy

Conversation

@thorjohnsen

@thorjohnsen thorjohnsen commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Description

CUDAGraphRunner retains one padding dummy request per captured draft length, whose KVCacheManagerV2 cache stays ACTIVE across iterations but never appears in PyExecutor.active_requests. The rebalance hook therefore never suspends them, and the first live adjust() fails its all-caches-suspended precondition, terminating the executor event loop along with all in-flight requests.

This PR suspends the dummies alongside the active requests and resumes them after adjust().

Why suspend rather than free. Suspension is what the precondition actually asks for: it tears down the cache's base-page-index buffers and releases its page locks, which is what makes the pages safe to migrate. Those buffers are written only when a page lock is taken (_page.py:449 / page.cpp:380) and cleared on unlock (_page.py:467 / page.cpp:391) — nothing refreshes them when a page later migrates. A cache left ACTIVE across adjust() can therefore end up addressing slots that now belong to other sequences, and the shrink path migrates held pages by design (_gather_persistent_pagesshrink_pool_group_batchedMigrate(defrag=True)).

Interaction with #16072. An earlier revision of this PR freed the dummies and let _pad_batch re-create them. That is no longer safe: #16072 pre-allocates them at the end of warmup precisely because lazy allocation against a saturated KV cache fails and silently drops padded batches to eager mode for the rest of the process lifetime. Freeing them mid-run returns to that lazy path at the worst moment — rebalance only fires after 2000 sampled caches and a 120 s cooldown, i.e. under sustained load, and adjust() may have just shrunk the pool group the dummy maps to. preallocate_padding_dummies only runs from ModelEngine.warmup, so the pre-allocation would not be re-established. Suspending holds the reservation across the whole rebalance instead.

Resume failure. resume_request can legitimately return False (GPU pressure above max_util_for_resume, or out of pages). A real request is then left suspended for the scheduler to reactivate, but nothing reschedules a padding dummy, and _get_or_create_padding_dummy returns a cached dummy without checking that its cache is live — so a dummy left suspended would be padded into a batch with a torn-down block table. One that cannot be resumed is released and dropped from the runner instead, falling back to lazy re-creation.

release_padding_dummy() releases the dummy from every manager that allocated part of it: the main KV cache manager, the one-model draft KV cache manager, the speculative resource manager slot, and (for encoder-decoder models) the cross-KV cache manager. Duplicates are dropped by identity.

Test Coverage

tests/unittest/_torch/executor/test_kv_pool_rebalance.py, new TestPaddingDummies class (21 passed, was 15):

tests/unittest/_torch/executor/test_pytorch_model_engine.py, new test_release_padding_dummy_covers_every_manager:

  • Verifies release_padding_dummy() drops the dummy from the runner map, frees the spec resource manager slot, does not invoke the cross-KV manager for a non-encoder-decoder engine, and is idempotent on a second call.

Mutation-tested in both directions:

Mutation Result
Dummies never suspended 4 of the new tests fail
Free unconditionally (this PR's earlier approach) exactly 1 fails — test_padding_dummy_is_resumed_and_never_freed

The second confirms the suite would catch a regression against #16072.

Live reproduction. On main with gemma-3-1b-it (VSWA, 2 pool groups) and CudaGraphConfig(enable_padding=True), under TLLM_KV_CACHE_MANAGER_V2_BACKEND=python — where the precondition is a plain assert rather than the C++ backend's debug-gated TLLM_CHECK_DEBUGadjust() raised AssertionError at _kv_cache_manager.py:872 and killed the executor loop. With this change the same run completes and the GPU pool ratio moves from 0.500/0.500 to 0.667/0.333.

Also run: kv_cache_manager_v2_tests/test_kv_cache_manager_v2.py — 112 passed, 13 skipped (unaffected; the change touches only py_executor.py).

PR Checklist

  • 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-compatible or api-breaking. For api-breaking, include BREAKING in 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.

@thorjohnsen
thorjohnsen requested a review from a team as a code owner July 9, 2026 00:24
@thorjohnsen
thorjohnsen requested a review from dongxuy04 July 9, 2026 00:24
@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

/bot run

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

KV pool rebalance now suspends active CUDA-graph padding dummies before adjustment. It resumes dummies afterward without freeing them. Unresumable dummies release resources and are removed for later recreation. Tests cover these paths.

Changes

KV pool rebalance padding dummy lifecycle

Layer / File(s) Summary
Release padding dummy resources
tensorrt_llm/_torch/pyexecutor/cuda_graph_runner.py, tests/unittest/_torch/executor/test_pytorch_model_engine.py
The graph runner releases padding-dummy resources from all applicable managers, removes the cached dummy, and supports repeated release calls. Tests cover specification and encoder-decoder resource managers.
Suspend and restore padding dummies
tensorrt_llm/_torch/pyexecutor/py_executor.py
The rebalance flow suspends cached padding dummies before adjust(). It resumes them afterward. It releases and removes dummies that cannot resume.
Test padding dummy lifecycle
tests/unittest/_torch/executor/test_kv_pool_rebalance.py
The test fixture supports optional CUDA-graph runners and padding-dummy mappings. Tests cover suspension, resumption, captured draft lengths, unresumable dummies, already-suspended dummies, and absent runners.

Estimated code review effort: 4 (Complex) | ~40 minutes

Sequence Diagram(s)

sequenceDiagram
  participant PyExecutor
  participant CUDAGraphRunner
  participant KvCacheManager
  participant ResourceManagers
  PyExecutor->>CUDAGraphRunner: suspend padding dummies
  PyExecutor->>KvCacheManager: adjust KV pool
  PyExecutor->>CUDAGraphRunner: resume padding dummies
  CUDAGraphRunner->>ResourceManagers: release unresumable dummy resources
  CUDAGraphRunner->>CUDAGraphRunner: remove cached dummies
Loading

Possibly related PRs

Suggested reviewers: vallis-neria, junyixu-nv, bo-nv

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the fix and its impact on CUDA-graph padding dummies during KV-pool rebalance.
Description check ✅ Passed The description explains the issue, solution, rationale, edge cases, tests, reproduction, and checklist status in the required sections.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
tests/unittest/_torch/executor/test_kv_pool_rebalance.py (1)

206-235: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Good regression coverage for the free-before-adjust ordering.

The test correctly exercises the fix's core contract: free_resources is called exactly once with the dummy, padding_dummy_requests ends up empty, and the free happens before adjust(). One gap: there's no test for the runner is None (no cuda_graph_runner attribute) or multi-dummy-map case; the current fixture always provides a MagicMock runner with a dict, so that guard branch (if runner is not None and runner.padding_dummy_requests:) is untested. Given it's a trivial getattr/dict-truthiness guard, this is a minor coverage gap rather than a blocker — consider adding it if you want full branch coverage, but not required for this PR.

As per path instructions, "Act as a QA engineer reviewing test changes and coverage... suggest concrete list file names and whether coverage is sufficient, insufficient, or needs follow-up outside the PR": coverage here is sufficient for the fix's primary contract; the runner is None branch is an optional follow-up.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/unittest/_torch/executor/test_kv_pool_rebalance.py` around lines 206 -
235, Add a small follow-up test around PyExecutor._maybe_rebalance_kv_pools to
cover the guard path where cuda_graph_runner is None or where
padding_dummy_requests is empty, since the current test only exercises the
non-empty MagicMock runner case. Reuse the existing _make_executor and
_make_request helpers, but set model_engine.cuda_graph_runner to None (or an
empty dummy map) and assert the rebalance path still runs without trying to free
padding dummies. This will cover the runner-null/dict-truthiness branch in the
same area as test_frees_cuda_graph_padding_dummies_before_adjust.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@tests/unittest/_torch/executor/test_kv_pool_rebalance.py`:
- Around line 206-235: Add a small follow-up test around
PyExecutor._maybe_rebalance_kv_pools to cover the guard path where
cuda_graph_runner is None or where padding_dummy_requests is empty, since the
current test only exercises the non-empty MagicMock runner case. Reuse the
existing _make_executor and _make_request helpers, but set
model_engine.cuda_graph_runner to None (or an empty dummy map) and assert the
rebalance path still runs without trying to free padding dummies. This will
cover the runner-null/dict-truthiness branch in the same area as
test_frees_cuda_graph_padding_dummies_before_adjust.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 34f50a4b-a97f-4d3f-b709-faf252a59d14

📥 Commits

Reviewing files that changed from the base of the PR and between 4cd00bb and 236f52c.

📒 Files selected for processing (2)
  • tensorrt_llm/_torch/pyexecutor/py_executor.py
  • tests/unittest/_torch/executor/test_kv_pool_rebalance.py

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #58329 [ run ] triggered by Bot. Commit: 236f52c Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #58329 [ run ] completed with state SUCCESS. Commit: 236f52c
/LLM/main/L0_MergeRequest_PR pipeline #46959 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

/bot

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

GitHub Bot Help

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

Details

run [--reuse-test (optional)pipeline-id --disable-fail-fast --skip-test --stage-list "A10-PyTorch-1, xxx" --gpu-type "A30, H100_PCIe" --test-backend "pytorch, cpp" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" --detailed-log --debug(experimental) --high-priority]

Launch build/test pipelines. All previously running jobs will be killed.

--reuse-test (optional)pipeline-id (OPTIONAL) : Allow the new pipeline to reuse build artifacts and skip successful test stages from a specified pipeline or the last pipeline if no pipeline-id is indicated. If the Git commit ID has changed, this option will be always ignored. The DEFAULT behavior of the bot is to reuse build artifacts and successful test results from the last pipeline.

--disable-reuse-test (OPTIONAL) : Explicitly prevent the pipeline from reusing build artifacts and skipping successful test stages from a previous pipeline. Ensure that all builds and tests are run regardless of previous successes.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-PyTorch-1, xxx" (OPTIONAL) : Only run the specified test stages. Supports wildcard * for pattern matching (e.g., "*PerfSanity*" matches all stages containing PerfSanity). Examples: "A10-PyTorch-1, xxx", "PerfSanity". Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--test-backend "pytorch, cpp" (OPTIONAL) : Skip test stages which don't match the specified backends. Only support [pytorch, cpp, tensorrt, triton]. Examples: "pytorch, cpp" (does not run test stages with tensorrt or triton backend). Note: Does NOT update GitHub pipeline status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests in addition to running L0 pre-merge pipeline.

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.

--extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Supports wildcard * for pattern matching. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx", --extra-stage "Post-Merge".

--detailed-log (OPTIONAL) : Enable flushing out all logs to the Jenkins console. This will significantly increase the log volume and may slow down the job.

--debug (OPTIONAL) : Experimental feature. Enable access to the CI container for debugging purpose. Note: Specify exactly one stage in the stage-list parameter to access the appropriate container environment. Note: Does NOT update GitHub check status.

--high-priority (OPTIONAL) : Run the pipeline with high priority. This option is restricted to authorized users only and will route the job to a high-priority queue.

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #58504 [ run ] triggered by Bot. Commit: 236f52c Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #58504 [ run ] completed with state SUCCESS. Commit: 236f52c
/LLM/main/L0_MergeRequest_PR pipeline #47111 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #58989 [ run ] triggered by Bot. Commit: 236f52c Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #58989 [ run ] completed with state SUCCESS. Commit: 236f52c
/LLM/main/L0_MergeRequest_PR pipeline #47519 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@chienchunhung chienchunhung left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

Comment thread tensorrt_llm/_torch/pyexecutor/py_executor.py Outdated
@yizhang-nv

Copy link
Copy Markdown
Member

Should address the other manager's free resource as well.

Comment thread tensorrt_llm/_torch/pyexecutor/py_executor.py Outdated
@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65075 [ run ] triggered by Bot. Commit: c2b979d Link to invocation

…s managers

_get_or_create_padding_dummy spreads one dummy request ID across up to
four managers: the main KV cache manager, the one-model draft KV cache
manager, the speculative resource manager slot and, for encoder-decoder,
the cross-KV cache manager. Releasing only the main one leaves the
others holding the ID, and re-creation reuses the same
CUDA_GRAPH_DUMMY_REQUEST_ID - runtime_draft_len.

Add CUDAGraphRunner.release_padding_dummy(), the release path symmetric
with _get_or_create_padding_dummy: it frees the dummy from every manager
that allocated part of it and drops it from the runner so a later padded
step re-creates it. The manager list lives in _padding_dummy_managers()
next to the creation path so the two stay in step, and is deduplicated
by identity since double-freeing one manager is not safe in general.

The rebalance hook's resume-failure branch now goes through it instead
of calling free_resources on the main KV cache manager alone. That
branch is the only place the dummies are released at all: the normal
path suspends and resumes them.

Addresses review feedback from chienchunhung and yizhang-nv on NVIDIA#16157.

Signed-off-by: Thor Johnsen <41591019+thorjohnsen@users.noreply.github.com>
@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

@yizhang-nv — done in 73a0e2887e, alongside @chienchunhung's review comment making the same point; full detail is on that thread.

Short version: the PR has been reworked to suspend the padding dummies for adjust() and resume them afterwards instead of freeing them, since adjust()'s precondition is that every living KV cache is suspended, not that it is absent. The normal path therefore no longer releases anything — which is also what keeps #16072's warmup pre-allocation intact (see @liji-nv's thread).

The one remaining release, on the rare resume-failure branch, now goes through a new CUDAGraphRunner.release_padding_dummy() that frees the dummy from every manager it was registered with — main KV cache manager, one-model draft KV cache manager, speculative resource manager slot, and the encoder-decoder cross-KV cache manager — rather than the main one alone.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/unittest/_torch/executor/test_pytorch_model_engine.py`:
- Around line 1480-1483: Extend the test around the non-encoder-decoder
assertion to cover the encoder-decoder branch: set runner.is_encoder_decoder to
True, create a padding dummy through the existing setup, and verify
cross_manager.free_resources is called exactly once with that dummy. Preserve
the existing assertion that non-encoder-decoder runners do not invoke the
cross-KV manager, and exercise the conditional manager from
_padding_dummy_managers.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 5516db92-6777-4f16-9b2a-d823308db8a8

📥 Commits

Reviewing files that changed from the base of the PR and between c2b979d and 73a0e28.

📒 Files selected for processing (4)
  • tensorrt_llm/_torch/pyexecutor/cuda_graph_runner.py
  • tensorrt_llm/_torch/pyexecutor/py_executor.py
  • tests/unittest/_torch/executor/test_kv_pool_rebalance.py
  • tests/unittest/_torch/executor/test_pytorch_model_engine.py
🚧 Files skipped from review as they are similar to previous changes (2)
  • tensorrt_llm/_torch/pyexecutor/py_executor.py
  • tests/unittest/_torch/executor/test_kv_pool_rebalance.py

Comment thread tests/unittest/_torch/executor/test_pytorch_model_engine.py
@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65077 [ run ] triggered by Bot. Commit: c7ef00d Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65079 [ run ] triggered by Bot. Commit: c7ef00d Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65077 [ run ] completed with state ABORTED. Commit: c7ef00d

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65075 [ run ] completed with state ABORTED. Commit: c2b979d

Link to invocation

@chienchunhung chienchunhung left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing the comments; LGTM!

The Known limitation paragraph in the PR description is stale at the current head: release_padding_dummy() now covers the primary, one-model draft, speculative-resource, and encoder-decoder cross-KV managers. Could you remove or update that paragraph so the description matches the implementation?

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65079 [ run ] completed with state SUCCESS. Commit: c7ef00d
/LLM/main/L0_MergeRequest_PR pipeline #52885 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65134 [ run ] triggered by Bot. Commit: c7ef00d Link to invocation

@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

@asfiyab-nvidia @JunyiXu-nv — could one of you take a look when you get a chance? The PR has two approvals but is missing one from trt-llm-runtime-devs to cover cuda_graph_runner.py and test_pytorch_model_engine.py.

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65134 [ run ] completed with state FAILURE. Commit: c7ef00d
/LLM/main/L0_MergeRequest_PR pipeline #52931 completed with status: 'UNSTABLE'

CI Report

⚠️ Multi-GPU Label Required:
Multi-GPU tests require the ci: full pre-merge approved label on this PR. Ask a member of NVIDIA/trt-llm-ci-approvers to add the label, then re-trigger CI with the same bot command (no rebase needed).

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Link to invocation

@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

@mikeiovine @litaotju @QiJune @pcastonguay @schetlur-nv @juney-nvidia — could one of you add ci: full pre-merge approved and approve on behalf of trt-llm-torch-runtime-devs?

PR #16157 already has two code-review approvals but needs an approval from trt-llm-torch-runtime-devs for one file, and single-device CI passes. This is an important bug fix: without it, memory pool rebalancing in KVCacheManager V2 will crash when CUDA graph padding dummies are live at the time adjust() fires. Hoping to get this merged soon so I can continue extending rebalancing to multi-GPU configurations.

@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65390 [ run ] triggered by Bot. Commit: c7ef00d Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65390 [ run ] completed with state FAILURE. Commit: c7ef00d
/LLM/main/L0_MergeRequest_PR pipeline #53151 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@thorjohnsen

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65459 [ run ] triggered by Bot. Commit: c7ef00d Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #65459 [ run ] completed with state SUCCESS. Commit: c7ef00d
/LLM/main/L0_MergeRequest_PR pipeline #53208 completed with status: 'SUCCESS'

CI Report

Link to invocation

@thorjohnsen
thorjohnsen enabled auto-merge (squash) August 12, 2026 03:40

@schetlur-nv schetlur-nv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rubber stamping for runtime devs based on others' reviews

@thorjohnsen
thorjohnsen merged commit 157de10 into NVIDIA:main Aug 12, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants