Contents

What Is Ollama? A Tutorial for Running Large Language Models Locally

In a nutshell

Ollama is a tool for downloading, managing, and running open-source large language models on your own computer. Think of it as "Docker for AI models":

DockerOllama
docker pull nginxollama pull llama3.2
docker run nginxollama run llama3.2
docker psollama ps
DockerfileModelfile

What can Ollama do?

  • Chat and answer questions: Have conversations like you would with ChatGPT, but the model runs on your computer.
  • Analyze images: Models with vision capabilities can describe images and recognize text.
  • Write code: Use models specialized for code to help write and explain code.
  • Act as an API server: Ollama provides an HTTP API in the background (default http://localhost:11434) that your programs, web interfaces, and other tools can call.
  • Generate text embeddings: Convert text into vectors for semantic search and RAG (so a model can answer questions based on your documents).

How it works

ollama run qwen3
     │
     ▼
Ollama service (runs in the background, listening on port 11434)
     │  1. Model isn't available locally → download it from ollama.com
     │  2. Load the model into GPU memory (VRAM) or system memory
     ▼
Inference engine generates a response → streams it to the terminal or API

Once downloaded, a model stays on your hard drive, so you can use it without an internet connection.

Local models vs. cloud AI services

Local (Ollama)Cloud (ChatGPT, Gemini, etc.)
Data privacyYour data stays on your computerData is sent to the service provider
CostFree (excluding electricity and hardware)Subscription or pay as you go
Offline useYesNo
Model capabilitiesLimited by your hardware; large models may not runAccess to the most capable models
SpeedDepends on your graphics cardUsually fast
Setup and maintenanceYou handle it yourselfNot required

Local models still lag behind the most capable cloud models, but medium-sized open-source models already work well for everyday tasks such as summarizing, translating, classifying, extracting data, and assisting with code.

Ollama also offers cloud models, so you can use larger models with the same commands and API. See Cloud models.

What kind of computer do you need?

The key factor in deciding how large a model you can run is memory, especially graphics card memory (VRAM).

Your computerModels you can run smoothly (approx.)
8 GB of memory, no dedicated graphics cardSmall 1B–4B models (slower)
Apple Silicon Mac with 16 GB of memory7B–8B models
NVIDIA graphics card with 8 GB of VRAM7B–8B models
16–24 GB of VRAM14B–32B models
Mac with 32 GB or more of unified memory30B-class models

(Estimates assume common 4-bit quantized versions. See Choosing a model and hardware requirements.)

  • NVIDIA graphics cards: The broadest support and fastest performance.
  • Apple Silicon (M-series) Macs: Unified memory lets Macs run larger models than PCs at a similar price, with good performance.
  • AMD graphics cards: Some models are supported.
  • CPU only: Models can run, but much more slowly; best suited to small models.
ModelDeveloperHighlights
LlamaMetaOne of the best-known open-source model families
QwenAlibabaStrong Chinese-language capabilities and a wide range of sizes
GemmaGoogleGood performance at smaller sizes; some versions support image input
DeepSeek-R1DeepSeekReasoning model that "thinks" before answering
gpt-ossOpenAIOpen-weight models released by OpenAI
MistralMistral AIEuropean team; efficient models

The full model list is on the Models page at ollama.com. New models are usually added soon after release.

Recap

  • Ollama lets you run open-source AI models locally with simple commands.
  • It also acts as an API server, making it easy to integrate with other programs.
  • The size of the model you can run depends on your memory, especially your graphics card memory.

Next, we'll install Ollama.

Updated October 12, 2026