Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
5e1a373d
Unverified
Commit
5e1a373d
authored
Mar 12, 2026
by
Aaron Hao
Committed by
GitHub
Mar 13, 2026
Browse files
[BUG] Fix rank calculation in NCCLWeightTransferEngine (#36940)
Signed-off-by:
hao-aaron
<
ahao@anyscale.com
>
parent
572c776b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/distributed/weight_transfer/nccl_engine.py
vllm/distributed/weight_transfer/nccl_engine.py
+1
-1
No files found.
vllm/distributed/weight_transfer/nccl_engine.py
View file @
5e1a373d
...
@@ -132,7 +132,7 @@ class NCCLWeightTransferEngine(
...
@@ -132,7 +132,7 @@ class NCCLWeightTransferEngine(
# Calculate the global rank in the trainer-worker process group
# Calculate the global rank in the trainer-worker process group
# Must account for data parallel to get unique ranks across all workers
# Must account for data parallel to get unique ranks across all workers
dp_rank
=
self
.
parallel_config
.
data_parallel_
rank
dp_rank
=
self
.
parallel_config
.
data_parallel_
index
world_size_per_dp
=
self
.
parallel_config
.
world_size
# TP * PP
world_size_per_dp
=
self
.
parallel_config
.
world_size
# TP * PP
rank_within_dp
=
self
.
parallel_config
.
rank
rank_within_dp
=
self
.
parallel_config
.
rank
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment