Files
vllm-omni/examples/offline_inference/qwen_2_5_omni
2025-10-24 16:49:19 +08:00
..
2025-10-23 14:33:33 +08:00
2025-10-24 16:49:19 +08:00
2025-10-24 16:49:19 +08:00
2025-10-24 16:49:19 +08:00
2025-10-24 16:49:19 +08:00
2025-10-24 16:49:19 +08:00

Offline Example of vLLM-omni for Qwen2.5-omni

Installation

Set up basic environments

uv venv --python 3.12 --seed
source .venv/bin/activate

Install certain version of vllm with commitid: 808a7b69df479b6b3a16181711cac7ca28a9b941

git clone https://github.com/vllm-project/vllm.git
cd vllm
git checkout 808a7b69df479b6b3a16181711cac7ca28a9b941
VLLM_USE_PRECOMPILED=1 uv pip install --editable .

Run examples

Get into the example folder

cd vllm_omni
cd examples/offline_inference/qwen2_5_omni

Modify PYTHONPATH in run.sh as your path of vllm_omni. Then run.

bash run.sh

The output audio is saved in ./output_audio

To-do list

  • 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
  • Support for other models