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
8c742a66
Unverified
Commit
8c742a66
authored
Aug 31, 2025
by
Woosuk Kwon
Committed by
GitHub
Sep 01, 2025
Browse files
[Misc] Avoid redundant copy for encoder-only models (#24012)
Signed-off-by:
Woosuk Kwon
<
woosuk.kwon@berkeley.edu
>
parent
183a7096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+7
-7
No files found.
vllm/v1/worker/gpu_model_runner.py
View file @
8c742a66
...
...
@@ -827,13 +827,13 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
blk_table_tensor
=
torch
.
zeros
(
(
num_reqs
,
1
),
dtype
=
torch
.
int32
,
pin_memory
=
self
.
pin_memory
,
device
=
"cpu"
).
to
(
self
.
device
,
non_blocking
=
True
)
slot_mapping
=
torch
.
zeros
(
(
total_num_scheduled_tokens
,
),
dtype
=
torch
.
int32
,
pin_memory
=
self
.
pin_memory
,
device
=
"cpu"
).
to
(
self
.
device
,
non_blocking
=
True
)
device
=
self
.
device
,
)
slot_mapping
=
torch
.
zeros
(
(
total_num_scheduled_tokens
,
)
,
dtype
=
torch
.
int64
,
device
=
self
.
device
,
)
num_common_prefix_blocks
=
0
else
:
blk_table
=
self
.
input_batch
.
block_table
[
kv_cache_group_id
]
...
...
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