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
26c04065
Unverified
Commit
26c04065
authored
Apr 21, 2025
by
Yang Fan
Committed by
GitHub
Apr 21, 2025
Browse files
[Bugfix] Fix distributed bug in Qwen2.5-VL & Qwen2.5-Omni (#16907)
parent
4c41278b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
vllm/model_executor/models/qwen2_5_vl.py
vllm/model_executor/models/qwen2_5_vl.py
+1
-2
No files found.
vllm/model_executor/models/qwen2_5_vl.py
View file @
26c04065
...
@@ -198,9 +198,8 @@ class Qwen2_5_VisionMLP(nn.Module):
...
@@ -198,9 +198,8 @@ class Qwen2_5_VisionMLP(nn.Module):
def
all_gather_interleave
(
local_tensor
,
hidden_size
:
int
,
tp_size
:
int
):
def
all_gather_interleave
(
local_tensor
,
hidden_size
:
int
,
tp_size
:
int
):
"""All-gather the input tensor interleavely across model parallel group."""
"""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
)]
gathered_tensors
=
[
torch
.
zeros_like
(
local_tensor
)
for
_
in
range
(
tp_size
)]
dist
.
all_gather
(
gathered_tensors
,
local_tensor
)
parallel_state
.
get_tp_group
()
.
all_gather
(
gathered_tensors
,
local_tensor
)
gathered_tensors_split
=
[
gathered_tensors_split
=
[
torch
.
split
(
tensor
,
hidden_size
//
tp_size
,
-
1
)
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