How to Run an AI Model on Your Own Computer, Step by Step (Local LLM With Ollama)
You can run an LLM, a large language model, the kind of AI that powers chatbots like ChatGPT, on your own laptop in three commands. Install Ollama, a free program that downloads AI models and runs them for you, pull a model, the big file of numbers that is the AI itself, and run it. After the download, no internet is needed. Your prompts, the messages you type to the model, never leave your machine. That is what running locally means.
New to these terms? Every word is explained in the series glossary.
I did this on 14 November 2026, on a Linux machine, Linux being a free operating system like Windows or macOS, with no GPU, the graphics chip that runs AI fast, and about 7 GB of RAM, the computer's main working memory. The Ollama version was 0.40.16. The model was qwen3:0.6b, the smallest Qwen3 model, Qwen3 being a free family of models from Alibaba, 522 MB to download, about half a gigabyte. Here is exactly what I ran, and what happened.
Step one, install Ollama. The official install script, a small file of commands that installs the program for you, is one line. You type it into the terminal, the text window where you control the computer by typing commands and pressing Enter. curl downloads the script, and | sh hands it to the program that runs it.
bashcurl -fsSL https://ollama.com/install.sh | sh
On my machine this failed at first, because the script needs a tool called zstd, a tool that unpacks compressed files, to unpack the download, and it was not installed. I fixed it with one command, then ran the script again and it worked. The fix uses sudo, which runs a command with administrator rights, and apt-get, the tool that installs software on Ubuntu and Debian Linux.
bashsudo apt-get install -y zstd curl -fsSL https://ollama.com/install.sh | sh ollama --version
That last command, ollama --version, printed the version, 0.40.16. If you see a version number, Ollama is installed.
Step two, start the server, a program that keeps running and waits for requests, and pull a model. The server runs in the background. The pull downloads the model, 522 MB for this one. ollama serve starts the server and ollama pull does the download. The part after the colon in qwen3:0.6b is the model tag, which picks the size.
bashollama serve ollama pull qwen3:0.6b
Step three, run it. This opens a chat in your terminal. The command is ollama run.
bashollama run qwen3:0.6b
My first prompt was "Write a haiku about the moon." The model thought out loud first, qwen3 is a reasoning model, a model that writes out its thinking before it answers, and it shows its thinking, then it answered:
Moonlight spills silver, Sky's quiet embrace, Stars whisper secrets.
That is a real model, running on my own machine, answering in a few seconds, with no cloud, meaning no company's computers over the internet, and no API key, the secret code paid AI services use to log you in and bill you.
sequenceDiagram autonumber participant U as You, in the terminal participant S as Ollama server participant L as Ollama model library participant M as Model qwen3:0.6b U->>S: ollama serve Note over S: keeps running, waits for requests U->>S: ollama pull qwen3:0.6b S->>L: download the model L-->>S: 522 MB model saved U->>S: ollama run qwen3:0.6b S->>M: load the model into RAM U->>S: prompt: a haiku about the moon S->>M: run the prompt M-->>S: thinking, then the answer S-->>U: the haiku appears Note over U,M: After the download, no internet needed
Diagram: What happens when you type the three commands: the server downloads the model once, loads it, and answers on your machine.
Here is what to do when it is slow. First, use a smaller model. The 0.6b model is the fastest Qwen3 there is. The 8b model is eight times bigger and much slower on a CPU, the computer's main, general-purpose chip. (The "b" means billion parameters, the numbers inside the model, so 8b is 8 billion; see model sizes like 7B.) Second, keep your prompts short. Long prompts take longer to process. Third, close other apps, because the model needs your RAM. Fourth, accept that a CPU is slow and a GPU is fast. On a CPU, a small model answers in seconds and a big model answers in minutes. If you want a big model, you need a GPU, or you need to be patient.
| Model | Download | Speed on this CPU | Good for |
|---|---|---|---|
| qwen3:0.6b | 522 MB | A few seconds | First run, quick tests |
| qwen3:1.7b | 1.4 GB | About ten seconds | Better answers, still fast |
| qwen3:4b | 2.5 GB | Half a minute or more | Real work on a good laptop |
| qwen3:8b | 5.2 GB | Minutes | Needs a GPU to be usable |
One practical note. Qwen3 thinks before it answers, and in the terminal you will see its reasoning scroll past before the answer appears. That is normal. If it bothers you, type /set nothink inside the chat to turn it off, or pick a model that does not reason. (/set nothink is an Ollama chat command, not a terminal command.)
Try this
bashcurl -fsSL https://ollama.com/install.sh | sh ollama pull qwen3:0.6b ollama run qwen3:0.6b
Check your laptop can run it, Part 4. That one matches a model to your RAM, 8 GB, 16 GB or 32 GB, so you pick the right size before you download.
Sources
- Ollama install and first run: run on my machine, 14 November 2026, Ollama 0.40.16, qwen3:0.6b.
- Ollama docs: ollama.com, install and model library pages.
- Model sizes: Ollama model library, Qwen3 page, checked 14 November 2026.
