[gRPC] Fix scheduler startup broken by context parallel refactor#18933
[gRPC] Fix scheduler startup broken by context parallel refactor#18933
Conversation
Summary of ChangesHello @slin1237, 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 addresses a critical bug that prevented the gRPC scheduler from starting correctly. The issue arose from a previous refactor that introduced new required parallelism rank parameters ( 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
|
|
/tag-and-rerun-ci |
There was a problem hiding this comment.
Code Review
The pull request correctly addresses the gRPC scheduler startup failure by synchronizing the rank calculation logic and the run_scheduler_process argument list with the changes introduced in the context parallel refactor. The rank calculations for attn_cp_rank, moe_dp_rank, and moe_ep_rank are consistent with the logic used in engine.py and data_parallel_controller.py, ensuring that the gRPC launcher correctly handles various parallelism configurations. The positional arguments passed to the scheduler process also align perfectly with the updated function signature in scheduler.py. This fix restores the functionality of the gRPC server startup which was previously broken due to argument mismatches.
118d46c to
483512b
Compare
) PR #17213 added attn_cp_rank and moe_dp_rank parameters to run_scheduler_process but the gRPC scheduler_launcher was not updated, causing startup failure due to missing arguments.
483512b to
d5f4bfb
Compare
…-project#18933) Co-authored-by: Chang Su <chang.s.su@oracle.com>
…-project#18933) Co-authored-by: Chang Su <chang.s.su@oracle.com>
Motivation
PR #17213 (refactor context parallel state) added
attn_cp_rankandmoe_dp_rankas new required parameters torun_scheduler_process, but the gRPCscheduler_launcher.pywas not updated. This caused gRPC server startup to fail with incorrect arguments being passed to the scheduler process.Modifications
attn_cp_rankandmoe_dp_rankin the gRPC scheduler launcher, matching the logic inengine.pymoe_ep_rankcalculation to account formoe_dp_sizerun_scheduler_process