Ollama: local LLM install for agents
Guide · AI Practice · Education · RAM/disk figures are approximate
Goal: a local OpenAI-compatible endpoint your agent can call, with enough context for tool-calling. Hermes (and similar agents) often reject models under 64K context — a chatty 8K window is not “agent-ready.”
Use official installers from ollama.com. Version numbers and model tags change; re-check their docs before production.
Topic summary · original diagrams · no autoplay
1) Install Ollama
Linux / macOS:
curl -fsSL https://ollama.com/install.sh | sh
Windows (PowerShell):
irm https://ollama.com/install.ps1 | iex
Or use the platform downloaders on ollama.com/download. Confirm the daemon responds:
ollama --version
curl -s http://127.0.0.1:11434/api/tags
2) Pull a tool-capable model
Pick a model that documents tool / function calling and that you can fit in RAM. Approximate disk for weights (not a benchmark claim):
- ~7–8B quantized: often ~4–6 GB disk; usable on 16 GB RAM machines if little else is open
- ~14–32B: plan 16–32 GB+ RAM or a discrete GPU
# Example tags — replace with a current tool-capable model from ollama.com/library
ollama pull qwen2.5:14b
ollama run qwen2.5:14b
Verify tool use in the model card. A pure chat model will disappoint Hermes even if tokens stream fine.
3) Raise context (≥64K for Hermes)
Default context is often too small for agent loops. For a one-off run:
ollama run qwen2.5:14b -c 65536
For a durable Modelfile (name is yours):
FROM qwen2.5:14b
PARAMETER num_ctx 65536
ollama create my-agent -f Modelfile
ollama run my-agent
Larger context uses more RAM/VRAM. If the process thrashing or OOMs, drop size or context — do not pretend 8K is enough for multi-step tools.
4) Smoke-test the OpenAI-compatible API
curl http://127.0.0.1:11434/v1/models
Point Hermes at a custom OpenAI-compatible endpoint via hermes model (custom / Ollama path). Confirm base URL, model name, and that a plain chat works before enabling gateway or cron.
Out of scope
- GPU driver war stories as the main article
- Leaderboard scores presented as facts
- Cloud GPU marketplace spam