Ollama +Docker+OpenWebUI

1 Ollama

1.1 下载Ollama

https://ollama.com/download

1.2 运行llama3

bash 复制代码
$ ollama run llama3
pulling manifest
pulling 00e1317cbf74... 100% ▕████████████████████████████████████████████████████████████████████████████████████▏ 4.7 GB
pulling 4fa551d4f938... 100% ▕████████████████████████████████████████████████████████████████████████████████████▏  12 KB
pulling 8ab4849b038c... 100% ▕████████████████████████████████████████████████████████████████████████████████████▏  254 B
pulling 577073ffcc6c... 100% ▕████████████████████████████████████████████████████████████████████████████████████▏  110 B
pulling ad1518640c43... 100% ▕████████████████████████████████████████████████████████████████████████████████████▏  483 B
verifying sha256 digest
writing manifest
removing any unused layers
success

如有需要运行其他大语言模型,访问 https://ollama.com/library

例如要更换为 gemma https://ollama.com/library/gemma ,将运行命令更换为 ollama run gemma

如果要退出,使用以下命令 /bye

2 Docker

https://www.docker.com/products/docker-desktop/

下载安装Docker,注册一个Docker账号。

3 WebUI

https://github.com/open-webui/open-webui

bash 复制代码
# If Ollama is on your computer, use this command:
$ docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

4 查看Containers

5 本地访问

相关推荐
Y38153266220 小时前
Docker Compose 服务依赖与健康检查:healthcheck 让容器按正确顺序启动
运维·docker·容器
2601_965235481 天前
快速了解docker
docker·容器·dubbo
object not found1 天前
从 Page Design 到 System Design:我对 UI/UX 的一次认知变化
ui·ux
李昊哲小课1 天前
Deepin 25 上安装 Docker CE 实战记录
运维·docker·容器·deepin
xy34531 天前
Axure9.0中继器遮罩实现方法
前端·ui·html·axure·原型·产品设计
重生之我来学Python1 天前
Docker套装的简介、安装、超级详细教程
linux·docker·容器·eureka·github
晴天161 天前
Ant Design UI 库核心原理与应用
ui
玫瑰互动GEO1 天前
腾讯AnswerBit(GEO优化监测平台)技术拆解:UI自动化如何采集真实AI回答
大数据·人工智能·ui·ai·自动化·geo优化
起名真的太难了1 天前
Docker 项目部署
docker·容器·eureka
狼与自由1 天前
docker 安装milvus
docker·milvus