vllm.entrypoints.cli.serve ¶
DESCRIPTION module-attribute ¶
DESCRIPTION = "Launch a local OpenAI-compatible API server to serve LLM\ncompletions via HTTP. Defaults to Qwen/Qwen3-0.6B if no model is specified.\n\nSearch by using: `--help=<ConfigGroup>` to explore options by section (e.g.,\n--help=ModelConfig, --help=Frontend)\n Use `--help=all` to show all available flags at once.\n"
ServeSubcommand ¶
Bases: CLISubcommand
The serve subcommand for the vLLM CLI.
Source code in vllm/entrypoints/cli/serve.py
cmd staticmethod ¶
cmd(args: Namespace) -> None
Source code in vllm/entrypoints/cli/serve.py
subparser_init ¶
subparser_init(
subparsers: _SubParsersAction,
) -> FlexibleArgumentParser
Source code in vllm/entrypoints/cli/serve.py
cmd_init ¶
cmd_init() -> list[CLISubcommand]
run_api_server_worker_proc ¶
run_api_server_worker_proc(
listen_address,
sock,
args,
client_config=None,
**uvicorn_kwargs,
) -> None
Entrypoint for individual API server worker processes.
Source code in vllm/entrypoints/cli/serve.py
run_headless ¶
run_headless(args: Namespace)
Source code in vllm/entrypoints/cli/serve.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | |
run_multi_api_server ¶
run_multi_api_server(args: Namespace)