Local models with Ollama
Notebook· 14.01· 2–3 h· Lesson 116 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Install and check Ollama on Windows, and choose a model that fits your RAM (and GPU, if you have one).
- Call a local model from LangChain with
ChatOllama, streamed, and measure load time and tokens per second. - Verify structured output and tool calling on the local model, instead of trusting a capability tag.
- Embed text locally with
OllamaEmbeddingsand compare it with the offline hashing baseline. - Compare the same RAG answers on Groq and on your machine: quality, latency, cost and privacy.
- Explain what quantization (
Q4_K_M) and thinking mode cost you on a CPU-only laptop.
Before you start
Modules 01–02 (models, tools) and Module 06 (RAG). Read the module README first.
