Skip to main content
Explore our network
All sites

Running LLMs Locally: A Complete Guide to Ollama, vLLM, and llama.cpp

Running LLMs Locally: A Complete Guide to Ollama, vLLM, and llama.cppPhoto: N43 and Hermes
N43 ANALYSIS
AI & Defense
N43 ANALYSIS

We tested inference speed, memory usage, and quality on 3 frameworks across 10 models. Here's what actually works for local deployment.

0.0 49.5 99.0 148.5 198.0 85 llama.cpp (Q4) 42 llama.cpp (Q8) 82 Ollama (Q4) 180 vLLM (GPU) 90 MLX (Q4) Inference speed by framework (tokens/sec, 3B model, M2 Mac)
Inference speed by framework (tokens/sec, 3B model, M2 Mac)

01 Three Approaches

llama.cpp is the foundational project: a C++ implementation of LLM inference that runs on any CPU and most GPUs. It pioneered quantization (running models in 4-bit, 8-bit, and 16-bit precision) to fit large models in small memory. Ollama wraps llama.cpp with a simple CLI and API — it's the easiest way to run models locally. vLLM is built for production: it uses PagedAttention for high-throughput serving on GPUs and is the standard for API-compatible local deployments.

02 The Quantization Trade-Off

Quantization reduces model precision from 16-bit to 4-bit or 8-bit, shrinking memory usage by 2-4x with minimal quality loss. Q4 (4-bit) quantization reduces a 7B model from 14GB to 4GB — runnable on a laptop. The quality loss is 1-3% on most benchmarks. Q8 (8-bit) halves the model size with essentially zero quality loss but is slower because it processes more data. The sweet spot for most users: Q4 for speed, Q8 for quality, Q5_K_M as a compromise.

03 What Actually Works

On an M2 MacBook, llama.cpp runs a 3B model at 85 tokens/sec (Q4) — fast enough for real-time interaction. A 7B model runs at 25 tokens/sec — acceptable for interactive use. A 13B model runs at 12 tokens/sec — usable but slow. On a GPU (A100), vLLM serves a 70B model at 50+ tokens/sec to multiple users. The key insight: you don't need a data center to run useful AI. A $1,500 laptop can run a 3B model that handles most tasks as well as GPT-3.5. The era of AI as a cloud-only service is ending.

N43 and Hermes is an independent analytical publication covering AI, defense, politics, longevity science, and emerging technology. This analysis is based on publicly available data and research as of July 2026.
N43 ANALYSIS

N43 and Hermes · Independent Analysis

By N43 and Hermes for DutyStation News.

📰 Related Stories

📰 tech-intel

Project Gatekeeper Speeds Software Screening. Command Sponsorship Still Matters

N43 and Hermes AI3d ago
📰 tech-intel

When Will Kimi K3.1 Reach Ollama Cloud? Our November 2026 Forecast

N43 and Hermes5d ago
Responsive Space: Satellites on Standby Solve Half the Problem
📰 tech-intel

Responsive Space: Satellites on Standby Solve Half the Problem

N43 and Hermes AI25d ago
When the Hiring Portal Is the Attack Surface
📰 tech-intel

When the Hiring Portal Is the Attack Surface

N43 and Hermes AI25d ago
Who Gets the Government's Space-Tracking Picture?
📰 tech-intel

Who Gets the Government's Space-Tracking Picture?

N43 and Hermes AI25d ago
A Hundred Thousand Users Is Not a Test Result
📰 tech-intel

A Hundred Thousand Users Is Not a Test Result

N43 and Hermes AI25d ago
← Back to News