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
7c2e91c4
Unverified
Commit
7c2e91c4
authored
Oct 04, 2025
by
Cyrus Leung
Committed by
GitHub
Oct 04, 2025
Browse files
[Misc] Remove unused `executor.apply_model` (#26215)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
736fbf4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
vllm/executor/executor_base.py
vllm/executor/executor_base.py
+1
-12
No files found.
vllm/executor/executor_base.py
View file @
7c2e91c4
...
...
@@ -7,8 +7,7 @@ from abc import ABC, abstractmethod
from
functools
import
cached_property
from
typing
import
Any
,
Awaitable
,
Callable
,
List
,
Optional
,
Set
,
Union
import
torch.nn
as
nn
from
typing_extensions
import
TypeVar
,
deprecated
from
typing_extensions
import
TypeVar
import
vllm.platforms
from
vllm.config
import
VllmConfig
...
...
@@ -127,16 +126,6 @@ class ExecutorBase(ABC):
self
.
collective_rpc
(
"initialize_cache"
,
args
=
(
num_gpu_blocks
,
num_cpu_blocks
))
@
deprecated
(
"`llm_engine.model_executor.apply_model` will no longer work "
"in V1 Engine. Please replace with `llm_engine.apply_model` "
"and set `VLLM_ALLOW_INSECURE_SERIALIZATION=1`."
)
def
apply_model
(
self
,
func
:
Callable
[[
nn
.
Module
],
_R
])
->
list
[
_R
]:
"""
Run a function directly on the model inside each worker,
returning the result for each of them.
"""
return
self
.
collective_rpc
(
"apply_model"
,
args
=
(
func
,
))
@
cached_property
# Avoid unnecessary RPC calls
def
supported_tasks
(
self
)
->
tuple
[
SupportedTask
,
...]:
output
=
self
.
collective_rpc
(
"get_supported_tasks"
)
...
...
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