AI Inference · Ollama

Ollama

Run LLMs locally with one command — Llama, Qwen, DeepSeek, Mistral — with a REST API and GPU auto-detection.

Visit ollama.com
CategoryPricingCompanyOfficial siteBest for
AI InferenceFreeOllamaollama.comPrivate, offline LLM work on your own hardware — dev, evals and tinkering

What it is

Ollama is the simplest on-ramp to running open LLMs on your own machine. One command downloads a model, detects your GPU (or falls back to CPU), quantizes it sensibly and serves it with a REST API — no CUDA spelunking, no GGUF file scavenger hunts, no Python environment archaeology. It’s Docker for LLMs, and the analogy holds harder than it has any right to.

It’s open source, free, and runs on macOS, Windows and Linux. The model library at ollama.com covers Llama, Qwen, DeepSeek, Mistral, Gemma, Phi, embeddings models and multimodal vision models. It’s the default local-inference layer for half the AI tooling you already use.

What it actually does

Three primitives: pull, run, serve. ollama run llama3.2 fetches the model and drops you into a chat. Behind the scenes a server listens on port 11434 with OpenAI-compatible endpoints, so any tool that speaks to OpenAI can speak to your laptop.

# Chat with a model immediately
ollama run llama3.2

# List what's pulled, pull bigger models
ollama list
ollama pull qwen2.5-coder:7b

# The REST API, OpenAI-compatible
curl http://localhost:11434/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"llama3.2","messages":[{"role":"user","content":"Why is local inference underrated?"}]}'

It also handles GPU offload, model storage management, custom system prompts via Modelfiles (a Dockerfile-like format), and OpenAI-compatible API shims — so OPENAI_BASE_URL=http://localhost:11434/v1 is a two-line migration for most apps.

Why developers reach for it

  • Privacy by default. Prompts never leave the machine — client code, medical notes, legal drafts, all local.
  • Zero marginal cost. No per-token bill. Eval suites and bulk generation become free.
  • Offline-first. Works on planes, air-gapped networks and the cabin of a mountain.
  • Ecosystem gravity. Everything from Open WebUI to Continue.dev speaks Ollama natively.

How it compares to alternatives

Ollama vs llama.cpp. Ollama is a friendly layer on top of the llama.cpp engine: it packages model distribution, GPU detection, an HTTP server and a CLI into one install. llama.cpp itself is the lower-level C++ runtime — maximum control, manual GGUF management, manual flags, more performance knobs. Use Ollama unless you need llama.cpp’s raw flags, exotic quantization or embedded deployment; you can always drop down later, the engines are the same family.

Ollama vs hosted APIs (Groq, Together). Hosted wins on speed and frontier quality; Ollama wins on privacy, cost at scale and offline use. Most practitioners run both: Ollama for dev, tests and sensitive data; hosted APIs for hard production reasoning.

Pricing and free tier

Free. Fully open source, no tiers, no tokens, no seat counts. The only costs are your own hardware and electricity. Ollama does offer paid commercial support and cloud-adjacent offerings, but the local runtime costs nothing and always will.

Where it shines / where it doesn’t

Shines: local dev loops, privacy-sensitive work, bulk evals and dataset generation, teaching and tinkering, and as the inference backend for self-hosted stacks like Open WebUI.

Doesn’t: 70B+ models on a 16 GB laptop (physics wins), frontier reasoning quality, sub-100ms latency, and serving many concurrent users — it’s a local runtime, not a production cluster.

Getting started in 3 minutes

# 1. Install from ollama.com (or: brew install ollama)
# 2. Run your first model — it downloads on first use
ollama run llama3.2

# 3. Optional: serve the API and point your app at it
ollama serve
curl http://localhost:11434/api/tags

Three minutes to a working local LLM. Add Open WebUI with one Docker command (docker run -d -p 3000:8080 ghcr.io/open-webui/open-webui:main) and you have a full chat UI.

PeaBox fit

Ollama is the cornerstone of PeaBox’s local-first tooling story — every PeaBox AI experiment that touches user data runs against it first. Pair it with Open WebUI for a self-hosted chat front end, swap in Groq or Together AI when you need speed or scale, and keep OpenRouter as the escape hatch for models that won’t fit on your GPU.

The honest practitioner take

Ollama did for local LLMs what Docker did for containers: it made the right thing the easy thing. My rig now runs a Qwen coder model for autocomplete and a Llama 3.2 for general grunt work, and I genuinely forget which cloud API I would have paid for. Know your hardware — a 7B/8B model hums on anything modern, 32B wants a real GPU, 70B wants serious VRAM. Keep your expectations calibrated: local open models are excellent for 80% of tasks and quietly bad at the hardest 5%. For that last mile, reach for a hosted frontier API and stop feeling guilty about it.

Model availability and performance approximate as of Nov 2026; check ollama.com for the current library.