使用本地模型和服务的 AI 脚手架,例如 Ollama 和 ComfyUI
说明:使用
submodule拉取并编译,使用pm2守护运行
仓库: https://github.com/ollama/ollama.git
# 引入子模块
git submodule add -f https://github.com/ollama/ollama.git embedded/ollama
git submodule update --init --recursive
# 编译运行 - macOS
sh scripts/ollama/build-mac.sh
sh scripts/ollama/run-mac.sh
# 加入 pm2
pm2 start scripts/ollama/run-mac.sh --name ollama-11434可以修改环境变量
OLLAMA_MODELS
- macOS: ~/.ollama/models
- Linux: /usr/share/ollama/.ollama/models
- Windows: C:\Users%username%.ollama\models
仓库: https://github.com/open-webui/open-webui.git
# 引入子模块
git submodule add -f https://github.com/open-webui/open-webui.git embedded/open-webui
git submodule update --init --recursive
# 编译运行 - macOS
sh scripts/open-webui/build-mac.sh
sh scripts/open-webui/run-mac.sh
# 加入 pm2
pm2 start scripts/open-webui/run-mac.sh --name Ollama-WebUI-8080仓库: https://github.com/comfyanonymous/ComfyUI
# 引入子模块
git submodule add -f https://github.com/comfyanonymous/ComfyUI embedded/ComfyUI
git submodule update --init --recursive
# 编译运行 - macOS
sh scripts/ComfyUI/build-mac.sh
sh scripts/ComfyUI/run-mac.sh
# 加入 pm2
pm2 start scripts/ComfyUI/run-mac.sh --name ComfyUI-8188cd custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git