本地部署 mini-omni

本地部署 mini-omni

  • [1. 创建虚拟环境](#1. 创建虚拟环境)
  • [2. 克隆代码](#2. 克隆代码)
  • [3. 安装依赖模块](#3. 安装依赖模块)
  • [4. 启动 server](#4. 启动 server)
  • [5. 运行 streamlit demo](#5. 运行 streamlit demo)
  • [6. 运行 gradio demo](#6. 运行 gradio demo)

1. 创建虚拟环境

复制代码
conda create -n omni python=3.10
conda activate omni

2. 克隆代码

复制代码
git clone https://github.com/gpt-omni/mini-omni.git
cd mini-omni

3. 安装依赖模块

复制代码
pip install -r requirements.txt

4. 启动 server

复制代码
sudo apt-get install ffmpeg
conda activate omni
cd mini-omni
python3 server.py --ip '0.0.0.0' --port 60808

5. 运行 streamlit demo

复制代码
sudo apt-get install libasound2-dev portaudio19-dev libportaudio2 libportaudiocpp0

export PYTHONPATH=./
pip install PyAudio==0.2.14
conda install -c conda-forge libstdcxx-ng
API_URL=http://0.0.0.0:60808/chat streamlit run webui/omni_streamlit.py

使用浏览器打开 http://localhost:8501/ 进行访问。

6. 运行 gradio demo

复制代码
API_URL=http://0.0.0.0:60808/chat python3 webui/omni_gradio.py --port 7860

使用浏览器打开 http://localhost:7860/ 进行访问。


参考资料:

完结!

相关推荐
康de哥4 天前
【一站式】本地部署大模型(GLM-4.5-Air量化版) + Claude Code Router + Claude Code
本地部署·claude code·glm-4.5-air
淮上安子骞15 天前
sage10.8源码部署
服务器·密码学·ctf·本地部署·sage
万事可爱^20 天前
GitCode+昇腾部署Rnj-1模型实践教程
人工智能·深度学习·语言模型·gitcode·本地部署·昇腾npu
未来之窗软件服务25 天前
幽冥大陆(六十) SmolVLM 本地部署 轻量 AI 方案—东方仙盟筑基期
人工智能·本地部署·轻量模型·东方仙盟·东方仙盟自动化
kong79069282 个月前
本地部署AI大模型
ai大模型·本地部署
howard20053 个月前
虚拟机上部署Web项目
本地部署·web项目·虚拟机部署
Jayin_chan7 个月前
dify本地部署及添加ollama模型(ubuntu24.04)
ubuntu·ai大模型·dify·rag·本地部署
PassLink_7 个月前
AlgorithmVisualizer项目改进与部署-网页算法可视化
算法·编程·开源项目·本地部署·算法可视化·源码改进
U-Mail邮件系统7 个月前
本地部署企业邮箱,让企业办公更安全高效
企业邮箱·本地部署
理论最高的吻7 个月前
本地部署 DeepSeek R1(最新)【从下载、安装、使用和调用一条龙服务】
ai·本地部署·ollama·deepseek