Local LLM Deployment Primer: Ollama + Open WebUI in Practice

Published 2026-10-23

Three reasons to run models locally

Data never leaves your machine (privacy and compliance), offline availability, and free unlimited calls. The trade-off: local models are usually weaker than top commercial APIs and limited by your VRAM/RAM.

Step 1: Install Ollama

Ollama is the most popular local model manager — one command pulls and runs a model:

  • After installing, run ollama run qwen2.5:7b to chat in your terminal.
  • Handy commands: ollama list, ollama pull, ollama rm.
  • If model downloads are slow in China, configure a mirror or try hosted platforms like SiliconFlow first.

Step 2: Choose a model

  • 8GB VRAM/RAM: 7B–8B 4-bit quantized models (Qwen2.5 7B, Llama 3.1 8B) are the sweet spot.
  • 16GB+: move to 14B, or higher-precision 7B quants for a clear quality jump.
  • CPU only: it runs, but slowly — start with 7B and shorten context.

Step 3: Add a chat interface

Open WebUI offers a ChatGPT-like web UI with multi-model switching, knowledge bases (RAG) and user management — one Docker command, zero-config Ollama integration. To serve models at scale, vLLM delivers high throughput and Text Generation Inference is Hugging Face's counterpart; for quick demos, Streamlit is ideal.

Understanding quantization

Quantization compresses weights from 16-bit to 4–8-bit, slashing VRAM with usually small quality loss. Q4_K_M is the community's balanced default; go more aggressive only when VRAM is tight.

Performance expectations

  • Speed is measured in tokens/s; a 7B model on a consumer GPU typically hits 20–60 tokens/s — fine for daily use.
  • Longer context means more VRAM and latency — keep it under 8K locally.
  • Time-to-first-token matters more to feel than raw speed; prewarming and batching help.
Local deploymentOllamaOpen-source modelsPrivacy