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
d74278fb
Unverified
Commit
d74278fb
authored
Feb 16, 2026
by
Woosuk Kwon
Committed by
GitHub
Feb 16, 2026
Browse files
[Model Runner V2] Fix unintended CPU-GPU sync in make_dummy (#34667)
Signed-off-by:
Woosuk Kwon
<
woosuk@inferact.ai
>
parent
b68fd899
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/input_batch.py
vllm/v1/worker/gpu/input_batch.py
+1
-1
No files found.
vllm/v1/worker/gpu/input_batch.py
View file @
d74278fb
...
@@ -108,7 +108,7 @@ class InputBatch:
...
@@ -108,7 +108,7 @@ class InputBatch:
query_start_loc_np
=
np
.
empty
(
num_reqs
+
1
,
dtype
=
np
.
int32
)
query_start_loc_np
=
np
.
empty
(
num_reqs
+
1
,
dtype
=
np
.
int32
)
query_start_loc_np
[
0
]
=
0
query_start_loc_np
[
0
]
=
0
np
.
cumsum
(
num_scheduled_tokens
,
out
=
query_start_loc_np
[
1
:])
np
.
cumsum
(
num_scheduled_tokens
,
out
=
query_start_loc_np
[
1
:])
input_buffers
.
query_start_loc
[
0
]
=
0
input_buffers
.
query_start_loc
[
:
1
]
=
0
torch
.
cumsum
(
torch
.
cumsum
(
seq_lens
,
dim
=
0
,
out
=
input_buffers
.
query_start_loc
[
1
:
num_reqs
+
1
]
seq_lens
,
dim
=
0
,
out
=
input_buffers
.
query_start_loc
[
1
:
num_reqs
+
1
]
)
)
...
...
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