本地部署 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/ 进行访问。


参考资料:

完结!

相关推荐
智码看视界12 小时前
开源大模型追踪:Qwen3-VL-30B-A3B :30B 总参单卡到底能不能跑?
多模态·视觉语言模型·本地部署·vllm·moe·开源大模型·qwen3-vl
木圭的AI时代指南3 天前
EmbeddingGemma 2 图片检索实测:3 款多模态向量模型在无显卡 Ubuntu 上的完整账本
ai·本地部署·向量模型·图片检索
SatVision炼金士6 天前
DIFY本地部署开源模型配置ollama,提示修改成功却没有加载模型问题解决
开源·dify·本地部署·ollama
智码看视界7 天前
开源大模型追踪:Qwen-Image-2.1 :7B 视觉生成模型开源榜登顶 60.28,原生 RGBA 透明出图
扩散模型·图像生成·本地部署·开源大模型·qwen-image-2.1·rgba透明
Eric.467 天前
8G 显存极限优化|SDXL+ComfyUI 本地部署 AI 漫剧批量生产工作流(源码 + 报错根治)
人工智能·ai绘画·comfyui·本地部署·ai漫剧
2401_8900956111 天前
武汉企业知识库开发公司本地部署与云端部署成本如何比较?
本地部署·企业知识库·云端部署·武汉自动意志科技·成本比较
半甜柠檬12 天前
llama.cpp 部署 Qwen3.8-27B:无独显轻薄本实测
大模型·qwen·量化·本地部署·llama.cpp
维核科技23 天前
知识库增量更新:让“新鲜事”实时可用
私有化部署·本地部署·大模型部署·维核智创·gpu服务器维修
Blockbuater_drug23 天前
AfCycDesign:给 AlphaFold2 换张“环状座位表“,环肽预测/重设计/从头设计一次跑通(本地部署实测)
本地部署·从头设计·afcycdesign·环肽设计·环肽结构预测
维核科技24 天前
AI 网络安全:攻防的新战线
私有化部署·本地部署·大模型部署·离线部署·维核智创