Local LLMs & Ollama
Build the mental model
Intuition before architecture: explain local LLMs by connecting a concrete decision to observable evidence.
1Try it yourself
Playground
Local vs cloud LLM
Match each scenario to local (Ollama-style) or cloud API — tradeoffs, not religion.
Summarize patient notes on a hospital laptop — data cannot leave the device.
Before you start
Why this matters
Imagine you own an offline clinical note assistant and must explain one decision to a teammate who knows basic AI vocabulary but has never operated this feature. Write two sentences: what problem does local LLMs solve, and what evidence would show it is solving that problem? Do not name a vendor or model yet. This separates the enduring idea from one implementation.
2Learn the idea
Read
A useful picture
A local LLM runs under infrastructure you control—on a laptop, workstation, edge device, or private server. “Local” changes data flow and operations, not intelligence: the model still needs memory, compute, updates, evaluation, and security boundaries. The boundary matters: Local means inference runs on controlled hardware; open-weight means weights are obtainable under a license; open source implies more than downloadable weights. Quantization changes numerical representation, not parameter count, and privacy still depends on logs, plugins, and network paths.
Draw the system in prose as four boxes: need → evidence → decision → consequence. The need belongs to a person or workflow, not the model. Evidence is what the system can legitimately inspect. The decision is the transformation local LLMs performs. The consequence is what changes for a user, operator, or downstream system. If you cannot fill every box, the design is still a label rather than a working mental model.
For an offline clinical note assistant, ask what happens when the model is absent. That baseline reveals the actual value. Then ask what remains deterministic: identity, permissions, arithmetic, record updates, and irreversible actions should not become fuzzy merely because a model participates. The model can propose or interpret; an application still owns policy and state.
Read
Boundaries beginners often blur
Local means inference runs on controlled hardware; open-weight means weights are obtainable under a license; open source implies more than downloadable weights. Quantization changes numerical representation, not parameter count, and privacy still depends on logs, plugins, and network paths. This distinction is practical. It tells you where to inspect a failure and which component can repair it. Avoid explaining the concept as “the AI understands everything.” Name the artifact moving between stages—a token sequence, retrieved passage, ranked candidate, stored memory, trace, image latent, or agent message.
A good explanation also includes uncertainty. Inputs may be incomplete, learned behavior is probabilistic, and proxies can disagree with real outcomes. That does not make the system unusable; it means the workflow needs a fallback and a way to expose uncertainty rather than hiding it in fluent prose.
Read
First design sketch
Use this compact record:
| Question | Concrete answer to supply | |---|---| | User job | One action the person is trying to complete | | Input boundary | Data allowed into the system | | Model contribution | The uncertain judgment or generation | | Deterministic guard | Rule, permission, schema, or calculation | | Success signal | Observable outcome, split by important group | | Escape hatch | Retry, fallback, escalation, or stop |
For this topic, a plausible first signal is not “the output looks intelligent.” It is a task outcome tied to the concept and checked on representative cases. Save this sketch; later pages add controls and measurements without changing the user job.
Read
Explain it back
Teach the concept using the analogy above, then deliberately state where the analogy breaks. The kitchen, notebook, workbench, team, or librarian metaphor omits numerical limits and operational ownership. A learner has mastery when they can leave the metaphor and describe the actual information flow.