Skip to content

[None][fix] Return 3-tuple from check_gen_transfer_status fast path - #14162

Merged
qiaoxj07 merged 1 commit into
NVIDIA:feat/deepseek_v4from
qiaoxj07:fix/disagg-gen-status-tuple-arity
May 19, 2026
Merged

[None][fix] Return 3-tuple from check_gen_transfer_status fast path#14162
qiaoxj07 merged 1 commit into
NVIDIA:feat/deepseek_v4from
qiaoxj07:fix/disagg-gen-status-tuple-arity

Conversation

@qiaoxj07

@qiaoxj07 qiaoxj07 commented May 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix tuple-arity mismatch in KvCacheTransceiverV2.check_gen_transfer_status: the pure-CTX early-out returned [], [] while the normal path and the sole caller (py_executor._check_disagg_gen_cache_transfer_status) expect a 3-tuple (completed, failed, cancelled_reqs).
  • Both return paths now return [], [], [] / (completed, failed, cancelled_reqs) consistently.

Repro

On a fresh disagg run (DSv4-Pro, ctx1_gen1_dep16, GB300), the GEN side's executor died with:

[RANK 0] Error in event loop: not enough values to unpack (expected 3, got 2)
  File ".../py_executor.py", line 3874, in _check_disagg_gen_cache_transfer_status
    _, _, cancelled_reqs = result
ValueError: not enough values to unpack (expected 3, got 2)

Triggered when _ever_had_recv_session is still False on the first scheduling iteration after warm-up (no recv session opened yet on this rank). The 2-tuple was introduced in #14042 (Skip transceiver tp_allgather when no sessions ever opened).

Test plan

  • Re-run the failing benchmark bm_deepseek-v4-pro-sol-1024-1024-ratio08-20260514-GB300/ctx1_gen1_dep16_concurrency16_eplb0_mtp0 and confirm no ValueError is raised.
  • Existing disagg unit tests under tests/unittest/disaggregated/ pass.

The pure-CTX early-out in `KvCacheTransceiverV2.check_gen_transfer_status`
returned a 2-tuple `[], []` while the normal path (and the sole caller in
`py_executor._check_disagg_gen_cache_transfer_status`) expects a 3-tuple
`(completed, failed, cancelled_reqs)`. On a GEN rank whose
`_ever_had_recv_session` is still False (e.g. the very first scheduling
iteration after warm-up, before any session has been opened), the
early-return triggered:

  ValueError: not enough values to unpack (expected 3, got 2)
  File py_executor.py:3874, in _check_disagg_gen_cache_transfer_status
    _, _, cancelled_reqs = result

which killed the executor thread and hung the disagg-gen workers.
Fix by returning `[], [], []` so both return paths agree on arity.

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
@qiaoxj07
qiaoxj07 requested a review from a team as a code owner May 15, 2026 01:28
@qiaoxj07
qiaoxj07 requested review from dongxuy04 and leslie-fang25 and removed request for a team May 15, 2026 01:28
@lfr-0531
lfr-0531 requested review from Shixiaowei02 and removed request for dongxuy04 and leslie-fang25 May 15, 2026 01:29
@lfr-0531

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48475 [ run ] triggered by Bot. Commit: 73e1942 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48475 [ run ] completed with state SUCCESS. Commit: 73e1942
/LLM/main/L0_MergeRequest_PR pipeline #38270 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

@qiaoxj07

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48563 [ run ] triggered by Bot. Commit: 73e1942 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48563 [ run ] completed with state SUCCESS. Commit: 73e1942
/LLM/main/L0_MergeRequest_PR pipeline #38352 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

@lfr-0531

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48891 [ run ] triggered by Bot. Commit: 73e1942 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48891 [ run ] completed with state FAILURE. Commit: 73e1942
/LLM/main/L0_MergeRequest_PR pipeline #38641 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

@lfr-0531

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48917 [ run ] triggered by Bot. Commit: 73e1942 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48917 [ run ] completed with state FAILURE. Commit: 73e1942
/LLM/main/L0_MergeRequest_PR pipeline #38666 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

@lfr-0531

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48929 [ run ] triggered by Bot. Commit: 73e1942 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48929 [ run ] completed with state FAILURE. Commit: 73e1942
/LLM/main/L0_MergeRequest_PR pipeline #38676 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

@lfr-0531

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #49024 [ run ] triggered by Bot. Commit: 73e1942 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #49024 [ run ] completed with state SUCCESS. Commit: 73e1942
/LLM/main/L0_MergeRequest_PR pipeline #38762 completed with status: 'SUCCESS'

CI Report

Link to invocation

@qiaoxj07
qiaoxj07 merged commit ddd96e6 into NVIDIA:feat/deepseek_v4 May 19, 2026
9 of 11 checks passed
lfr-0531 pushed a commit to lfr-0531/TensorRT-LLM that referenced this pull request Jun 10, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 10, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 10, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 10, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 11, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 11, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 11, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 11, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
lfr-0531 pushed a commit to lfr-0531/TensorRT-LLM that referenced this pull request Jun 11, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 12, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
lfr-0531 pushed a commit to lfr-0531/TensorRT-LLM that referenced this pull request Jun 12, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 12, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 14, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 16, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 17, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 21, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 22, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 23, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 23, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 23, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 24, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 24, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
Shixiaowei02 pushed a commit to Shixiaowei02/TensorRT-LLM that referenced this pull request Jun 24, 2026
…VIDIA#14162)

Signed-off-by: Xianjie Qiao <xqiao@nvidia.com>
Signed-off-by: Xianjie <5410381+qiaoxj07@users.noreply.github.com>
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.

4 participants