[ROCm] Support for the remote dp and tp size for vllm's moriio kv connector - #192
[ROCm] Support for the remote dp and tp size for vllm's moriio kv connector#192itej89 wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ba5165595b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| .get_tp_dp_size(base, ServiceType::Decode) | ||
| .0 |
There was a problem hiding this comment.
Use registered remote DP size in MoRI-IO params
In MoRI-IO WRITE mode, when the selected decode instance registers a dp_size that differs from the router's intra_node_data_parallel_size (for example the router is left at the default 1), this lookup discards the registered DP size and the request below still sends remote_dp_size from the router config. That makes the prefill side handshake/notify the wrong number of decode DP ranks; the decode-leg lookup of the selected prefill instance has the same issue, so the registered dp_size should be used for remote_dp_size in both directions.
Useful? React with 👍 / 👎.
4ab428d to
5a7059d
Compare
Signed-off-by: Tej Kiran <kiran.tej@amd.com>
Signed-off-by: Tej Kiran <kiran.tej@amd.com>
Signed-off-by: Tej Kiran <kiran.tej@amd.com>
…entation for EP mode Signed-off-by: Tej Kiran <kiran.tej@amd.com>
504a721 to
be5aa9c
Compare
|
Additional Proposals for the future work:
Request to provide corrections or suggestion on my understanding. |
PLEASE FILL IN THE PR DESCRIPTION HERE ENSURING ALL CHECKLIST ITEMS (AT THE BOTTOM) HAVE BEEN CONSIDERED.
Purpose
This PR enables the support for VLLM MORI IO Connectors interface to communicate TP and DP sizes to the peers in PD Disaggregation Mode.
Related Feature PR on vLLM: vllm-project/vllm#48989
Details:
The MORI IO Connector uses tp size for the remote port offset calculation. To provide a future-proof clean interface we are adding the support for additional registration parameters in the router.
Related vLLM MORI IO PORT offset calculation: Port offset calculation
Related vLLM MORI IO Connector Interface: Interface with TP, DP size data
Test Plan
Verification steps on MI355X-AINIC
STEP 1: Build ROCm VLLM Image
STEP 1: Build VLLM Router Image
STEP 3: Please use below commands to start Prefill and Decode servers
STEP 4: Please run the following to start the vLLM Router
STEP 5: Please run the following to perform the accuracy test
Test Result
Essential Elements of an Effective PR Description Checklist