[PD] Remove unused server args for disaggregation#19618
Conversation
Signed-off-by: Shangming Cai <csmthu@gmail.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request streamlines the disaggregation feature by removing obsolete server configuration parameters and their corresponding code references. The changes simplify the codebase and documentation, making the disaggregation setup cleaner and easier to manage without impacting functionality, as the removed arguments were no longer in use. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request effectively removes several unused server arguments related to disaggregation, which simplifies the configuration. The changes are consistently applied across the argument parsing logic, documentation, and their usage sites in the scheduler and disaggregation modules. I have one minor suggestion to ensure the removal is complete and to prevent potential issues.
I am having trouble creating individual review comments. Click here to see my feedback.
python/sglang/srt/disaggregation/prefill.py (138-139)
While you've removed the assignments to kv_args.decode_tp_size and kv_args.prefill_pp_size, it seems prefill_pp_size might still be present in the KVArgs class definition in python/sglang/srt/disaggregation/base/conn.py. For completeness and to avoid potential AttributeError if it's accessed elsewhere unexpectedly, consider removing prefill_pp_size from the KVArgs class definition as well.
|
/rerun-stage stage-c-test-8-gpu-h20 |
|
✅ Triggered |
|
/tag-and-rerun-ci |
|
@ShangmingCai This PR breaks NIXL plugin, where decode_tp_size is still referenced |
Signed-off-by: Shangming Cai <csmthu@gmail.com>
Signed-off-by: Shangming Cai <csmthu@gmail.com>
Signed-off-by: Shangming Cai <csmthu@gmail.com>


Motivation
We don't need these server args (since decode nodes can get these info from bootstrap servers, prefill can get these info from register info), they are not used for all backends, and will cause misunderstanding for open-source users.
Modifications
Accuracy Tests
Benchmarking and Profiling
Checklist
Review Process
/tag-run-ci-label,/rerun-failed-ci,/tag-and-rerun-ci