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
cea96a01
Unverified
Commit
cea96a01
authored
Jul 25, 2025
by
Rui Qiao
Committed by
GitHub
Jul 25, 2025
Browse files
[Bugfix] Fix sync_and_slice_intermediate_tensors (#21537)
Signed-off-by:
Rui Qiao
<
ruisearch42@gmail.com
>
parent
2eddd437
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+1
-1
No files found.
vllm/v1/worker/gpu_model_runner.py
View file @
cea96a01
...
@@ -1270,7 +1270,7 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
...
@@ -1270,7 +1270,7 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
if
sync_self
:
if
sync_self
:
assert
intermediate_tensors
is
not
None
assert
intermediate_tensors
is
not
None
for
k
,
v
in
intermediate_tensors
.
items
():
for
k
,
v
in
intermediate_tensors
.
items
():
is_scattered
=
"residual"
and
is_residual_scattered
is_scattered
=
k
==
"residual"
and
is_residual_scattered
copy_len
=
num_tokens
//
tp
if
is_scattered
else
\
copy_len
=
num_tokens
//
tp
if
is_scattered
else
\
num_tokens
num_tokens
self
.
intermediate_tensors
[
k
][:
copy_len
].
copy_
(
self
.
intermediate_tensors
[
k
][:
copy_len
].
copy_
(
...
...
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