Running local LLMs with Ollama: up in three minutes
One command to a local model: install, pick sizes, key commands, and wiring into other apps.
Three steps
Install from the site → `ollama run <model>` (small Qwen or DeepSeek-R1 variants) → chat. Pick 7B-class quants for 8GB, 14B for 16GB+. Nothing leaves your machine — ideal for private data.
Wiring it into tools
Ollama exposes an OpenAI-compatible API on port 11434 — point Dify or any client at it and your local model becomes the backend. Prefer a GUI? Pair it with Open WebUI or LM Studio.
中文
Ollama 本地部署大模型教程:三分钟跑起来
一条命令跑本地模型:安装、选型、常用命令与接入其他工具。
三步跑通
官网下载安装 → 终端执行 ollama run 加模型名(如 qwen 或 deepseek-r1 的小尺寸版)→ 直接对话。8GB 内存/显存选 7B 级量化版,16GB 以上可试 14B。全程数据不出本机,隐私场景的首选。
接入你的工具
Ollama 自带 OpenAI 兼容接口(本地 11434 端口),Dify、各类客户端填个地址就能用本地模型当后端。想要图形界面,配 Open WebUI 或 LM Studio 即可。