[{"source":{"position":0,"lines":["<h1 id="qwen25-omni-nbsp-nbsp-englishnbspnbsp">Qwen2.5-Omni 保姆级部署教程:<a href="README_CN.md">中文  |   English  ","
Qwen2.5-Omni(仓库 <a href="https://github.com/QwenLM/Qwen2.5-Omni">QwenLM/Qwen2.5-Omni)<a href="README_CN.md">中文  |   English  。本文基于官方 README 整理,从零开始带你完成环境搭建、配置、启动与日常使用全流程。
","<img alt="Qwen2.5-Omni 官方预览图" src="/upload/_cover_qwen2-5-omni.png"/>
"]},"target":{"position":0,"lines":["<h1 id="qwen25-omni-nbsp-nbsp-englishnbspnbsp">Qwen2.5-Omni 保姆级部署教程:<a href="README_CN.md">中文 | English ","Qwen2.5-Omni(仓库 <a href="https://github.com/QwenLM/Qwen2.5-Omni" target="_blank" rel="noopener">QwenLM/Qwen2.5-Omni)<a href="README_CN.md">中文 | English 。本文基于官方 README 整理,从零开始带你完成环境搭建、配置、启动与日常使用全流程。
","<img alt="Qwen2.5-Omni 官方预览图" src="/upload/_cover_qwen2-5-omni.png" />
"]},"type":"CHANGE"},{"source":{"position":4,"lines":["Qwen2.5-Omni 是一款开源项目,<a href="README_CN.md">中文  |   English  。它解决了实际开发和运维中的具体痛点,无论是个人开发者还是团队使用,都可以快速自托管部署,掌握数据自主权。
"]},"target":{"position":4,"lines":["Qwen2.5-Omni 是一款开源项目,<a href="README_CN.md">中文 | English 。它解决了实际开发和运维中的具体痛点,无论是个人开发者还是团队使用,都可以快速自托管部署,掌握数据自主权。
"]},"type":"CHANGE"},{"source":{"position":131,"lines":["<code class="language-bash">sudo tee /etc/systemd/system/qwen2.5-omni.service <<EOF","[Unit]","Description=Qwen2.5-Omni Service","After=network.target","","[Service]","Type=simple","WorkingDirectory=/opt/qwen2.5-omni","ExecStart=/opt/qwen2.5-omni/start.sh","Restart=always","RestartSec=5","User=www-data","","[Install]","WantedBy=multi-user.target","EOF","","sudo systemctl daemon-reload","sudo systemctl enable --now qwen2.5-omni",""]},"target":{"position":131,"lines":["
<code class="language-bash">sudo tee /etc/systemd/system/qwen2.5-omni.service <<eof [unit] description="Qwen2.5-Omni" service after="network.target" [service] type="simple" workingdirectory="/opt/qwen2.5-omni" execstart="/opt/qwen2.5-omni/start.sh" restart="always" restartsec="5" user="www-data" [install] wantedby="multi-user.target" eof sudo systemctl daemon-reload sudo systemctl enable --now qwen2.5-omni < code>"]},"type":"CHANGE"},{"source":{"position":205,"lines":["- <a href="https://github.com/QwenLM/Qwen2.5-Omni">GitHub 仓库","- <a href="https://github.com/QwenLM/Qwen2.5-Omni/blob/main/README.md\">官方 README"]},"target":{"position":186,"lines":["- <a href="https://github.com/QwenLM/Qwen2.5-Omni" target="_blank" rel="noopener">GitHub 仓库","- <a href="https://github.com/QwenLM/Qwen2.5-Omni/blob/main/README.md" target="_blank" rel="noopener">官方 README"]},"type":"CHANGE"}]
安装部署(实操步骤)
1. 前置准备
- 项目仓库:QwenLM/Qwen2.5-Omni(https://github.com/QwenLM/Qwen2.5-Omni)
- 需要本机具备 Git;按项目语言准备对应运行时(Python / Node.js / Go / Java 等)
- 建议先在本机或测试服务器上跑通,再部署到生产环境
- 遇到依赖版本问题时,以仓库 README 与 Releases 说明为准
2. 官方安装 / 启动命令(摘自项目 README,可直接复制执行)
pip install transformers==4.52.3
pip install accelerate# It's highly recommended to use `[decord]` feature for faster video loading.
pip install qwen-omni-utils[decord] -U#### Flash-Attention 2 to speed up generation
First, make sure to install the latest version of Flash Attention 2:## Chat with Qwen2.5-Omni
### Online Demo
Without deployment, you can experience online web demo directly by visiting our [Hugginface Spaces](https://huggingface.co/spaces/Qwen/Qwen2.5-Omni-7B-Demo) and [Modelscope Studio](https://modelscope.cn/studios/Qwen/Qwen2.5-Omni-Demo).
### Launch Local Web UI Demo
In this section, we provide instructions for users to build a web-based user interface (UI) demo. This UI demo allows users to interact with a predefined model or application through a web browser. Follow the steps below to get started or you can launch the web demo directly from our [official docker image](#-docker).
#### Installation
Before you begin, ensure that you have the required dependencies installed on your system. You can install them by running the following command:### vLLM Serve usage
You can also use vLLM serve through `pip install vllm>=0.8.5.post1`, and vLLM serve for Qwen2.5-Omni only supports thinker now, meaning only text output is supported. You can start vLLM servev through the following command:3. 部署流程
- 克隆仓库:
git clone https://github.com/QwenLM/Qwen2.5-Omni - 进入目录后按上面的官方命令安装依赖
- 参考 README 的配置说明填写配置文件或环境变量
- 按官方说明启动服务,确认监听端口与访问地址
- 浏览器访问验证功能,确认无报错后再开放外网
4. 常见问题排查
- 依赖安装失败:先升级包管理器,再确认运行时版本符合 README 要求
- 启动报端口占用:修改配置中的端口或释放被占用端口
- 页面打不开:检查防火墙 / 安全组是否放行对应端口
- 功能异常:查看运行日志,对照 Issues 中同类问题处理