1、安装ollama
下载地址:https://ollama.com
下载安装后可以执行命名查看是否安装成功
ollama -v
也可以浏览器访问http://localhost:11434/ 查看ollama允许状态
2、进入ollama模型库选择需要安装的模型
模型库地址:deepseek-r1
3、运行安装指令并等待模型安装完成
4、为了方便模型管理与试用,推荐安装ollama web-ui来管理和使用测试模型
拉取项目源码
git clone https://github.com/ollama-webui/ollama-webui-lite.git
进入项目目录
cd ollama-webui-lite
安装项目依赖
npm i
允许项目
npm run dev
项目默认访问地址:
http://localhost:3000
注意:需要安装node环境
附:ollama常用命令
- ollama list:显示模型列表。
- ollama show:显示模型的信息
- ollama pull:拉取模型
- ollama push:推送模型
- ollama cp:拷贝一个模型
- ollama rm:删除一个模型
- ollama run:运行一个模型