What Hardware Do You Need to Run AI Models Locally? 3 Numbers

By

Robert Waithaka

·

· Updated

·

8 min readReviewed
What Hardware Do You Need to Run AI Models Locally? 3 Numbers

What hardware do you need to run AI models locally? The honest answer: less than you think for small models, and more than you hope for big ones. Three numbers decide everything — VRAM, system RAM and disk — and a small, quantized model can run on hardware you already own. This guide gives you a sizing table, a tier-by-tier breakdown and a testing method, with estimates clearly marked where you should verify them yourself.

What Hardware Do You Need to Run AI Models Locally?#

Local AI is a memory game. A model's size is measured in parameters — the adjustable "knobs" inside it — and the memory needed is roughly the parameter count times the bytes per parameter at your chosen precision. A 7-billion-parameter model at 4-bit precision needs about 3.5 GB of memory for its weights alone, plus more for context and software. That is why a laptop with 16 GB can run useful models today, and why "how much VRAM to run Llama?" has a different answer for every model, quant and machine.

The Only Three Numbers That Matter: VRAM, RAM, Disk#

NumberWhat it doesWhy it matters
VRAM (GPU memory)Holds the model while it runsThe single biggest speed factor; models that fit in VRAM run fast
System RAMHolds what doesn't fit in VRAMWhen the model "offloads" to RAM, speed drops sharply
Disk (NVMe)Stores model filesLoading a 40 GB model file is painful on slow storage

Table: the three numbers that matter, per Microsoft Learn and Galante (Medium). NVMe storage is "non-negotiable" in the hardware reporting.

A practical rule from the field: 24 GB of VRAM is the sweet spot for running competent 30–70B models with decent quantization; Apple Silicon with 64 GB+ of unified memory can run much larger models because the GPU can access all system RAM.

Model Size × Quantization → Memory Needed#

ModelParametersQuantized size (Q4)Minimum memorySource
Phi-4-mini3.8B~2.5 GB4 GBiproyal comparison (Aug 2026)
Qwen 3 8B8.2B~4.5 GB8 GBiproyal comparison
Gemma 4 12B12B~7.5 GB16 GBiproyal comparison
Mistral Small 324B~14 GB16 GBiproyal comparison
Qwen 35B MoE35B~20 GB~20 GBHoke guide (May 2026)
Llama 70B-class70B~40 GB~40 GBHoke guide
Llama 4 Scout109B (MoE)~60 GB~60 GBiproyal comparison
gpt-oss-120b120B~65–70 GB~65–70 GBHoke guide

Table: model size × quantization → memory needed, using published 2026 estimates that include overhead. Different guides agree closely (Hoke: 7B 4–5 GB, 13B 7–8 GB, 35B ~20 GB, 70B ~40 GB, 120B ~65–70 GB). Context length, the KV cache and the runtime add more. The brief for this post says it plainly: verify numbers against the model card and your own machine rather than trusting tables online.

Figure: published Q4 memory estimates from the Hoke guide (May 2026), consistent with the model-specific sizes in the iproyal comparison (Aug 2026). Context, KV cache and software add more; verify with the model card.

Quantization is what makes local AI feasible: reducing precision from 16 bits to 4 bits per parameter roughly quarters the memory needed, with a modest quality trade-off. Tools like llama.cpp and Ollama handle quantized models automatically, which is why "can my laptop run local AI?" is increasingly answered "yes, for small models".

GPU vs CPU-Only vs Apple Silicon Unified Memory#

Figure: GPUs run models fastest but are limited by VRAM; Apple Silicon's unified memory lets the GPU use all system RAM; disk only stores files. Sources: Galante (Medium); Microsoft Learn.
OptionStrengthLimit
NVIDIA/AMD GPUFastest inference; 24 GB runs 30–70B at Q4VRAM is expensive and fixed
CPU-only / integrated graphicsRuns small models (Phi-class 3.3B) on any machineSlow; big models impractical
Apple Silicon unified memory64 GB+ runs up to ~120B at Q4Apple ecosystem only; RAM is the cost

Table: GPU vs CPU-only vs Apple Silicon, from the hardware reporting in the supplied materials.

There is one number that matters more than raw compute for local inference: memory bandwidth. Every token the model generates requires reading the weights out of memory, so the bus speed sets your ceiling on tokens per second. That is why a 2026 buyer's guide ranks machines by bandwidth, not clock speed, and why a lower-compute card with more bandwidth often wins on inference.

Figure: memory bandwidth by platform — the spec that sets the ceiling on tokens per second. Sources: Frontier Lab buyer's guide (June 2026); kingy.ai hardware guide (Aug 2026).

What "Offloading" Means and Why It Slows Things Down#

When a model is too big for VRAM, the software splits it: some layers live in VRAM, the rest in system RAM, and data shuttles between them on every step. This "offloading" is why a 70B model can technically run on a 16 GB laptop but feel glacial. The reporting is consistent: memory bandwidth is the bottleneck, not the model's intelligence. If you are CPU-only, expect small models and patience; if you want speed, fit the model in VRAM.

Realistic Expectations by Tier#

