28 lines
797 B
Python
28 lines
797 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
import warnings
|
|
|
|
from vllm.entrypoints.launchers.grpc_server import main, serve_grpc
|
|
|
|
warnings.warn(
|
|
"`vllm.entrypoints.grpc_server is deprecated and will likely be "
|
|
"unsupported in a future version. Use the corresponding function from "
|
|
"`vllm.entrypoints.launchers.grpc_server` instead.",
|
|
DeprecationWarning,
|
|
stacklevel=1,
|
|
)
|
|
|
|
__all__ = ["main", "serve_grpc"]
|
|
|
|
|
|
if __name__ == "__main__":
|
|
warnings.warn(
|
|
"`python -m vllm.entrypoints.grpc_server is deprecated and "
|
|
"will likely be unsupported in a future version. "
|
|
"Please use `vllm serve <model_path> --grpc` instead.",
|
|
DeprecationWarning,
|
|
stacklevel=1,
|
|
)
|
|
|
|
main()
|