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
4e33a7ea
Unverified
Commit
4e33a7ea
authored
Sep 26, 2025
by
Naman Lalit
Committed by
GitHub
Sep 27, 2025
Browse files
[Bugfix] Optimize CpuGpuBuffer initialization (#25447)
Signed-off-by:
Naman Lalit
<
nl2688@nyu.edu
>
parent
dc48ba0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/utils.py
vllm/v1/utils.py
+1
-1
No files found.
vllm/v1/utils.py
View file @
4e33a7ea
...
@@ -117,7 +117,7 @@ class CpuGpuBuffer:
...
@@ -117,7 +117,7 @@ class CpuGpuBuffer:
dtype
=
dtype
,
dtype
=
dtype
,
device
=
"cpu"
,
device
=
"cpu"
,
pin_memory
=
pin_memory
)
pin_memory
=
pin_memory
)
self
.
gpu
=
self
.
cpu
.
to
(
device
)
self
.
gpu
=
torch
.
zeros_like
(
self
.
cpu
,
device
=
device
)
self
.
np
:
np
.
ndarray
self
.
np
:
np
.
ndarray
# To keep type hints simple (avoiding generics and subclasses), we
# To keep type hints simple (avoiding generics and subclasses), we
# only conditionally create the numpy array attribute. This can cause
# only conditionally create the numpy array attribute. This can cause
...
...
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