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.
- Install Ollama from the official site
- Run the first model
- Know the five basic commands
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:
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:
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
| Command | What it does |
|---|---|
| ollama pull NAME | Downloads the model |
| ollama run NAME | Opens the conversation |
| ollama list | Shows what is on the disk |
| ollama ps | Shows what is in memory right now |
| ollama rm NAME | Deletes 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
- "model not found": the name is wrong or the model was not downloaded. Check it in the library and run pull.
- Very slow answer: the model is too big for the memory. Use a smaller version of the same family and close heavy programs.
- It won't connect: the service is not running. On Windows and Mac, open the Ollama app.
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
- Install Ollama from ollama.com and confirm with ollama list.
- Run ollama pull llama3.2 and then ollama run llama3.2.
- Ask the five questions, score each from 1 to 5 and write down how long each answer took.
Summary
- Ollama downloads, keeps and runs models on your computer.
- Installer only from ollama.com.
- pull downloads, run talks, list and ps show, rm deletes.
- After the download, nothing leaves the machine.
- The model leaves memory after 5 minutes idle, unless you adjust it.
Sources
Read on October 30, 2026.
- 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.
Isaque Victor free courses