Commit 1e1c0e6
committed
[ROCm-moriio] Propagate prefill DP rank to decode leg (serial WRITE)
In serial WRITE dispatch the prefill leg runs first and returns the DP
rank it actually ran on (remote_dp_rank in kv_transfer_params). Pin the
decode leg to that returned rank instead of independently re-hashing the
request id, so both legs agree without each side hashing.
This is the router-applies-the-connector-returned-rank model from the
vLLM PR #45043 review: the connector returns the rank, the router sets
the x-data-parallel-rank header on decode. Falls back to the blake2s
hash only when the prefill response omits remote_dp_rank (older vLLM
without the returnable rank).1 parent 9e65dad commit 1e1c0e6
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
307 | 321 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
| 322 | + | |
312 | 323 | | |
313 | 324 | | |
314 | 325 | | |
| |||
0 commit comments