main
py 27 lines 797 Bytes
Raw
1 # SPDX-License-Identifier: Apache-2.0
2 # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3 import warnings
4
5 from vllm.entrypoints.launchers.grpc_server import main, serve_grpc
6
7 warnings.warn(
8 "`vllm.entrypoints.grpc_server is deprecated and will likely be "
9 "unsupported in a future version. Use the corresponding function from "
10 "`vllm.entrypoints.launchers.grpc_server` instead.",
11 DeprecationWarning,
12 stacklevel=1,
13 )
14
15 __all__ = ["main", "serve_grpc"]
16
17
18 if __name__ == "__main__":
19 warnings.warn(
20 "`python -m vllm.entrypoints.grpc_server is deprecated and "
21 "will likely be unsupported in a future version. "
22 "Please use `vllm serve <model_path> --grpc` instead.",
23 DeprecationWarning,
24 stacklevel=1,
25 )
26
27 main()