Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

如何安装和运行Ovis模型?

2025-08-30 1.6 K

Ovis的安装需要以下关键步骤:

  1. environmental preparation:需预先安装Git和Anaconda,创建Python 3.10的conda虚拟环境
  2. Code Fetch: Bygit clone git@github.com:AIDC-AI/Ovis.gitclone warehouse
  3. Dependent Installation:使用requirements.txt安装基础依赖包,建议额外安装Flash Attention加速库
  4. 验证环节:需确认PyTorch版本(推荐2.4.0)和CUDA环境

运行方式提供两种选择:

  • command-line mode:需编写Python脚本加载模型并处理输入输出
  • Gradio界面: Bypython ovis/serve/server.py启动可视化服务

注意:不同参数规模的模型对显存有不同要求,1B模型至少需要4GB显存。

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish