[CLI] Add --model-type override and keep launch_server supported (#19523)

This commit is contained in:
Liangsheng Yin
2026-02-27 18:16:31 -08:00
committed by GitHub
parent e08ef06758
commit ac400cb7bb
3 changed files with 93 additions and 145 deletions

View File

@@ -29,6 +29,16 @@ def run_server(server_args):
if __name__ == "__main__":
import warnings
warnings.warn(
"'python -m sglang.launch_server' is still supported, but "
"'sglang serve' is the recommended entrypoint.\n"
" Example: sglang serve --model-path <model> [options]",
UserWarning,
stacklevel=1,
)
server_args = prepare_server_args(sys.argv[1:])
try: