Skip to content

[https://nvbugs/6448152][perf] diagnose 2x admission without PP consensus#16517

Draft
chienchunhung wants to merge 4 commits into
NVIDIA:mainfrom
chienchunhung:codex/nvbug-6448152-admission-2x-no-consensus
Draft

[https://nvbugs/6448152][perf] diagnose 2x admission without PP consensus#16517
chienchunhung wants to merge 4 commits into
NVIDIA:mainfrom
chienchunhung:codex/nvbug-6448152-admission-2x-no-consensus

Conversation

@chienchunhung

@chienchunhung chienchunhung commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Caution

DIAGNOSTIC ONLY — DO NOT MERGE.

Question

Does the conservative generation-side KV-transfer admission budget cause the GB300 DeepSeek-R1 throughput regression, and does PP context-transfer consensus become material after that budget is relaxed?

This is the 2× admission / PP consensus disabled arm. The matched consensus-enabled arm is #16518.

Controlled change

  • Start from the exact tested [https://nvbugs/6448152][perf] diagnose PP consensus traffic #16487 head (1522ea7230), which produced 798.58 output tokens/s with the one-window budget and runtime PP context consensus traffic disabled.

  • Keep max_tokens_in_buffer: 131104; physical C++/NIXL transfer-buffer allocation is unchanged.

  • Apply a diagnostic-only multiplier to PyExecutor's logical admission budget:

    2 * ceil(max_tokens_in_buffer / tokens_per_block)

  • Keep TRTLLM_DIAGNOSTIC_DISABLE_PP_CONTEXT_CONSENSUS_TRAFFIC=1 enabled.

  • Leave the diagnostic multiplier default at 1; only the exact GB300 perf-sanity YAML sets it to 2.

For this FlashMLA workload, the expected base budget is 2,049 blocks. A 131,072-token request costs 2,048 blocks, so the effective 4,098-block budget admits two full transfers (4,096 blocks) without resizing the transport buffer.

The run must contain both markers:

DIAGNOSTIC ONLY: disaggregated admission base window=...
DIAGNOSTIC OBSERVED: disaggregated admission used ... exceeding the base window ... multiplier=2

The second marker is one-shot and proves that the expanded budget was exercised, rather than merely configured.

Experiment matrix

PP context consensus Admission budget Result
enabled ~796.69 tok/s (preliminary #16386 point)
disabled 798.58 tok/s (#16487)
enabled pending (#16518)
disabled pending (this PR)

The two 2× arms share the same code and differ only by the no-consensus environment flag. If their results are unexpectedly close to a threshold, rerun a same-harness 1× control to remove the negligible fast-return diagnostic method-call delta from the historical controls.

flowchart LR
    A["#16487 tested anchor<br/>1× / consensus off"] --> H["common logical 2× admission harness"]
    H --> OFF["#16517<br/>2× / consensus off"]
    H --> ON["#16518<br/>2× / consensus on"]
Loading

Interpretation

  • Both 2× arms recover similarly: admission control dominates; PP consensus is overlapped or immaterial for this workload.
  • Only 2×/consensus-off recovers: admission masks a PP-consensus bottleneck; both factors interact.
  • Both improve, but consensus-off is materially higher: both admission and consensus contribute.
  • Neither improves: investigate retained transfer lifecycle/state serialization or another bottleneck.

Validation

  • Full changed-file pre-commit suite under Python 3.13: passed.
  • Python bytecode compilation: passed.
  • Focused pytest collection is unavailable on this Mac checkout because the local environment lacks transformers and the compiled TRT-LLM runtime; CI owns runtime validation.
  • Independent diff review found no correctness blocker and confirmed the exact workload uses PyExecutor admission with the C++ NIXL transceiver.

Target CI

Run only:

GB300-12_GPUs-3_Nodes-PyTorch-Disagg-PerfSanity-CTX1-NODE1-GPU4-GEN1-NODE2-GPU8-Post-Merge-1

Compare output-token throughput with 798.58 (#16487) and 1562.83 baseline.

Signed-off-by: Chien-Chun Hung <2679986+chienchunhung@users.noreply.github.com>
Signed-off-by: Chien-Chun Hung <2679986+chienchunhung@users.noreply.github.com>
Signed-off-by: Chien-Chun Hung <2679986+chienchunhung@users.noreply.github.com>
Signed-off-by: Chien-Chun Hung <2679986+chienchunhung@users.noreply.github.com>
@chienchunhung

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast --stage-list "GB300-12_GPUs-3_Nodes-PyTorch-Disagg-PerfSanity-CTX1-NODE1-GPU4-GEN1-NODE2-GPU8-Post-Merge-1"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59815 [ run ] triggered by Bot. Commit: f645cb7 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59815 [ run ] completed with state FAILURE. Commit: f645cb7
/LLM/main/L0_MergeRequest_PR pipeline #48224 (Partly Tested) 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

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast --stage-list "GB300-12_GPUs-3_Nodes-PyTorch-Disagg-PerfSanity-CTX1-NODE1-GPU4-GEN1-NODE2-GPU8-Post-Merge-1"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59838 [ run ] triggered by Bot. Commit: f645cb7 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59838 [ run ] completed with state FAILURE. Commit: f645cb7
/LLM/main/L0_MergeRequest_PR pipeline #48244 (Partly Tested) 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

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast --stage-list "GB300-12_GPUs-3_Nodes-PyTorch-Disagg-PerfSanity-CTX1-NODE1-GPU4-GEN1-NODE2-GPU8-Post-Merge-1"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59879 [ run ] triggered by Bot. Commit: f645cb7 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59879 [ run ] completed with state FAILURE. Commit: f645cb7
/LLM/main/L0_MergeRequest_PR pipeline #48282 (Partly Tested) 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

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast --stage-list "GB300-12_GPUs-3_Nodes-PyTorch-Disagg-PerfSanity-CTX1-NODE1-GPU4-GEN1-NODE2-GPU8-Post-Merge-1"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60016 [ run ] triggered by Bot. Commit: f645cb7 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60016 [ run ] completed with state FAILURE. Commit: f645cb7
/LLM/main/L0_MergeRequest_PR pipeline #48407 (Partly Tested) 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

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.

2 participants