[CLI] Add --model-type override and keep launch_server supported (#19523)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user