Skip to content

Conversation

@chenfeiz0326
Copy link
Collaborator

@chenfeiz0326 chenfeiz0326 commented Nov 4, 2025

Summary by CodeRabbit

  • Tests
    • Add DSR1 FP4 (DEP4 and TEP4) and FP8 (DEP8 and TEP8) perf tests for B200.
    • Add GPT-OSS FP4 (DEP2, DEP4 and TP8 with EAGLE3) perf tests for B200.
    • Extended test parameters to support speculative decoding optimization strategies
    • Added configurable CUDA graph batch sizing and post-processing worker tuning options
    • Introduced backend selection and chat template configuration options for client performance tests

Description

Test Coverage

PR Checklist

Please review the following before submitting your PR:

  • 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)

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • 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

/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.

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)]

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. Examples: "A10-PyTorch-1, xxx". 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. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx".

--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.

For guidance on mapping tests to stage names, see docs/source/reference/ci-overview.md
and the scripts/test_to_stage_mapping.py helper.

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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 4, 2025

📝 Walkthrough

Walkthrough

The PR expands performance test infrastructure by introducing new configuration fields for speculative decoding, CUDA graph optimization, and backend selection. New fields are added to database utilities, server and client configuration classes, and performance test scenario definitions across three YAML files.

Changes

Cohort / File(s) Summary
Database field definitions
tests/integration/defs/perf/open_search_db_utils.py
Added 7 new fields to SERVER_FIELDS (cuda_graph_max_batch_size, num_postprocess_workers, spec_decoding_type, num_nextn_predict_layers, eagle3_layers_to_capture, max_draft_len, speculative_model_dir) and 2 new fields to CLIENT_FIELDS (backend, use_chat_template)
Configuration class updates
tests/integration/defs/perf/test_perf.py
Extended ServerConfig.\\init\\() with 9 new parameters for speculative decoding and CUDA optimization; extended ClientConfig.\\init\\() with backend and use_chat_template parameters; updated to_db_data() methods to serialize new fields conditionally; updated generate_extra_llm_api_config() to emit speculative_config block and cuda_graph settings; updated to_cmd() to pass backend and chat template flags
Performance test scenarios (B200)
tests/scripts/perf-sanity/l0_dgx_b200.yaml
Added 6 new server configuration blocks (r1_fp4_v2_dep4_mtp1, r1_fp4_v2_tep4_mtp3, r1_fp8_dep4_mtp1, r1_fp8_tep4_mtp3, gpt_oss_dep4, gpt_oss_tep4) with corresponding client_configs, varying model names, backends, and throughput parameters
Performance test scenarios (GB200)
tests/scripts/perf-sanity/l0_dgx_gb200.yaml
New file with 4 server configuration blocks, each containing model settings, hardware parameters, and nested client_configs with concurrency, iterations, and backend specifications

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

  • Field naming and type consistency across database definitions, config parameters, and YAML configurations
  • Conditional serialization logic in to_db_data() and generate_extra_llm_api_config() methods; verify correctness of conditional checks
  • Verify parameter propagation chain: constructor → internal attributes → serialization methods → command generation
  • YAML configuration validity, particularly the "4W" tensor parallelism value in l0_dgx_gb200.yaml which appears anomalous and may require clarification
  • Cross-file consistency: ensure field names in open_search_db_utils.py align with those used in test_perf.py config classes

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is entirely empty with no actual content provided. Only the template structure with comments and GitHub bot help documentation is present. Fill in the required sections: provide a concise summary of what changes were made and why, list relevant test coverage, and confirm checklist items are reviewed. Refer to the PR summary which indicates this should add DSR1 and GPT-OSS performance testcases into CI.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: adding DSR1 and GPT-OSS performance tests to CI, directly supported by file additions for these test configurations.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
tests/integration/defs/perf/test_perf.py (2)

608-612: Consider removing redundant field initialization.

These fields are unconditionally added to db_data here, but then conditionally added again at lines 617-628. The unconditional initialization is redundant since the conditional logic at lines 617-628 will populate these fields when appropriate.

Apply this diff to remove the redundancy:

             "d_free_gpu_memory_fraction": self.free_gpu_memory_fraction,
             "l_max_batch_size": self.max_batch_size,
             "l_cuda_graph_max_batch_size": self.cuda_graph_max_batch_size,
             "b_enable_padding": self.enable_padding,
