Signed-off-by: Rein Yang <ruiruyang2@gmail.com> Co-authored-by: Rein <rein@Reins-MacBook-Air.local>
2.1 KiB
2.1 KiB
Online serving Example of vLLM-omni for Qwen2.5-omni
🛠️ Installation
Please refer to README.md
Run examples (Qwen3-Omni)
Launch the server
vllm serve Qwen/Qwen3-Omni-30B-A3B-Instruct --omni --port 8091
If you have custom stage configs file, launch the server with command below
vllm serve Qwen/Qwen3-Omni-30B-A3B-Instruct --omni --port 8091 --stage-configs-path /path/to/stage_configs_file
Get into the example folder
cd examples/online_serving
Send request via python
python openai_chat_completion_client_for_multimodal_generation.py --query-type mixed_modalities
Send request via curl
bash run_curl_multimodal_generation.sh mixed_modalities
FAQ
If you encounter error about backend of librosa, try to install ffmpeg with command below.
sudo apt update
sudo apt install ffmpeg
Run Local Web UI Demo
This Web UI demo allows users to interact with the model through a web browser.
Running Gradio Demo
Once vllm and vllm-omni are installed, you can launch the web service built on AsyncOmniLLM by
python gradio_demo.py --model Qwen/Qwen3-Omni-30B-A3B-Instruct --port 7861
Then open http://localhost:7861/ on your local browser to interact with the web UI.
Options
The gradio demo also supports running with an existing API server and can be customized with the following arguments.
python gradio_demo.py \
--model Qwen/Qwen3-Omni-30B-A3B-Instruct \
--use-api-server \
--api-base http://localhost:8091/v1 \
--ip 127.0.0.1 \
--port 7861
--model: Model name--use-api-server: If set, connect to an existing vLLM HTTP API server instead of running AsyncOmniLLM locally.--api-base: Base URL for vllm serve (only used whenuse-api-serveris set, default: http://localhost:8091/v1)--ip: Host/IP for Gradio server (default: 127.0.0.1)--port: Port for Gradio server (default: 7861)--stage-configs-path: Path to custom stage configs YAML file (optional)--share: Share the Gradio demo publicly (creates a public link)