AI · SERIES · BEGINNER

Run LLMs locally with Ollama.

Run a real language model on your own computer, then talk to it four ways: the command line, the desktop app, the REST API, and code in Python and Java. Every part also stands on its own.

PARTS
8
READING TIME
~57 min
LEVEL
beginner
WITH VIDEO
8 of 8
WITH QUIZ
8 of 8

After this series you can

  • Run a language model on your own laptop and know what hardware it needs.
  • Explain what Ollama is and what its local server on localhost:11434 does.
  • Use the Ollama command line and desktop app to pull, run and manage models.
  • Call the REST API with curl and Postman, and choose between /api/generate and /api/chat.
  • Build a chatbot with memory in Python and in Java, using system, user and assistant roles.
WHO IT'S FOR

Developers and curious beginners who have used a chatbot but never run a model themselves. No AI background needed.

The path — 8 parts, in order

Every part also stands on its own.
  1. PART 01How to run an LLM on your own computer (a beginner's guide to local LLMs)ChatGPT runs on someone else's computer. With a free tool called Ollama, a real language model can run on yours, privately, offline and with no bill per question. Here is what that means and how to start.6 min read · ▶ video · quiz
  2. PART 02What is Ollama? The video player for AI models, and localhost:11434 explainedThe model is the movie. Ollama is the player. Here is what Ollama really is, why everything talks to localhost:11434, and what happens inside when you ask it a question.7 min read · ▶ video · quiz
  3. PART 03Ollama CLI commands: the complete cheat sheet (with examples)Every Ollama command you need, explained in plain English with real examples. Install and check, download and run, manage models, build a custom model with a Modelfile, call the REST API, and publish.8 min read · ▶ video · quiz
  4. PART 04The Ollama desktop app: chat with local models, and launch Claude Code or Copilot CLI on themNo terminal needed. The Ollama app gives you a chat window with a model picker, and a one-click launcher that plugs coding agents like Claude Code and GitHub Copilot CLI into your local or cloud models.6 min read · ▶ video · quiz
  5. PART 05System, user and assistant roles in LLM chat APIs, explained simplyEvery message you send to a chat model carries a role. System sets the rules, user asks, assistant answers. Here is what each one does, who writes it, and why the model's own old answers have to go back in.6 min read · ▶ video · quiz
  6. PART 06Ollama REST API: /api/generate vs /api/chat, with curl and Postman examplesEvery Ollama app, command and library talks to the same REST API. Here are its two main endpoints side by side, tested in curl and Postman, plus what stream and think really do when you set them to true or false.9 min read · ▶ video · quiz
  7. PART 07Call a local LLM from Python with Ollama: a stateless request, then a chatbot with memoryStep-by-step Python code that calls Ollama's /api/chat. First we prove the model remembers nothing between requests. Then we build a terminal chatbot that remembers, and see why the assistant's answers and the context window matter.7 min read · ▶ video · quiz
  8. PART 08Call a local LLM from Java with Ollama: HttpClient, a stateless request, then a chatbot with memoryPlain Java, no AI framework. We call Ollama's /api/chat with HttpClient and Jackson, prove the model remembers nothing between requests, then build a terminal chatbot that remembers, and see why the assistant role and the context window matter.8 min read · ▶ video · quiz

Comes after AI Basics A–Z, Java for AI Engineers.

More AI series

All AI series →
SERIESbeginner

AI Basics A–Z

26 AI terms explained simply, one letter at a time. Short, plain-English guides to the words you keep hearing about AI, from algorithm to zero-shot, each with pictures and real examples. Read them in order or jump to any letter.

26 PARTS · ABOUT 161 MIN