2025-11-28 11:03:52 +08:00
|
|
|
# vLLM-Omni CLI Guide
|
|
|
|
|
|
|
|
|
|
The CLI for vLLM-Omni inherits from vllm with some additional arguments.
|
|
|
|
|
|
2026-08-26 04:58:54 +08:00
|
|
|
Environment variables are process configuration rather than CLI-only options.
|
|
|
|
|
See the [Environment Variables](../configuration/environment_variables.md)
|
|
|
|
|
reference for ownership, precedence, evaluation time, and per-stage `env`
|
|
|
|
|
scoping.
|
|
|
|
|
|
2025-11-28 11:03:52 +08:00
|
|
|
## serve
|
|
|
|
|
|
|
|
|
|
Starts the vLLM-Omni OpenAI Compatible API server.
|
|
|
|
|
|
|
|
|
|
Start with a model:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
vllm serve Qwen/Qwen2.5-Omni-7B --omni
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Specify the port:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
vllm serve Qwen/Qwen2.5-Omni-7B --omni --port 8091
|
|
|
|
|
```
|
|
|
|
|
|
2026-08-03 23:41:52 +08:00
|
|
|
Load a custom deploy configuration with `--deploy-config`:
|
2026-07-13 23:59:42 +08:00
|
|
|
|
2025-11-28 11:03:52 +08:00
|
|
|
```bash
|
2026-07-13 23:59:42 +08:00
|
|
|
vllm serve Qwen/Qwen2.5-Omni-7B --omni --deploy-config /path/to/deploy_config.yaml
|
2025-11-28 11:03:52 +08:00
|
|
|
```
|
2026-01-30 11:41:09 +08:00
|
|
|
|
|
|
|
|
## bench
|
|
|
|
|
|
|
|
|
|
Run benchmark tests for online serving throughput.
|
|
|
|
|
Available Commands:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
vllm bench serve --omni \
|
|
|
|
|
--model Qwen/Qwen2.5-Omni-7B \
|
|
|
|
|
--host server-host \
|
|
|
|
|
--port server-port \
|
|
|
|
|
--random-input-len 32 \
|
|
|
|
|
--random-output-len 4 \
|
|
|
|
|
--num-prompts 5
|
|
|
|
|
```
|
|
|
|
|
|
2026-08-25 23:32:58 +08:00
|
|
|
See [vllm bench serve](./bench/serve.md) for serving benchmark arguments and
|
|
|
|
|
dataset-specific examples, including OmniInteract native-duplex sessions.
|