RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Eruo Fredoline
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
  1. >
  2. Home
  3. /Learn
  4. /Courses
  5. /Ollama — Installation to Mastery
  6. /Ch. 1
Ollama — Installation to Mastery

01. What is Ollama?

Chapter 1 of 20 · 15 min
KEY INSIGHT

Ollama abstracts away the complexity of model serving while exposing low-level controls through Modelfiles and environment variables.

Ollama is a local model serving runtime that downloads, configures, and runs large language models on your own hardware. It wraps model weights in a standardized format and exposes a REST API and CLI for interacting with them. The tool handles the complexity of model loading, tokenization, and inference without requiring you to write Python code or manage CUDA kernels directly.

Ollama stores models in a local directory (typically ~/.ollama/models on Linux and macOS, %USERPROFILE%\\.ollama\\models on Windows). When you run a model, Ollama loads it into memory, manages the inference pipeline, and exposes endpoints for generating text, chatting, and creating embeddings. Models run as long-running processes that maintain state across requests.

The architecture consists of three layers:

  1. Model registry - The command ollama pull downloads model manifests and weights from ollama.com. Each model has a name (like llama3.2:3b) and a size. You can inspect available models with ollama list.

  2. Inference engine - When you run ollama run, the engine loads the model weights and starts an interactive session. Behind the scenes, Ollama uses llama.cpp for CPU inference and CUDA/Metal for GPU acceleration.

  3. API layer - The HTTP server listens on port 11434 by default. You can send POST requests to /api/generate, /api/chat, and /api/embeddings. The Python library wraps these endpoints.

Local verification checkpoint

Run the smallest example from this chapter in a local workspace and record the package version, runtime, data path, and observed output. If the result depends on model size, vector count, CPU/GPU backend, or available memory, note that constraint beside the exercise so the lesson remains reproducible.

EXERCISE

Run ollama --version to verify the binary is installed, then run curl http://localhost:11434 to check if the API is running (expect a JSON response with status field).

# Linux/macOS
ollama --version
curl http://localhost:11434

# Windows PowerShell
ollama --version
Invoke-RestMethod -Uri http://localhost:11434
← Overview
Ollama — Installation to Mastery
Chapter 2 →
Installation by OS