Ollama + Open WebUI 使用随记
Ollama 是简化本地设备上大型语言模型 (LLM) 安装和管理的平台,而 Open WebUI 是 Ollama LLM 运行程序的可扩展网络用户界面。
Ollama
在 Kubernetes 上部署 Ollama:
1 | helm repo add ollama-helm https://otwld.github.io/ollama-helm/ |
下载 deepseek-r1:1.5b
模型并运行:
调用 API 运行:
1 | root@rke2-cilium-01:~/ai-related# curl -s -X POST http://<ollama-svc-ip>:11434/api/generate -d '{ "model": "deepseek-r1:1.5b", "prompt": "你好?", "stream": false }' | jq |
Open WebUI
在 Kubernetes 上部署 Open WebUI:
1 | helm repo add open-webui https://helm.openwebui.com/ |
访问 Open WebUI:
Ollama + Open WebUI 使用随记
https://warnerchen.github.io/2025/02/27/Ollama-Open-WebUI-使用随记/
You need to set
install_url
to use ShareThis. Please set it in _config.yml
.