Playbook: running a model on your own machine
Five steps — VRAM, quantization tier, runtime, evaluation, monitoring — with a size formula, the quantization index, failure modes and an acceptance list.
VRAM: calculate before downloading
The KV formula below is a simplified budget for conventional attention caches, not every architecture or implementation. GB is decimal; GiB = bytes / 2^30.
Weight GB ≈ parameters in billions × bits per weight / 8
KV bytes ≈ 2 × layers × KV heads × head dimension × cached tokens per request
× bytes per element × concurrent requests
Total budget ≈ weights + KV cache + runtime/system overhead + chosen headroom
- Seven billion parameters at pure four-bit precision are about 3.5 GB; use actual file bytes for quantisation metadata and other contents.
- Choose context requirements before a tier; parameter count alone underestimates running memory.
- For GQA/MQA use KV heads, not query heads. Record overhead and headroom for the configuration rather than a universal percentage.
Quantization: use the index
The 2026-10-30 snapshot contains 129 quantisation repositories, 1,262 variants and 1,337 GGUF files.
- Filter against available memory, including cache, concurrency and runtime.
- Check base version, quantisation method, provenance and release notes; publisher name alone does not establish quality.
- Check total size, bits per weight, complete shards and runtime compatibility.
- Validate one clearly specified candidate before deciding whether to compare others.
Runtime: match the hardware
| Hardware | Candidate paths | Check |
|---|---|---|
| Apple silicon | LM Studio with MLX, or llama.cpp | Architecture, format and unified-memory budget |
| One NVIDIA GPU | LM Studio, llama.cpp or ExLlamaV3 | GPU/driver support; GGUF and EXL3 are different formats |
| Multiple GPUs/concurrency | Serving runtimes such as vLLM | Parallel configuration, architecture and quantisation support |
| CPU/edge | Local runtimes such as llama.cpp | Memory, supported architectures and response requirements |
- Choose according to GUI, scripting or serving needs; this is not a performance ranking.
- Tool and model licences are separate.
Evaluate: 20 cases per task
Twenty cases in each of three categories is an illustrative exercise, not a universal acceptance-set size. Choose real task and boundary coverage for the risk.
- Prepare an illustrative 60 tasks: Q&A, summaries and code, 20 each, with expected answers.
- Compare Q4/Q5/Q8, or available neighbouring tiers, recording quality and speed.
- Record correctness, hallucinations, first-token delay and tokens per second.
- Explain why the chosen tier satisfies the task rather than saying it “feels good”.
Failure mode: checking one prompt leaves real task failures undiscovered.
Monitor after launch
- Peak memory, output throughput, first-token delay and error rates.
- Prefer necessary lengths, timings and errors in logs. Hashes can still link back to input; they are not automatic anonymisation. Define access and retention.
- Rerun the task set before changing the model or quantisation.
Cost formula
Initial: hardware, transfer and setup time
Recurring: electricity, maintenance and reevaluation
Cloud comparison: input/output, caching, tools and fixed costs over the same period
No electricity rates or quotations are prefilled. Use the cost calculator with comparable periods. Existing hardware, allocation and maintenance can change the outcome; usage alone does not determine which is cheaper.
Acceptance checklist
- [ ] Consistent-unit capacity budget includes weights, KV cache, concurrency, overhead and chosen headroom.
- [ ] Quantisation and repository versions recorded.
- [ ] Runtime and model licences checked separately.
- [ ] Agreed task set completed, four metrics and uncovered cases recorded.
- [ ] Tier choice explained.
- [ ] Monitoring and alert thresholds defined.
- [ ] Rollback plan ready for updates.
Failure modes
- Weights alone: context cache causes an OOM that the budget missed.
- Parameter confusion: total and active parameters do not directly establish memory or speed.
- Licence confusion: an MIT tool does not determine a model's commercial rights.
- No evaluation set: quality changes go unnoticed.
- No monitoring: peak memory failures are discovered only after deployment.
Worked example: budget memory before starting
These are hypothetical capacity figures, not a named model or measured performance.
Assume a 10 GiB available budget and 6 GiB of weights. Reserve 2 GiB for context cache and 1 GiB for runtime, leaving 1 GiB headroom. The 9 GiB estimate is not a startup guarantee.
Check file provenance, licensing, runtime and architecture support. Start with short input and inspect loading, unsupported operations and actual memory. Increase context gradually, recording errors and response times.
If it does not fit, identify weights, cache and other applications separately. Assess smaller variants, quantizations or supported offload. Startup with unacceptable response time also fails the task.
See the hardware-budget example for units and calculation.
Sources
| Source | URL |
|---|---|
| This site: quantisation index (129 repositories, 1,262 variants and 1,337 GGUF files; 2026-10-30 snapshot) | https://models.specul.com/ |
| llama.cpp: repository (GGUF and llama-server; October 2026 snapshot) | https://github.com/ggml-org/llama.cpp |
| vLLM: documentation (PagedAttention and OpenAI-compatible endpoint; October 2026 snapshot) | https://docs.vllm.ai/ |
| LM Studio: official site (MLX and llama.cpp runtimes; October 2026 snapshot) | https://lmstudio.ai/ |
| PyPI: exllamav3 1.6.5 (2026-10-25; checked 2026-11-03) | https://pypi.org/project/exllamav3/ |
| Hugging Face Transformers: cache tensor shapes (basis for the simplified KV formula; 2026-11-04) | https://huggingface.co/docs/transformers/cache_explanation |
Source snapshot: 2026-11-03; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.
This page appears in: Make games with AI · Build a robot