-
Notifications
You must be signed in to change notification settings - Fork 705
test: add AIConfigurator dense model tests for Dynamo Planner Profiler #4526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThis PR introduces maintenance updates: MyPy cache ignoring in .gitignore, conditional flag handling in benchmark utilities, aiconfigurator dependency version upgrade, and systematic test fixture refactoring renaming Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
tests/profiler/test_profile_sla_aiconfigurator.py (1)
107-109: Update test name to be backend-agnostic.The test name
test_trtllm_aiconfigurator_single_modelretains thetrtllmprefix but now uses the genericllm_argsfixture. For consistency with the renamed fixture and the other test (test_aiconfigurator_dense_modelsat line 131), remove the backend-specific prefix.Apply this diff:
- async def test_trtllm_aiconfigurator_single_model(self, llm_args): + async def test_aiconfigurator_single_model(self, llm_args):
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
.gitignore(1 hunks)benchmarks/profiler/utils/config_modifiers/vllm.py(1 hunks)benchmarks/pyproject.toml(1 hunks)tests/profiler/test_profile_sla_aiconfigurator.py(5 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-11-14T03:26:06.160Z
Learnt from: jasonqinzhou
Repo: ai-dynamo/dynamo PR: 4331
File: tests/profiler/test_profile_sla_aiconfigurator.py:118-121
Timestamp: 2025-11-14T03:26:06.160Z
Learning: The aiconfigurator (aic) only supports sglang version 0.5.1.post1 in its database, so tests should use this specific version rather than the latest available sglang release.
Applied to files:
tests/profiler/test_profile_sla_aiconfigurator.py
🧬 Code graph analysis (1)
tests/profiler/test_profile_sla_aiconfigurator.py (1)
benchmarks/profiler/profile_sla.py (1)
run_profile(129-748)
⏰ 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). (3)
- GitHub Check: vllm (amd64)
- GitHub Check: operator (amd64)
- GitHub Check: Build and Test - dynamo
🔇 Additional comments (6)
.gitignore (1)
80-81: LGTM!Standard MyPy cache directory ignore entry, properly organized under a dedicated section.
benchmarks/profiler/utils/config_modifiers/vllm.py (1)
126-127: LGTM!Good defensive programming—checking membership before removal prevents
ValueErrorif the flag is absent. This aligns with the conditional removal pattern used elsewhere in the same method (lines 130-131, 161-164).tests/profiler/test_profile_sla_aiconfigurator.py (3)
40-76: LGTM!Renaming the fixture from
trtllm_argstollm_argsappropriately reflects the expanded scope to support multiple LLM backends (TensorRT-LLM, vLLM, SGLang).
131-138: LGTM!The test expansion to cover multiple backends (TensorRT-LLM, vLLM, SGLang) and dense models aligns well with the PR objectives. The parametrization provides good coverage across different backend versions and model sizes.
118-121: SGLang version confirmed; verify vLLM 0.11.0 support in aiconfigurator database.SGLang version 0.5.1.post1 is confirmed to be supported by aiconfigurator, but vLLM 0.11.0 requires verification. While the version exists (referenced in codebase with known issues), there is no evidence confirming it's in the aiconfigurator database. The test will validate this at runtime—if vLLM 0.11.0 is unsupported, the test will fail with a database lookup error. Confirm this version is available before merging.
benchmarks/pyproject.toml (1)
43-43: Verify profiler test compatibility with the new release/0.4.0 branch that includes sglang support changes.The reference to
release/0.4.0is a valid branch (not a tag as the original comment implied). However, moving from the pinned commit (5554d2e, 2025-11-06) to this branch introduces 8 new commits, including significant refactoring work on sglang support. A key commit (e9a5452, 2025-11-09) unifies sglang paths and explicitly updates support for sglang version 0.5.1.post1.Ensure the profiler benchmarks tests work correctly with these changes, particularly the sglang integration in
tests/profiler/test_profile_sla_aiconfigurator.py, which relies on aiconfigurator's sglang 0.5.1.post1 support.
benchmarks/profiler/utils/config_modifiers/parallelization_mapping.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Jason Zhou <[email protected]>
Signed-off-by: Jason Zhou <[email protected]>
Signed-off-by: Jason Zhou <[email protected]>
|
test |
Signed-off-by: Jason Zhou <[email protected]>
Overview:
[
](test: add AIConfigurator dense model tests for Dynamo Planner Profiler #4052 ](test: add AIConfigurator dense model tests for Dynamo Planner Profiler #4526)
Details:
Add test coverage.
Where should the reviewer start?
Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit
Bug Fixes
Chores
✏️ Tip: You can customize this high-level summary in your review settings.