mirror of
https://github.com/kvcache-ai/sglang.git
synced 2026-07-01 04:08:10 +00:00
15 lines
358 B
Python
15 lines
358 B
Python
"""Launch the inference server."""
|
|
|
|
import argparse
|
|
|
|
from sglang.srt.server import launch_server
|
|
from sglang.srt.server_args import ServerArgs
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser()
|
|
ServerArgs.add_cli_args(parser)
|
|
args = parser.parse_args()
|
|
server_args = ServerArgs.from_cli_args(args)
|
|
|
|
launch_server(server_args)
|