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
cd6239dc
Commit
cd6239dc
authored
Jul 09, 2025
by
zhuwenwen
Browse files
[fix]修复零消耗引入的cudagraph模式数据准备cpu耗时问题
parent
f7be09fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/attention/backends/utils.py
vllm/attention/backends/utils.py
+2
-2
No files found.
vllm/attention/backends/utils.py
View file @
cd6239dc
...
...
@@ -242,8 +242,8 @@ class CommonMetadataBuilder(AttentionMetadataBuilder[TAttentionMetadata]):
input_block_tables
[
i
,
:
len
(
block_table
)]
=
block_table
# block_tables = torch.from_numpy(input_block_tables).to(
# device, non_blocking=True)
block_tables
=
async_tensor_h2d
(
input_block_tables
.
tolist
(),
torch
.
int32
,
device
,
self
.
runner
.
pin_memory
)
block_tables
=
torch
.
from_numpy
(
input_block_tables
).
pin_memory
().
to
(
device
,
non_blocking
=
True
)
else
:
block_tables
=
make_tensor_with_pad
(
...
...
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