Skip to content

[None][chore] Add NVTX ranges to per-iteration ADP sync points in PyExecutor#16422

Merged
lancelly merged 3 commits into
NVIDIA:mainfrom
lancelly:laliao/nvtx-adp-disagg-sync-ranges
Jul 23, 2026
Merged

[None][chore] Add NVTX ranges to per-iteration ADP sync points in PyExecutor#16422
lancelly merged 3 commits into
NVIDIA:mainfrom
lancelly:laliao/nvtx-adp-disagg-sync-ranges

Conversation

@lancelly

@lancelly lancelly commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Description

_handle_disagg_cache_errors_synced (a tp_allgather error vote at the top of every executor iteration when disagg + attention DP are enabled) and _can_queue (a post-schedule batch-size tp_allgather under attention DP) are blocking host-side collectives on the executor loop's critical path.

Unlike the sibling disagg status checks (_check_disagg_gen_transfer_status, _check_disagg_ctx_schedulable_status, _check_disagg_*_cache_transfer_status, _pad_attention_dp_dummy_request, _fetch_new_requests), they carry no NVTX annotation, so in nsys traces they show up as anonymous gaps — one at the top of each iteration and one between scheduling and forward — and are easy to misread as scheduler overhead or idle host time.

This PR adds @nvtx_range to both, matching the existing style in the file. No functional change.

Summary by CodeRabbit

  • Performance Monitoring
    • Added runtime tracing markers to improve visibility into executor activity.
    • No user-facing behavior or functionality has changed.

…xecutor

_handle_disagg_cache_errors_synced (tp_allgather error vote at the top of
every executor iteration) and _can_queue (post-schedule batch-size
tp_allgather under attention DP) are blocking host-side collectives, but
unlike the sibling disagg status checks they carry no NVTX range, so they
show up as anonymous gaps in nsys traces. Annotate both for profiling
visibility. No functional change.

Signed-off-by: Liao Lanyu <108499334+lancelly@users.noreply.github.com>
@lancelly
lancelly marked this pull request as ready for review July 15, 2026 10:51
@lancelly
lancelly requested review from a team as code owners July 15, 2026 10:51
@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: b89ab467-5019-4d4b-a5b9-fccf4c8b5d9e

📥 Commits

Reviewing files that changed from the base of the PR and between e54fe55 and 51011c8.

📒 Files selected for processing (1)
  • tensorrt_llm/_torch/pyexecutor/py_executor.py

📝 Walkthrough

Walkthrough

Adds NVTX range decorators to _can_queue and _handle_disagg_cache_errors_synced in PyExecutor; method logic and control flow remain unchanged.

Changes

PyExecutor instrumentation

Layer / File(s) Summary
Add NVTX ranges
tensorrt_llm/_torch/pyexecutor/py_executor.py
Adds NVTX decorators to _can_queue and _handle_disagg_cache_errors_synced without changing their implementations.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: chienchunhung, 2ez4bz, zheyuf

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change, but it omits the required Test Coverage and PR Checklist sections from the template. Add the missing Test Coverage and PR Checklist sections, and include any relevant tests or note that none were run.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is specific and matches the NVTX instrumentation change in PyExecutor.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59441 [ run ] triggered by Bot. Commit: 51011c8 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59441 [ run ] completed with state SUCCESS. Commit: 51011c8
/LLM/main/L0_MergeRequest_PR pipeline #47909 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59899 [ run ] triggered by Bot. Commit: 51011c8 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59899 [ run ] completed with state FAILURE. Commit: 51011c8
/LLM/main/L0_MergeRequest_PR pipeline #48301 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60152 [ run ] triggered by Bot. Commit: 51011c8 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60152 [ run ] completed with state SUCCESS. Commit: 51011c8
/LLM/main/L0_MergeRequest_PR pipeline #48530 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60336 [ run ] triggered by Bot. Commit: 4f1abf5 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60336 [ run ] completed with state FAILURE. Commit: 4f1abf5
/LLM/main/L0_MergeRequest_PR pipeline #48681 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

