DEV Community

yudong
yudong

Posted on • Originally published at ylyvip.net

How to Install Ollama and Chat With a Local Model in 20 Minutes

\n

Direct answer: Ollama (177,966 ★, MIT, GitHub-verified 2026-08-07) is the easiest way to run large language models locally. Install it, run one command (ollama run llama3.2), and you're chatting with a model on your own machine — no GPU required for smaller models, no cloud account, no per-token billing. This guide covers install, first model, and the commands you'll actually use.

\n

What Ollama is

\n

Ollama is a local model runner: it downloads models, serves them, and provides a simple CLI and API. It's the standard entry point for local LLMs in 2026 — MIT-licensed, cross-platform (macOS, Windows, Linux), and backed by one of the largest open-source AI communities on GitHub.

\n

Install

\n
  • macOS: download the installer from the official site, drag to Applications.
  • Windows: download the installer; models run in the background service.
  • Linux: curl -fsSL https://ollama.com/install.sh | sh.
\n

After install, verify with ollama --version.

\n

Your first model

\n



ollama run llama3.2

\n

That's it. The model downloads (a few GB) and you're in an interactive chat. For a smaller, faster start: ollama run qwen2.5:3b (~2GB, runs well on CPU).

\n

Commands you'll actually use

\n\n\n\n\n\n\n\n\n
Command What it does
ollama run <model> Start a chat session
ollama list Show downloaded models
ollama pull <model> Download a model without running
ollama serve Start the API server (for app integration)
ollama stop <model> Unload a model from memory
\n

Adding a nicer interface

\n

The CLI is fine, but for a ChatGPT-style experience, run Open WebUI (148,102 ★, GitHub-verified 2026-08-07) against Ollama's API. It gives you a full chat web interface with history, multi-model selection, and document uploads — still fully local, fully private.

\n

The honest part

\n

Local models are smaller than frontier APIs — a 7B-8B model is impressive but not GPT-class. For coding, writing, and general chat, they're genuinely useful; for the hardest reasoning tasks, API models still win. And \"no GPU required\" means slower, not instant — CPU inference works, but expect tea-making pauses on older hardware.

\n

FAQ

\n

Do I need a GPU? No. Smaller models (3B-8B) run on CPU, slower but workable. A GPU (8GB+) makes larger models and faster responses possible.

\n

How much disk space? Models are 2-8GB each. Check ollama list and delete what you don't use.

\n

Is my data private? Yes — everything runs locally. No cloud, no telemetry on your prompts.

\n

How was the star count verified? GitHub API, 2026-08-07: Ollama 177,966 ★, MIT. Open WebUI 148,102 ★.

\n

Summary

\n

Ollama (177,966 ★, MIT, verified 2026-08-07): install → ollama run llama3.2 → chat locally. Add Open WebUI (148,102 ★) for a full interface. Private, free, no GPU required for smaller models. Browse the full 461-tool catalog at ylyvip.net/tools.

Top comments (0)