Skip to content

[https://nvbugs/6812588][fix] Cherry-pick #20019 to release/1.3: bound Qwen3.5 batch/seq len in multi-node disagg tests - #20023

Merged
reasonsolo merged 1 commit into
NVIDIA:release/1.3from
reasonsolo:user/lizhiz/nvbug-6812588-qwen35-mem-rel13
Oct 9, 2026

Conversation

@reasonsolo

@reasonsolo reasonsolo commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Cherry-pick of #20019 to release/1.3 (fix commit only; release/1.3 has no H100 waivers for this bug).

On H100, test_e2e.py::test_openai_disagg_multi_nodes_completion* fail on release/1.3 even though it already contains the UCX/NIXL fix (#19544). Since #18654, these tests run Qwen3.5-4B with the default max_batch_size (2048) and max_seq_len (262144). For this hybrid model, the V2 cache manager reserves recurrent state up front for every resident sequence (max_batch_size * pp_size), which is about 54 GB per GPU. With free_gpu_memory_fraction=0.8 that doesn't fit on an 80 GB H100, so the ctx/gen servers exit during startup:

  • tp1pp2: ValueError: The V2 Mamba GPU cache quota is too small for live recurrent states and attention pages: got 51936015974 bytes, need at least 53969223680 bytes.
  • tp1pp1: RuntimeError: Executor creation failed due to insufficient GPU memory.

This PR caps max_batch_size=128 and max_seq_len=8192 in both multi-node test workers (the tests only send 10-token completions).

Test Coverage

Built release/1.3 (2bafd95, the commit QA tested) and ran on H100 PCIe 80 GB.

trtllm-serve with the test's config:

Server Default config With this change
tp1pp2 exits (V2 Mamba GPU cache quota is too small) healthy, completion OK
tp1pp1 exits (insufficient GPU memory) healthy, completion OK

_test_disagg_serving_multi_nodes_service_discovery.py::test_completion[etcd] on 2 nodes (the test behind test_openai_disagg_multi_nodes_completion_service_discovery[etcd]):

  • without this change: ctx and gen workers fail with insufficient GPU memory; the test errors.
  • with this change: 1 passed on both nodes, and all 10 completions return 2..

Bug: https://nvbugspro.nvidia.com/bug/6812588

🤖 Generated with Claude Code

Dev Engineer Review

The inspected diff changes only import formatting and removes an unnecessary f-string in _test_disagg_serving_multi_nodes.py. It does not change runtime behavior. Both test files already contain the max_batch_size=128 and max_seq_len=8192 settings in the inspected HEAD, so the stated memory-cap changes are not present in this diff.

QA Engineer Review

The diff modifies one test file. It adds, removes, or changes no test functions, IDs, selectors, or waivers. The existing multi-node completion test still checks a response beginning with 2.; the service-discovery test still checks ten completions. Neither filename appears in the searched tests/integration/test_lists/ paths. Coverage verdict: needs follow-up because the claimed configuration change is not part of the inspected diff. Test execution results were not provided.

Per-File QA Perspective

  • tests/unittest/llmapi/apps/_test_disagg_serving_multi_nodes.py: The diff makes formatting-only edits; it does not alter test behavior. The file was not found in the searched CI or manual-QA test lists.

…de disagg tests

The multi-node disaggregated serving tests run Qwen3.5-4B with the
default max_batch_size (2048) and max_seq_len (262144). The hybrid
model's V2 cache manager reserves recurrent state for every resident
sequence up front (~54 GB per GPU), which does not fit on 80 GB H100s
with free_gpu_memory_fraction=0.8, so the ctx/gen servers fail to start.

Cap max_batch_size to 128 and max_seq_len to 8192, which the tests'
10-token completions never approach.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Lizhi Zhou <[email protected]>
(cherry picked from commit 21a2243)
@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/TensorRT-LLM/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: c72bab92-11e4-4650-8550-e1679a0bf663
📥 Commits

Reviewing files that changed from the base of the PR and between 41b7cef and e57e287.

📒 Files selected for processing (2)
  • tests/unittest/llmapi/apps/_test_disagg_serving_multi_nodes.py
  • tests/unittest/llmapi/apps/_test_disagg_serving_multi_nodes_service_discovery.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.


Walkthrough

Both multi-node serving test configurations now set the worker’s max_batch_size to 128 and max_seq_len to 8192.

Changes

Worker configuration limits

Layer / File(s) Summary
Set worker limits
tests/unittest/llmapi/apps/_test_disagg_serving_multi_nodes.py, tests/unittest/llmapi/apps/_test_disagg_serving_multi_nodes_service_discovery.py
Both test configurations set max_batch_size to 128 and max_seq_len to 8192. Comments describe recurrent-state sizing and GPU capacity constraints.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to e57e2

The new worker limits do not constrain the requests exercised by these tests. No actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title follows the required NVBugs and [fix] format. It clearly identifies the cherry-pick and the batch and sequence length limits for the affected multi-node disaggregated tests.
Description check Passed The description explains the failure, root cause, fix, affected tests, hardware context, and test results. It includes the required Description and Test Coverage sections. The checklist is not explici…
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements.

@reasonsolo

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@reasonsolo
reasonsolo enabled auto-merge (squash) October 9, 2026 05:10
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76891 [ run ] triggered by Bot. Commit: e57e287 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76891 [ run ] completed with state SUCCESS. Commit: e57e287
/LLM/release-1.3/L0_MergeRequest_PR pipeline #119 completed with status: 'SUCCESS'

CI Report

Link to invocation

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.

5 participants