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
dcdc3faf
Unverified
Commit
dcdc3faf
authored
Dec 06, 2024
by
youkaichao
Committed by
GitHub
Dec 06, 2024
Browse files
[ci] fix broken tests (#10956)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
c05cfb67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vllm/worker/model_runner.py
vllm/worker/model_runner.py
+6
-6
No files found.
vllm/worker/model_runner.py
View file @
dcdc3faf
...
...
@@ -1782,6 +1782,9 @@ class ModelRunner(GPUModelRunnerBase[ModelInputForGPUWithSamplingMetadata]):
kv_caches: vLLM's paged memory
"""
if
self
.
vllm_config
.
kv_transfer_config
is
None
:
return
False
prefill_meta
=
model_input
.
attn_metadata
.
prefill_metadata
# check if the current run is profiling
...
...
@@ -1789,9 +1792,6 @@ class ModelRunner(GPUModelRunnerBase[ModelInputForGPUWithSamplingMetadata]):
# check if the current run is prefill
is_prefill_run
=
prefill_meta
is
not
None
if
self
.
vllm_config
.
kv_transfer_config
is
None
:
return
False
return
self
.
vllm_config
.
kv_transfer_config
.
is_kv_consumer
and
(
not
is_profile_run
)
and
is_prefill_run
...
...
@@ -1807,6 +1807,9 @@ class ModelRunner(GPUModelRunnerBase[ModelInputForGPUWithSamplingMetadata]):
kv_caches: vLLM's paged memory
"""
if
self
.
vllm_config
.
kv_transfer_config
is
None
:
return
False
prefill_meta
=
model_input
.
attn_metadata
.
prefill_metadata
# check if the current run is profiling
...
...
@@ -1814,9 +1817,6 @@ class ModelRunner(GPUModelRunnerBase[ModelInputForGPUWithSamplingMetadata]):
# check if the current run is prefill
is_prefill_run
=
prefill_meta
is
not
None
if
self
.
vllm_config
.
kv_transfer_config
is
None
:
return
False
return
self
.
vllm_config
.
kv_transfer_config
.
is_kv_producer
and
(
not
is_profile_run
)
and
is_prefill_run
...
...
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