[V0 Deprecation] Remove vllm.worker and update according imports (#25901)

This commit is contained in:
Aaron Pham
2025-09-29 23:26:11 +00:00
committed by GitHub
parent 2e4fe48c37
commit 6a113d9aed
11 changed files with 276 additions and 327 deletions
+5 -5
View File
@@ -19,7 +19,7 @@ from vllm.sequence import ExecuteModelRequest
from vllm.tasks import SupportedTask
from vllm.utils import make_async
from vllm.v1.outputs import PoolerOutput, SamplerOutput
from vllm.worker.worker_base import WorkerBase
from vllm.v1.worker.worker_base import WorkerBase
logger = init_logger(__name__)
@@ -30,7 +30,7 @@ class ExecutorBase(ABC):
"""Base class for all executors.
An executor is responsible for executing the model on one device,
or it can be a distributed executor
or it can be a distributed executor
that can execute the model on multiple devices.
"""
@@ -83,7 +83,7 @@ class ExecutorBase(ABC):
Returns:
A list containing the results from each worker.
Note:
It is recommended to use this API to only pass control messages,
and set up data-plane communication to pass data.
@@ -100,7 +100,7 @@ class ExecutorBase(ABC):
Returns a tuple `(num_gpu_blocks, num_cpu_blocks)`, where
`num_gpu_blocks` are blocks that are "active" on the device and can be
appended to.
appended to.
`num_cpu_blocks` refers to "swapped" blocks in CPU memory and cannot be
appended to.
"""
@@ -327,7 +327,7 @@ class DistributedExecutorBase(ExecutorBase):
run only in the remote TP workers, not the driver worker.
It will also be run asynchronously and return a list of futures
rather than blocking on the results.
# TODO: simplify and merge with collective_rpc
"""
raise NotImplementedError