2025-12-01 16:01:54 +08:00
# Offline Example of vLLM-Omni for Qwen3-Omni
2025-11-30 18:20:44 +08:00
Source <https://github.com/vllm-project/vllm/tree/main/examples/offline_inference/qwen3_omni>.
## 🛠️ Installation
Please refer to [README.md ](https://github.com/vllm-project/vllm/tree/main/README.md )
2025-12-01 16:01:54 +08:00
## Run examples (Qwen3-Omni)
2025-11-30 18:20:44 +08:00
### Multiple Prompts
2025-12-01 16:01:54 +08:00
Download dataset from [seed_tts ](https://drive.google.com/file/d/1GlSjVfSHkW3-leKKBlfrjuuTGqQ_xaLP/edit ). For processing dataset please refer to [Qwen2.5-Omni README.md ](https://github.com/vllm-project/vllm/tree/main/examples/offline_inference/qwen2_5_omni/README.md )
2025-11-30 18:20:44 +08:00
Get into the example folder
```bash
cd examples/offline_inference/qwen3_omni
```
Then run the command below.
```bash
bash run_multiple_prompts.sh
```
### Single Prompt
Get into the example folder
```bash
cd examples/offline_inference/qwen3_omni
```
Then run the command below.
```bash
bash run_single_prompt.sh
```
If you have not enough memory, you can set thinker with tensor parallel. Just run the command below.
```bash
bash run_single_prompt_tp.sh
```
### FAQ
If you encounter error about backend of librosa, try to install ffmpeg with command below.
```
sudo apt update
sudo apt install ffmpeg
```
## Example materials
??? abstract "end2end.py"
``````py
2025-12-01 16:01:54 +08:00
--8<-- "examples/offline_inference/qwen3_omni/end2end.py"
2025-11-30 18:20:44 +08:00
` `````
??? abstract "run_multiple_prompts.sh"
` `````sh
2025-12-01 16:01:54 +08:00
--8<-- "examples/offline_inference/qwen3_omni/run_multiple_prompts.sh"
2025-11-30 18:20:44 +08:00
` `````
??? abstract "run_single_prompt.sh"
` `````sh
2025-12-01 16:01:54 +08:00
--8<-- "examples/offline_inference/qwen3_omni/run_single_prompt.sh"
2025-11-30 18:20:44 +08:00
` `````
??? abstract "run_single_prompt_tp.sh"
` `````sh
2025-12-01 16:01:54 +08:00
--8<-- "examples/offline_inference/qwen3_omni/run_single_prompt_tp.sh"
2025-11-30 18:20:44 +08:00
` `````