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
3a6d5cbe
Unverified
Commit
3a6d5cbe
authored
Jan 27, 2026
by
Wentao Ye
Committed by
GitHub
Jan 27, 2026
Browse files
[Perf] Optimize dcp allocate tensor (#33102)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
f5d7049c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
vllm/v1/attention/ops/common.py
vllm/v1/attention/ops/common.py
+3
-7
No files found.
vllm/v1/attention/ops/common.py
View file @
3a6d5cbe
...
...
@@ -195,14 +195,10 @@ def _cp_lse_common(
if
ctx
is
None
:
ctx
=
CPTritonContext
()
lses
=
torch
.
empty
(
(
cp_group
.
world_size
,)
+
cp_attn_lse
.
shape
,
dtype
=
cp_attn_lse
.
dtype
,
device
=
cp_attn_lse
.
device
,
)
cp_attn_lse
=
cp_attn_lse
.
contiguous
()
lses
=
cp_group
.
all_gather
(
cp_attn_lse
,
dim
=
0
).
view_as
(
lses
)
lses
=
cp_group
.
all_gather
(
cp_attn_lse
,
dim
=
0
).
reshape
(
(
cp_group
.
world_size
,)
+
cp_attn_lse
.
shape
)
out
,
lse
=
correct_attn_out
(
cp_attn_out
,
lses
,
...
...
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