Running Small LLMs Locally on Modest Hardware: A Practical Selection Guide

    A practical guide to choosing locally deployed small language models by hardware tier, task type, and quantization—covering privacy, offline use, cost, 3B–32B sizing, code vs. general models, RAG embeddings, and Q4/Q5/Q8 trade-offs.

    1. Set the right expectations before you download

    Before you pull any weights, fix what local small models are actually for. Their value is not “smarter than a cloud frontier model.” It is four things:

    • Privacy: data stays on the machine—internal docs, personal notes, and other sensitive text.
    • Offline use: still works with no network (travel, air-gapped offices).
    • Zero marginal cost: no per-token billing; batch jobs and pipelines are cheap to run.
    • Tinkerability: you can change inference settings, fine-tune, and plug models into your own workflows.

    If you expect an “offline GPT-class” system, even a 30–40B quantized model will disappoint. If the task is clear—summarization, classification, rewriting—a few-billion-parameter model can do the job well.

    2. Choose in the right order: hardware first, then use case

    People often reverse the order: they download a hyped model, then find it does not fit VRAM, or that after quantization it is too slow. A better chain:

    1. 1. Hardware ceiling (VRAM / RAM) → parameter scale you can host
    2. 2. Main use (chat / code / knowledge base) → model type
    3. 3. Quantization (Q4 / Q5 / Q8) → size vs. quality
    4. 4. Measure speed and quality → keep or drop

    A rough rule: after 4-bit quantization, weights take about parameter count × 0.55 GB of RAM/VRAM, plus 1–2 GB for context cache. A 7B model at Q4 needs about 5–6 GB of usable VRAM or RAM. Use that estimate when you shortlist.

    3. Recommendations by hardware tier

    Tier 1: CPU-only / iGPU / old machines — 3B–4B quantized

    No discrete GPU, or a weak one. Realistic choice: 3B–4B Q4 models, typically a couple of GB on disk.

    Fits: summarization, simple classification, format rewriting, a lightweight step in a script.

    Do not expect: fast long-form generation. CPU inference is clearly slower than GPU; waiting on a multi-thousand-word draft is painful. Treat these as pipeline parts, not primary chat apps.

    Tier 2: 8 GB VRAM / 16 GB RAM — 7B–8B is the sweet spot

    Typical for many users and thin laptops, and widely treated as the local-deployment “gold size.” A 7B–8B general model at Q4 or Q5 often fits fully in VRAM and covers chat, drafting, translation, and document summaries.

    Why this is the sweet spot:

    • Speed vs. quality: interactive generation is usually fluid enough; quality is enough for daily work.
    • Richest ecosystem: most variants, quants, and fine-tunes at this size.
    • Diminishing returns: more parameters help less while hardware pressure jumps.

    Practical advice: start with an 8B Q4 model, run it stably for a couple of weeks, then decide whether to upgrade hardware or the model based on real usage.

    Tier 3: 12 GB VRAM — 14B is in reach

    Common on mid-range gaming GPUs. Two directions:

    1. 14B general models: Q4 can run; a noticeable step up from 8B on complex instruction following and multi-step tasks.
    2. Reasoning-distilled 7B/14B: stronger than same-size general models on math and logic. Cost: they are verbose—they emit a long chain of thought before the answer, which slows responses and burns context. Better for problem walkthroughs and analysis than for time-critical chat.

    Tier 4: 24 GB VRAM / 32 GB+ RAM — 27B–32B

    Here a local model can feel like a primary tool: long context, heavier code analysis, higher-quality translation. Three hidden costs:

    • Download: tens of GB of files—disk and patience.
    • Load time: swapping models in VRAM is slow if you switch often.
    • Power and heat: long inference on a high-end GPU is not cheap.

    For typical home use, unless you have a hard privacy need or high volume, this tier is often poor value.

    4. Two easy-to-miss use-case traps

    Parameter count is not enough.

    Trap 1: coding wants a code model

    General models can write code but are clumsy; completion accuracy and context understanding lag dedicated code models. A common pattern is a 7B model trained on code for function completion, small refactors, and explaining snippets—clearly better than a same-size general model. In the sweet-spot hardware band, keep both a general and a code model and switch by task.

    Trap 2: a local knowledge base is not only a chat model

    People pick one chat model for document Q&A, then swap chat models when retrieval feels weak. That is the wrong lever.

    A local RAG stack needs at least two model roles:

    1. User question
    2. │
    3. ▼
    4. Embedding model ──→ vectors for query and docs (“find it”)
    5. │
    6. ▼
    7. Vector retrieval (top relevant chunks)
    8. │
    9. ▼
    10. Chat model (LLM) ──→ answer from retrieved context (“answer well”)

    Embedding quality decides whether the right chunks are found. Common small text embedding models are small; hardware cost is negligible. If this step is missing or weak, a stronger chat model still gets the wrong context. When RAG quality is bad, debug retrieval first, then generation.

    5. How to pick a quantization level

    Same model, many quants:

    Quant Size vs. FP16 Guidance
    Q8 ~50% Prefer when VRAM is ample and you want quality
    Q5 ~35% Balanced; quality loss is small
    Q4 ~25% Default; best size/quality trade-off
    Lower (Q2/Q3) ~15% Emergency on old machines; quality drop is obvious

    Q4 is the usual starting point. Q5 vs. Q8 often needs a careful side-by-side to notice. Go below Q4 only when hardware forces it.

    6. Keep expectations in the right place

    One line: small models win on privacy, offline use, zero marginal cost, and control—not on intelligence ceiling.

    • Right expectations: a 3B model can be enjoyable for summaries and classification.
    • Wrong expectations: you will still call a 32B model “dumb.”

    Start at the sweet-spot size for your hardware, run real tasks for two weeks, note whether the pain is speed, quality, or capability, then scale parameters, change model type, or retune quant. Local deployment is iterate-as-needed, not buy top spec on day one.