Lesson 00.03 · Phase 00 · Setup & Tooling
Running local models with Ollama
A local model is free, private, and always available. It also quietly truncates your prompts, cold-starts slowly, and can't always call tools. Know which, before your agent finds out.
Learning objectives
- Query Ollama's native API for your models, their real context length, and whether they support tools.
- Measure what matters for agents: cold-start load time, warm latency, and tokens per second.
- Make a local model deterministic for tests with temperature: 0 and a seed.
- Spot and fix silent prompt truncation caused by a small numctx.
You pull llama3.2, point your agent at it, and paste in a 20-page document. The model answers confidently, but it never saw the first half of the document. Nothing errored. Nothing warned you.
Loading the full lesson…