2025-10-22 15:26:42 +08:00
# Offline Example of vLLM-omni for Qwen2.5-omni
2025-10-30 14:37:07 +08:00
## 🛠️ Installation
2025-10-22 15:26:42 +08:00
2025-10-30 17:16:25 +08:00
### Installation of vLLM
2025-10-30 14:37:07 +08:00
Use Docker to keep consistent basic environment (Optional, Recommended)
```bash
docker run --gpus all --ipc= host --network= host -v $source_dir :$container_dir --rm --name $container_name -it nvcr.io/nvidia/pytorch:25.01-py3 bash
```
Set up basic uv environment
2025-10-22 15:26:42 +08:00
```bash
2025-10-30 17:18:19 +08:00
pip install uv
2025-10-22 15:26:42 +08:00
uv venv --python 3.12 --seed
source .venv/bin/activate
```
Install certain version of vllm with commitid: 808a7b69df479b6b3a16181711cac7ca28a9b941
2025-10-30 14:37:07 +08:00
```bash
git clone https://github.com/vllm-project/vllm.git
cd vllm
git checkout 808a7b69df479b6b3a16181711cac7ca28a9b941
```
Set up environment variables to get pre-built wheels. If there are internet problems, just download the whl file manually. And set VLLM_PRECOMPILED_WHEEL_LOCATION as your local absolute path of whl file.
2025-10-22 15:26:42 +08:00
```bash
2025-10-27 21:58:55 +08:00
export VLLM_COMMIT = 808a7b69df479b6b3a16181711cac7ca28a9b941
2025-10-30 14:37:07 +08:00
export VLLM_PRECOMPILED_WHEEL_LOCATION = https://wheels.vllm.ai/${ VLLM_COMMIT } /vllm-1.0.0.dev-cp38-abi3-manylinux1_x86_64.whl
```
2025-10-30 17:16:25 +08:00
Install vllm with command below.
2025-10-30 14:37:07 +08:00
```bash
uv pip install --editable .
2025-10-22 15:26:42 +08:00
```
2025-10-30 17:16:25 +08:00
### Installation of vLLM-omni
Install additional requirements for vllm-omni
```bash
git clone https://github.com/vllm-project/vllm-omni.git
cd vllm_omni
uv pip install -r requirements.txt
```
## Run examples (Qwen2.5-omni)
2025-10-22 15:26:42 +08:00
Get into the example folder
```bash
2025-10-30 17:16:25 +08:00
cd examples/offline_inference/qwen_2_5_omni
2025-10-22 15:26:42 +08:00
```
Modify PYTHONPATH in run.sh as your path of vllm_omni. Then run.
```bash
bash run.sh
```
The output audio is saved in ./output_audio
## To-do list
- [x] Offline inference example for Qwen2.5-omni with single request
- [ ] Adaptation from current vllm branch to stable vllm v0.11.0
- [ ] Offline inference example for Qwen2.5-omni with streaming multiple requests
- [ ] Online inference support
2025-10-24 16:49:19 +08:00
- [ ] Support for other models