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
2e54db4d
Unverified
Commit
2e54db4d
authored
Oct 09, 2025
by
Nick Hill
Committed by
GitHub
Oct 09, 2025
Browse files
[Core] Remove unused `prev_sampled_token_ids_invalid_indices` input batch field (#26514)
Signed-off-by:
Nick Hill
<
nhill@redhat.com
>
parent
44f633db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
vllm/v1/worker/gpu_input_batch.py
vllm/v1/worker/gpu_input_batch.py
+0
-1
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+0
-3
No files found.
vllm/v1/worker/gpu_input_batch.py
View file @
2e54db4d
...
...
@@ -251,7 +251,6 @@ class InputBatch:
# Cached reference to the GPU tensor of previously sampled tokens
self
.
prev_sampled_token_ids
:
Optional
[
torch
.
Tensor
]
=
None
self
.
prev_sampled_token_ids_invalid_indices
:
Optional
[
set
[
int
]]
=
None
self
.
prev_req_id_to_index
:
Optional
[
dict
[
str
,
int
]]
=
None
@
property
...
...
vllm/v1/worker/gpu_model_runner.py
View file @
2e54db4d
...
...
@@ -2305,9 +2305,6 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
# These will be copied into input_ids in the next step
# when preparing inputs.
self
.
input_batch
.
prev_sampled_token_ids
=
sampled_token_ids
self
.
input_batch
.
prev_sampled_token_ids_invalid_indices
=
(
invalid_req_indices_set
)
self
.
input_batch
.
prev_req_id_to_index
=
{
req_id
:
i
for
i
,
req_id
in
enumerate
(
self
.
input_batch
.
req_ids
)
...
...
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