@mikeiovine
mikeiovine removed the request for review from Tabrizian July 20, 2026 15:44
@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60537 [ run ] triggered by Bot. Commit: 4f1abf5 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60537 [ run ] completed with state FAILURE. Commit: 4f1abf5
/LLM/main/L0_MergeRequest_PR pipeline #48856 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60596 [ run ] triggered by Bot. Commit: 4f1abf5 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60596 [ run ] completed with state SUCCESS. Commit: 4f1abf5
/LLM/main/L0_MergeRequest_PR pipeline #48907 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60633 [ run ] triggered by Bot. Commit: 4f1abf5 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60633 [ run ] completed with state SUCCESS. Commit: 4f1abf5
/LLM/main/L0_MergeRequest_PR pipeline #48940 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60662 [ run ] triggered by Bot. Commit: 74fdce8 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60662 [ run ] completed with state FAILURE. Commit: 74fdce8
/LLM/main/L0_MergeRequest_PR pipeline #48960 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60941 [ run ] triggered by Bot. Commit: 74fdce8 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60941 [ run ] completed with state SUCCESS. Commit: 74fdce8
/LLM/main/L0_MergeRequest_PR pipeline #49205 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60973 [ run ] triggered by Bot. Commit: 74fdce8 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60973 [ run ] completed with state FAILURE. Commit: 74fdce8
/LLM/main/L0_MergeRequest_PR pipeline #49235 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #61003 [ run ] triggered by Bot. Commit: 74fdce8 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #61003 [ run ] completed with state FAILURE. Commit: 74fdce8
/LLM/main/L0_MergeRequest_PR pipeline #49261 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #61206 [ run ] triggered by Bot. Commit: 74fdce8 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #61206 [ run ] completed with state SUCCESS. Commit: 74fdce8
/LLM/main/L0_MergeRequest_PR pipeline #49451 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

@lancelly

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #61242 [ run ] triggered by Bot. Commit: 74fdce8 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #61242 [ run ] completed with state SUCCESS. Commit: 74fdce8
/LLM/main/L0_MergeRequest_PR pipeline #49483 completed with status: 'SUCCESS'

CI Report

Link to invocation

@lancelly
lancelly merged commit 83733c4 into NVIDIA:main Jul 23, 2026
7 checks passed
hhzhang16 added a commit to hhzhang16/TensorRT-LLM that referenced this pull request Jul 23, 2026
…nnahz/dep-1083-port-flashinfer-stable-va-lifecycle-for-native-all-reduce

* 'main' of https://github.com/NVIDIA/TensorRT-LLM: (83 commits)
  [None][feat] Bind SourceIdentity to checkpoint artifacts (NVIDIA#16159)
  [None][infra] Waive 4 failed cases for main in pre-merge 49550 (NVIDIA#16798)
  [None][fix] Make FlashInfer sampling op wrappers opaque to Dynamo (NVIDIA#16732)
  [None][feat] top-k: route decode to CuTe DSL GVR top-k in e2e (NVIDIA#16420)
  [None][feat] Default GLM-5 to the Python KV-cache transceiver (NVIDIA#16524)
  [None][chore] Add NVTX ranges to per-iteration ADP sync points in PyExecutor (NVIDIA#16422)
  [https://nvbugs/6426850][test] Unwaive Qwen3.5 397B NVFP4 ADP4 TRTLLM test (NVIDIA#16348)
  [https://nvbugs/6445456][fix] Restore inplace ops for functionalization v2 (NVIDIA#16410)
  [None][infra] Waive 1 failed cases for main in pre-merge 49229 (NVIDIA#16786)
  [None][fix] Load DeepSeek V4 mixed-precision NVFP4 checkpoints (NVIDIA#16433)
  [None][feat] ADP conversation router: configurable least-queued placement for new conversations (NVIDIA#16294)
  [None][infra] Waive 1 failed cases for main in pre-merge 49424 (NVIDIA#16780)
  [None][infra] Waive 1 failed cases for main in pre-merge 49424 (NVIDIA#16781)
  [TRTLLMINF-188][infra] Require approval for PerfSanity wildcard runs (NVIDIA#16777)
  [TRTLLM-13969][feat] Support MiniMax M3 for Disaggregated Serving (NVIDIA#16017)
  [NVIDIA#11932][fix] Filter CUTLASS MoE GEMM tile configs by device shared memory on SM121 (NVIDIA#12704)
  [None][chore] Remove attention backend test waivers (NVIDIA#16723)
  [TRTLLM-14540][perf] Skip fp32 state round-trip in FlashInfer GDN pre… (NVIDIA#16703)
  [TRTLLM-13694][feat] Add IBDB recipe provenance and refresh configs (NVIDIA#16254)
  [None][infra] Preview/bump/main (NVIDIA#16758)
  ...

Signed-off-by: Hannah Zhang <hannahz@nvidia.com>
yuanjingx87 pushed a commit to yuanjingx87/TensorRT-LLM that referenced this pull request Jul 26, 2026
…xecutor (NVIDIA#16422)

Signed-off-by: Liao Lanyu <108499334+lancelly@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants