Language

Appearance

Guides

Run an AI model on your own computer

Install Ollama, download one model and chat with it offline.

Level
Intermediate
Steps
4
Time
12 min
Works with
Windows, macOS, Linux
Checked

A model on your own computer works offline and sends nothing to a server. It is slower and less capable than a hosted one.

  1. Check memory
  2. Install Ollama
  3. Download a model
  4. Chat

1Check how much memory you have

The model file has to fit in memory with room to spare. These are rough starting points.

MemoryStart with
8 GBThe smallest models
16 GBSmall to mid-size models
32 GB or a graphics cardMid-size models at a usable speed

2Install Ollama

Download the installer for Windows, macOS or Linux from ollama.com and run it. Ollama is free and open source.

3Download and run a model

Pick a model name from ollama.com/library, open a terminal and type the commands below with that name.

ollama pull model-name1

ollama run model-name2

>>> Summarize this paragraph in two sentences.3

ollama list4

  1. Downloads the model. The first download is several gigabytes.
  2. Starts a chat in the terminal.
  3. Type your question after the prompt. It works with the network off.
  4. Shows the models already on your computer.

4Decide what stays local

On your computer
  • Private documents
  • Working offline
  • No usage cap
Hosted
  • Hard questions
  • Very long documents
  • Web search and newer features

More guides

Weekly picks