-            "s_spec_decoding_type": self.spec_decoding_type,
-            "l_num_nextn_predict_layers": self.num_nextn_predict_layers,
-            "l_eagle3_layers_to_capture": self.eagle3_layers_to_capture,
-            "l_max_draft_len": self.max_draft_len,
-            "s_speculative_model_dir": self.speculative_model_dir,
             "s_server_log_link": "",
         }

756-759: Remove redundant conditional field population.

The fields s_backend and b_use_chat_template are already unconditionally added to db_data at lines 752-753. The conditional checks here are redundant and will simply overwrite the existing values with the same values.

Apply this diff to remove the redundant code:

             "b_use_chat_template": self.use_chat_template,
             "s_client_log_link": "",
         }
-        if self.backend:
-            db_data["s_backend"] = self.backend
-        if self.use_chat_template:
-            db_data["b_use_chat_template"] = self.use_chat_template
         return db_data
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9ec6a6b and b1dc8c0.

📒 Files selected for processing (4)
  • tests/integration/defs/perf/open_search_db_utils.py (3 hunks)
  • tests/integration/defs/perf/test_perf.py (11 hunks)
  • tests/scripts/perf-sanity/l0_dgx_b200.yaml (1 hunks)
  • tests/scripts/perf-sanity/l0_dgx_gb200.yaml (1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.{h,hpp,hh,hxx,cpp,cxx,cc,cu,cuh,py}

📄 CodeRabbit inference engine (CODING_GUIDELINES.md)

Use only spaces, no tabs; indent with 4 spaces.

Files:

  • tests/integration/defs/perf/open_search_db_utils.py
  • tests/integration/defs/perf/test_perf.py
**/*.py

📄 CodeRabbit inference engine (CODING_GUIDELINES.md)

**/*.py: Python code must target Python 3.8+.
Indent Python code with 4 spaces; do not use tabs.
Maintain module namespace when importing; prefer 'from package.subpackage import foo' then 'foo.SomeClass()' instead of importing the class directly.
Python filenames should be snake_case (e.g., some_file.py).
Python classes use PascalCase names.
Functions and methods use snake_case names.
Local variables use snake_case; prefix 'k' for variables that start with a number (e.g., k_99th_percentile).
Global variables use upper SNAKE_CASE prefixed with 'G' (e.g., G_MY_GLOBAL).
Constants use upper SNAKE_CASE (e.g., MY_CONSTANT).
Avoid shadowing variables from an outer scope.
Initialize all externally visible members of a class in the constructor.
Prefer docstrings for interfaces that may be used outside a file; comments for in-function or file-local interfaces.
Use Google-style docstrings for classes and functions (Sphinx-parsable).
Document attributes and variables inline so they render under the class/function docstring.
Avoid reflection when a simpler, explicit approach suffices (e.g., avoid dict(**locals()) patterns).
In try/except, catch the most specific exceptions possible.
For duck-typing try/except, keep the try body minimal and use else for the main logic.

Files:

  • tests/integration/defs/perf/open_search_db_utils.py
  • tests/integration/defs/perf/test_perf.py
**/*.{cpp,cxx,cc,h,hpp,hh,hxx,cu,cuh,py}

📄 CodeRabbit inference engine (CODING_GUIDELINES.md)

Prepend the NVIDIA Apache-2.0 copyright header with current year to the top of all source files (e.g., .cpp, .h, .cu, .py).

Files:

  • tests/integration/defs/perf/open_search_db_utils.py
  • tests/integration/defs/perf/test_perf.py
🧠 Learnings (2)
📓 Common learnings
Learnt from: pengbowang-nv
Repo: NVIDIA/TensorRT-LLM PR: 7192
File: tests/integration/test_lists/test-db/l0_dgx_b200.yml:56-72
Timestamp: 2025-08-26T09:49:04.956Z
Learning: In TensorRT-LLM test configuration files, the test scheduling system handles wildcard matching with special rules that prevent duplicate test execution even when the same tests appear in multiple yaml files with overlapping GPU wildcards (e.g., "*b200*" and "*gb200*").
📚 Learning: 2025-08-26T09:49:04.956Z
Learnt from: pengbowang-nv
Repo: NVIDIA/TensorRT-LLM PR: 7192
File: tests/integration/test_lists/test-db/l0_dgx_b200.yml:56-72
Timestamp: 2025-08-26T09:49:04.956Z
Learning: In TensorRT-LLM test configuration files, the test scheduling system handles wildcard matching with special rules that prevent duplicate test execution even when the same tests appear in multiple yaml files with overlapping GPU wildcards (e.g., "*b200*" and "*gb200*").

Applied to files:

  • tests/scripts/perf-sanity/l0_dgx_gb200.yaml
🧬 Code graph analysis (1)
tests/integration/defs/perf/test_perf.py (1)
tests/scripts/perf-sanity/run_benchmark_serve.py (3)
  • to_cmd (278-288)
  • to_cmd (353-367)
  • get_model_dir (178-185)
🪛 Ruff (0.14.3)
tests/integration/defs/perf/test_perf.py

690-690: Undefined name speculative_model_dir

(F821)


722-722: Unused method argument: working_dir

(ARG002)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Pre-commit Check

@chenfeiz0326
Copy link
Collaborator Author

/bot run --stage-list "DGX_B200-4_GPUs-PyTorch-Perf-Sanity-Post-Merge-1,DGX_B200-8_GPUs-PyTorch-Perf-Sanity-Post-Merge-1"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #23491 [ run ] triggered by Bot. Commit: 129290d

@chenfeiz0326
Copy link
Collaborator Author

/bot run --stage-list "DGX_B200-4_GPUs-PyTorch-Perf-Sanity-Post-Merge-1"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #23511 [ run ] triggered by Bot. Commit: 4781530

@tensorrt-cicd
Copy link
Collaborator

PR_Github #23491 [ run ] completed with state ABORTED. Commit: 129290d
LLM/main/L0_MergeRequest_PR #17682 (Blue Ocean) completed with status: ABORTED

@tensorrt-cicd
Copy link
Collaborator

PR_Github #23511 [ run ] completed with state SUCCESS. Commit: 4781530
/LLM/main/L0_MergeRequest_PR pipeline #17694 (Partly Tested) completed with status: 'FAILURE'

@chenfeiz0326
Copy link
Collaborator Author

/bot run --stage-list "DGX_B200-4_GPUs-PyTorch-Perf-Sanity-Post-Merge-1"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #23562 [ run ] triggered by Bot. Commit: 4a08799

@chenfeiz0326 chenfeiz0326 force-pushed the chenfeiz/add-dsr1-perf-testcases branch from 4a08799 to 7a05ee2 Compare November 5, 2025 03:12
@tensorrt-cicd
Copy link
Collaborator

PR_Github #23562 [ run ] completed with state SUCCESS. Commit: 4a08799
/LLM/main/L0_MergeRequest_PR pipeline #17736 (Partly Tested) completed with status: 'FAILURE'

"DGX_B300-4_GPUs-PyTorch-Post-Merge-1": ["b300-x4", "l0_dgx_b300", 1, 1, 4],
// Perf sanity post merge test
"DGX_B200-4_GPUs-PyTorch-Perf-Sanity-Post-Merge-1": ["b200-x4", "perf_sanity_l0_dgx_b200", 1, 1, 4],
"DGX_B200-8_GPUs-PyTorch-Perf-Sanity-Post-Merge-1": ["b200-x8", "perf_sanity_l0_dgx_b200", 1, 1, 8],
Copy link
Collaborator

Choose a reason for hiding this comment

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

@chzblych do we have capacity to run this in L0 post-merge. I'm concerned that we're asking for 8 GPUs here rather than 4. This will basically double our requirements (going from 2x4 to an additional 1x8).

@chenfeiz0326 does this really need to run on 8 GPUs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is not too much memory capacity left for DS R1 FP8 on 4 GPU, better to have 8GPUs.

@chenfeiz0326
Copy link
Collaborator Author

/bot run --stage-list "DGX_B200-4_GPUs-PyTorch-Perf-Sanity-Post-Merge-1"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #23617 [ run ] triggered by Bot. Commit: bc25dcc

Signed-off-by: Chenfei Zhang <[email protected]>
@chenfeiz0326 chenfeiz0326 force-pushed the chenfeiz/add-dsr1-perf-testcases branch from bc25dcc to c0a115a Compare November 5, 2025 10:02
@chenfeiz0326
Copy link
Collaborator Author

/bot run --stage-list "DGX_B200-4_GPUs-PyTorch-Perf-Sanity-Post-Merge-1"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #23638 [ run ] triggered by Bot. Commit: c0a115a

@tensorrt-cicd
Copy link
Collaborator

PR_Github #23617 [ run ] completed with state ABORTED. Commit: bc25dcc
LLM/main/L0_MergeRequest_PR #17771 (Blue Ocean) completed with status: ABORTED

@tensorrt-cicd
Copy link
Collaborator

PR_Github #23638 [ run ] completed with state SUCCESS. Commit: c0a115a
/LLM/main/L0_MergeRequest_PR pipeline #17785 (Partly Tested) completed with status: 'FAILURE'

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