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
cefdb996
Unverified
Commit
cefdb996
authored
Jun 13, 2025
by
汪志鹏
Committed by
GitHub
Jun 13, 2025
Browse files
[Fix] The zip function in Python 3.9 does not have the strict argument (#19549)
Signed-off-by:
汪志鹏
<
wangzhipeng628@gmail.com
>
parent
ace5cdaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+2
-4
vllm/v1/worker/tpu_model_runner.py
vllm/v1/worker/tpu_model_runner.py
+2
-4
No files found.
vllm/v1/worker/gpu_model_runner.py
View file @
cefdb996
...
@@ -467,10 +467,8 @@ class GPUModelRunner(LoRAModelRunnerMixin):
...
@@ -467,10 +467,8 @@ class GPUModelRunner(LoRAModelRunnerMixin):
# Update the block IDs.
# Update the block IDs.
if
not
req_data
.
resumed_from_preemption
:
if
not
req_data
.
resumed_from_preemption
:
# Append the new blocks to the existing block IDs.
# Append the new blocks to the existing block IDs.
for
block_ids
,
new_block_ids
in
zip
(
# type: ignore[call-overload]
for
block_ids
,
new_block_ids
in
zip
(
req_state
.
block_ids
,
req_state
.
block_ids
,
req_data
.
new_block_ids
):
req_data
.
new_block_ids
,
strict
=
True
):
block_ids
.
extend
(
new_block_ids
)
block_ids
.
extend
(
new_block_ids
)
else
:
else
:
# The request is resumed from preemption.
# The request is resumed from preemption.
...
...
vllm/v1/worker/tpu_model_runner.py
View file @
cefdb996
...
@@ -413,10 +413,8 @@ class TPUModelRunner(LoRAModelRunnerMixin):
...
@@ -413,10 +413,8 @@ class TPUModelRunner(LoRAModelRunnerMixin):
req_state
.
num_computed_tokens
=
req_data
.
num_computed_tokens
req_state
.
num_computed_tokens
=
req_data
.
num_computed_tokens
if
not
req_data
.
resumed_from_preemption
:
if
not
req_data
.
resumed_from_preemption
:
# Append the new blocks to the existing block IDs.
# Append the new blocks to the existing block IDs.
for
block_ids
,
new_block_ids
in
zip
(
# type: ignore[call-overload]
for
block_ids
,
new_block_ids
in
zip
(
req_state
.
block_ids
,
req_state
.
block_ids
,
req_data
.
new_block_ids
):
req_data
.
new_block_ids
,
strict
=
True
):
block_ids
.
extend
(
new_block_ids
)
block_ids
.
extend
(
new_block_ids
)
else
:
else
:
# The request is resumed from preemption.
# The request is resumed from preemption.
...
...
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