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
571e8dd6
Unverified
Commit
571e8dd6
authored
Apr 22, 2025
by
Yang Fan
Committed by
GitHub
Apr 22, 2025
Browse files
[Bugfix] Fix distributed bug again in Qwen2.5-VL & Qwen2.5-Omni (#16974)
Signed-off-by:
fyabc
<
suyang.fy@alibaba-inc.com
>
parent
4b91c927
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/model_executor/models/qwen2_5_vl.py
vllm/model_executor/models/qwen2_5_vl.py
+4
-1
No files found.
vllm/model_executor/models/qwen2_5_vl.py
View file @
571e8dd6
...
...
@@ -198,8 +198,11 @@ class Qwen2_5_VisionMLP(nn.Module):
def
all_gather_interleave
(
local_tensor
,
hidden_size
:
int
,
tp_size
:
int
):
"""All-gather the input tensor interleavely across model parallel group."""
import
torch.distributed
as
dist
gathered_tensors
=
[
torch
.
zeros_like
(
local_tensor
)
for
_
in
range
(
tp_size
)]
parallel_state
.
get_tp_group
().
all_gather
(
gathered_tensors
,
local_tensor
)
dist
.
all_gather
(
gathered_tensors
,
local_tensor
,
group
=
parallel_state
.
get_tp_group
().
device_group
)
gathered_tensors_split
=
[
torch
.
split
(
tensor
,
hidden_size
//
tp_size
,
-
1
)
...
...
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