[[TRTLLM-13948][feat] Clean up DeepSeek tests using CPP Transceiver v1 - #17090
[[TRTLLM-13948][feat] Clean up DeepSeek tests using CPP Transceiver v1#17090asfiyab-nvidia wants to merge 1 commit into
Conversation
Signed-off-by: Asfiya Baig <asfiyab@nvidia.com>
WalkthroughUpdated DeepSeek disaggregated-serving accuracy tests to use Python/NIXL configurations, removed obsolete auto-dtype cases, expanded KV-cache evaluations, and synchronized QA, platform test lists, and waiver entries. ChangesDisaggregated-serving test coverage
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/integration/defs/accuracy/test_disaggregated_serving.py`:
- Line 1056: Update the test_gen_only_sync method with the required return type
annotation, using the appropriate annotation for its test method behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 69392dbb-874d-41f6-9c44-e37bd47fcebe
📒 Files selected for processing (8)
tests/integration/defs/accuracy/test_disaggregated_serving.pytests/integration/test_lists/qa/llm_function_core.txttests/integration/test_lists/qa/llm_function_rtx6k.txttests/integration/test_lists/test-db/l0_dgx_b200.ymltests/integration/test_lists/test-db/l0_dgx_b300.ymltests/integration/test_lists/test-db/l0_dgx_h100.ymltests/integration/test_lists/test-db/l0_dgx_h200.ymltests/integration/test_lists/waives.txt
💤 Files with no reviewable changes (7)
- tests/integration/test_lists/test-db/l0_dgx_b300.yml
- tests/integration/test_lists/qa/llm_function_rtx6k.txt
- tests/integration/test_lists/test-db/l0_dgx_h100.yml
- tests/integration/test_lists/test-db/l0_dgx_h200.yml
- tests/integration/test_lists/test-db/l0_dgx_b200.yml
- tests/integration/test_lists/waives.txt
- tests/integration/test_lists/qa/llm_function_core.txt
| ids=["python", "cpp"]) | ||
| def test_gen_only_sync(self, transceiver_runtime): | ||
| """Test gen-only synchronous KV transfer with each NIXL runtime. | ||
| def test_gen_only_sync(self): |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Add the required return annotation.
-def test_gen_only_sync(self):
+def test_gen_only_sync(self) -> None:As per coding guidelines, every Python function must be annotated.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| def test_gen_only_sync(self): | |
| def test_gen_only_sync(self) -> None: |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@tests/integration/defs/accuracy/test_disaggregated_serving.py` at line 1056,
Update the test_gen_only_sync method with the required return type annotation,
using the appropriate annotation for its test method behavior.
Source: Coding guidelines
chienchunhung
left a comment
There was a problem hiding this comment.
test_gen_only_sync is no longer parametrized, so pytest no longer generates the [python] node ID. Please update this test-list entry to ...::test_gen_only_sync; otherwise the QA selection references a nonexistent test and the retained synchronous-transfer coverage will not run.
| @@ -1255,7 +1175,8 @@ def test_auto_dtype_with_helix(self, comms_medium, cuda_graph_config, | |||
| "enable_chunked_prefill": False, | |||
| "cuda_graph_config": None, | |||
| "cache_transceiver_config": { | |||
| "backend": "UCX", | |||
| "backend": "NIXL", | |||
There was a problem hiding this comment.
For test_auto_dtype_with_helix — could you double-check whether the Python transceiver actually supports cp_size > 1? From what I can see, KvCacheTransceiverV2._check_compatible rejects cp_size != 1 (tensorrt_llm/_torch/disaggregation/transceiver.py), and Helix relies on context parallelism on the gen side, so this test likely can't be migrated and has to stay on the C++ transceiver.
Description
This PR removes the DeepSeek tests that use the CPP Transceiver V1. Summary of changes:
Test Changes in
test_disaggregated_serving.pyTestDeepSeekV32Exptest_auto_dtype- redundant withtest_kv_cache_v2_nixl_python(besides TP settings)TestDeepSeekV3LiteRemoved tests:
test_nixl_backend- redundant withtest_kv_cache_v2_nixl_pythontest_auto_dtype- shares redundancies withtest_kv_cache_v2_nixl_pythonandtest_guided_decodingRetained tests:
test_gen_only_sync- retained to test sync KV cache transfertest_auto_dtype_with_helix- retained for Python transceiver execution pathtest_guided_decoding- retained for testing guided decoding backends and ctx+gen spec dec formatThe tests that were removed were also deleted from corresponding test lists
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)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
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
To see a list of available CI bot commands, please comment
/bot help.Dev Engineer Review
QA Engineer Review
test_disaggregated_serving.py: removedtest_auto_dtypefromTestDeepSeekV32Exp, removedtest_nixl_backendandtest_auto_dtypefromTestDeepSeekV3Lite, and updatedtest_gen_only_sync.qa/llm_function_core.txt,qa/llm_function_rtx6k.txt,test-db/l0_dgx_b200.yml,l0_dgx_b300.yml,l0_dgx_h100.yml,l0_dgx_h200.yml, andwaives.txtto remove corresponding entries.