Module 2 · Hands on

Installing Ollama and running the first model

Lesson 4 of 15 8 min lesson Updated on October 30, 2026
Progress in the course27%

In this lesson

In a few minutes, a model answering on your computer, with nothing leaving it.

Ollama hides the hard part. One command downloads the model, another opens the conversation. Done.

What Ollama does

It is a free program that does three things: it downloads models, keeps them on your disk and runs them. After the download, nothing leaves the machine. You can turn off the Wi-Fi and the conversation goes on.

Installing

Download it only from ollama.com, typing the address into the browser. Never use an installer that came by email, message or ad.

On Windows and Mac, download the app and open it. On Linux, the official page shows a one-line command. To test it, open the terminal and type:

ollama list

Did a list show up, even an empty one? It is installed. A terminal is just a window where you type commands as text. Copy, paste and press Enter.

The first model

We will use a small model, which fits on almost any machine:

ollama pull llama3.2 ollama run llama3.2

The first one downloads. The second opens the conversation. To leave, type /bye. If the internet drops during the download, run the same command and it picks up where it stopped.

The five commands

CommandWhat it does
ollama pull NAMEDownloads the model
ollama run NAMEOpens the conversation
ollama listShows what is on the disk
ollama psShows what is in memory right now
ollama rm NAMEDeletes the model from the disk

Five test questions

Don't ask "who discovered Brazil". Ask for what your company will really ask for, with no real data: summarize a paragraph, classify a customer message, pull the name and quantity out of an order, write a polite message and build a table. Score each answer from 1 to 5.

A bakery tested classification with WhatsApp messages. The model kept mixing up complaints and delivery questions. The fix was not a different model. It was a better request: "if there is a complaint, it takes priority".

If something goes wrong

Slowness almost always means the model is too big. The fix is a smaller version, not a new machine.

Where it talks

Ollama opens a small service on your computer, at the address localhost:11434. Localhost means "this machine". By default, only programs on your own computer can talk to it. This is the address the screen from lesson 5 and the integrations from lesson 12 will use to talk to the models.

Model names

The names follow the pattern family:size. Without the suffix, Ollama takes the default version. With the suffix, you choose: llama3.2:1b is the smaller version of the same family. Names and sizes change over time, so check the model card on ollama.com. If a model lost in the test, delete it with ollama rm and free up the disk space.

What the pros know

The first answer of each conversation is usually the slowest, and that is not a defect. Ollama only keeps the model in memory for 5 minutes after the last use. Past that, it unloads the model and has to load everything again. Whoever sets up a system for the team adjusts this time with the OLLAMA_KEEP_ALIVE variable or with the keep_alive parameter in each request. That way the model stays ready during working hours.

Practice · 10 min

  1. Install Ollama from ollama.com and confirm with ollama list.
  2. Run ollama pull llama3.2 and then ollama run llama3.2.
  3. Ask the five questions, score each from 1 to 5 and write down how long each answer took.

Summary

Sources

Read on October 30, 2026.

  1. Ollama, frequently asked questions: by default models stay in memory for 5 minutes before being unloaded; adjust with keep_alive.

Lesson quiz

Three situations to apply what you learned.

Lesson 4 of 15

Before moving on to the next lesson

Put what you saw into practice. The boxes stay checked in this browser, so you can come back later.

Have a question about this lesson? The IV Help team answers personally on WhatsApp.

Ask on WhatsApp