Files
OpenLLM/typings/vllm/engine/ray_utils.pyi
aarnphm-ec2-dev 820b4991fa chore(stubs): add generated for auto-gptq and vllm [skip ci]
This is to help with working on CPU machine

Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-08-03 02:28:24 +00:00

18 lines
714 B
Python
Generated

from typing import Optional
from typing import Tuple
from _typeshed import Incomplete
from ray.air.util.torch_dist import TorchDistributedWorker
from ray.util.placement_group import PlacementGroup as PlacementGroup
from vllm.config import ParallelConfig as ParallelConfig
class RayWorker(TorchDistributedWorker):
worker: Incomplete
def __init__(self) -> None: ...
def init_worker(self, worker_init_fn) -> None: ...
def __getattr__(self, name): ...
def execute_method(self, method, *args, **kwargs): ...
def get_open_port(): ...
def initialize_cluster(parallel_config: ParallelConfig, engine_use_ray: bool = ..., ray_address: Optional[str] = ...) -> Tuple[str, Optional[PlacementGroup]]: ...