Figure: model sizes that fit at each tier at Q4 precision, based on the model references in the supplied materials. Tokens per second depend on your specific hardware — measure your own.
TierWhat fits (Q4 estimate)Community price / exampleRealistic use
CPU-only / integrated graphics3.3–4B class (Phi-4-mini)Anything you already own; $351 mini PCs run 35B MoE models slowlySummarisation, classification, offline experiments
8 GB VRAM7–8B class (Qwen 3 8B)Laptop GPUs (e.g. RTX 4060): ~30–40 tok/s on an 8B model (community)Chat, drafting, simple coding help
12–16 GB VRAM13B class; 35B MoE with tricksRTX 4070 12GB: 35B MoE at 58–62 tok/s (Hoke)Better quality, RAG over personal documents
24 GB VRAM27–32B class (Qwen3.8-27B)Used RTX 3090 (~$900 card, ~$2.5k system): 27B at ~37 tok/s (kingy.ai)Strong quality; the reported sweet spot
32 GB VRAM27B at very high speedRTX 5090: ~150–200 tok/s reported (r/LocalLLM)Speed-focused setups
Apple 64–128 GB unifiedup to ~120B classMac Mini M4 Pro 64GB ~11–12 tok/s (DEV); M5 Max 128GB ~34 tok/s (kingy.ai)Large models on one machine

Table: tier expectations with published 2026 prices and reported speeds — each speed belongs to an exact setup, not a promise. Measure yours with the test below.

Real-world speeds reported in 2026 (community and independent tests)

SetupModel and quantReported speedSource
RTX 3090 24 GBQwen3.8-27B Q4_K_M, llama.cpp37.4 tok/s (60.3 with draft)kingy.ai (Aug 2026)
RTX 5090 32 GBQwen3.8-27B, NInfer~150–200 tok/sr/LocalLLM
RTX 4070 12 GBQwen3-35B-A3B MoE58–62 tok/sHoke guide (May 2026)
GTX 1060 6 GB35B MoE, optimised~17 tok/sHoke guide
Strix Halo (Ryzen AI Max+ 395)Qwen3.6-35B-A3B MoE45–50 tok/sFrontier Lab (June 2026)
Laptop RTX 4060 8 GBQwen3 8B Q5_K_M30–40 tok/sr/LocalLLM
Mac Mini M4 Pro 64 GB13–30B class~11–12 tok/sDEV community guide
MacBook Pro M5 Max 128 GBDeepSeek custom (~81 GB)34.1 tok/s meankingy.ai

Table: reported tokens-per-second for specific setups, so you can calibrate expectations. Different backends, quants and contexts change these numbers — the speed bands used by the kingy.ai guide: 20+ tok/s comfortable, 8–20 usable, 2–8 slow, below 2 not interactive.

Buying Advice, and When Not to Buy#

Figure: a real local rig costs AUD 50–100/month in electricity, while cloud AI can cost $500–2,000 per engineer per month once usage scales. Sources: LinkedIn real-world report; Uber CTO via Spiceworks.
  • Buy when you run high-volume, repetitive workloads, need privacy, or want zero per-use cost. A rig for 70B+ models costs upwards of $3,000, and a 24 GB card is the reported sweet spot.
  • Don't buy when your use is occasional. Cloud is cheaper at low volume — one H100 rental costs about $2/hour, and ownership only wins after 12,500–15,000 hours of use.
  • Before buying, check what you already own: integrated graphics can run a 3.3B model today, and an 8 GB card handles 7–8B class models at Q4.
  • GPU sourcing warning: enterprise-grade GPUs can take 36–52 weeks to arrive, so plan ahead if you commit.
  • Community value picks (2026): a used RTX 3090 at roughly $900 remains the most-recommended way to get 24 GB of VRAM; $351 mini PCs can run a 35B MoE model for experiments; Strix Halo mini PCs ($1,800–3,000) offer 96–128 GB of unified memory at a fraction of Apple or NVIDIA prices.
  • Buy memory now: on Strix Halo, DGX Spark and Apple machines the RAM is soldered — there is no upgrade path, and the 2026 DRAM crunch pushed prices up and big configurations out of stock.
  • Dedicated appliances: the DGX Spark ($4,699) is a CUDA dev box more than a speed machine (273 GB/s); the Framework Desktop 128GB (~$3,978) is the open/repairable route; the M5 Max MacBook Pro 128GB ($6,699) is the portable large-model option.

Testing What You Already Own#

  1. Install a runner: start with Ollama — one command gets you a model.
  2. Pick a small quantized model (7–8B, Q4) and watch memory usage while it responds.
  3. Measure tokens per second on a fixed prompt, then try a larger model and compare.
  4. If it feels too slow, check whether the model is offloading to RAM (task manager shows the tell).
  5. Repeat with LM Studio, llama.cpp or Jan and keep the one that fits your workflow.

Where to Go Next#

If you are still deciding whether local makes sense for you, our local AI vs cloud AI guide walks through the five-way trade-off with cost maths and a decision flowchart. The AI glossary covers the terms (parameters, quantization, VRAM), and our ChatGPT vs Claude vs Gemini comparison is the reference for the cloud side. The one rule to remember: the numbers in any online sizing table — including this one — are starting points, not gospel. Your hardware, your model card and your stopwatch are the final authority.


Sources#

Ollama documentation — hardware requirements and GPU support

Hugging Face — running LLM inference locally with Transformers

llama.cpp — build options and supported backends

Last reviewed: 22 August 2026. Model memory footprints change with each release; verify before buying. Re-checked quarterly.

Written to help beginners learn — general information, not professional advice. Verify anything important for your own situation.Editorial policy →

Who wrote this

Robert Waithaka

Robert Waithaka is an experienced project manager on Information Technology (IT) projects with over 5 years managing different software projects.