From 1 GPU to 8 GPUs: Complete LLM Deployment Guide for Every Budget
The cost curve for local LLMs is flatter than most people assume. Between "no GPU" and "8-GPU server" there are five tiers, each matching a specific workload. Here is what each tier runs, how fast, and when to move up.
📜 Table of Contents
📖 Keep reading
From 1 GPU to 8 GPUs: Complete LLM Deployment Guide for Every Budget
Local inference is not binary. Between a laptop with no discrete GPU and an 8-GPU server there are five practical tiers, and each one maps to a distinct kind of work. This guide walks them in order, with what runs, roughly how fast, and the signal that tells you to move up.
The rule of thumb first: local only pays off past a few thousand calls a day, or when several people share the endpoint. For occasional use, cloud APIs are cheaper. What you actually buy locally is privacy, uptime and no rate limits.
Estimating VRAM: one formula, three terms
VRAM needed = weights + KV cache + runtime overhead.
| Format | Bytes per parameter (approx.) | Note |
|---|---|---|
| FP16 / BF16 | 2.0 | Original precision |
| INT8 | 1.0 | Tiny quality loss, half the size |
| Q6_K | 0.8 | Close to FP16 |
| Q5_K_M | 0.7 | Above the sweet spot |
| Q4_K_M | 0.55 | The default compromise |
| Q3_K_M | 0.45 | Visible degradation |
| Q2_K | 0.35 | Runs, but output gets incoherent |
At Q4_K_M, a 7B model is roughly 4.5GB, 14B about 9GB, 32B about 20GB, 70B about 43GB. Multiply by ~1.2 for KV cache and framework overhead.
KV cache is the term people forget. It grows linearly with context length and concurrency: a 7B model at 8k context uses on the order of 1GB per stream, a 70B model is an order of magnitude more, and four concurrent streams multiply it again. Weights fitting exactly is how you get OOM the moment a long prompt arrives.
Five tiers, five workloads
| Tier | Hardware | Models (Q4) | Concurrency | Fits |
|---|---|---|---|---|
| A | No dGPU, 16GB RAM laptop | 3B-8B | 1 | Experiments, offline utilities, short-text jobs |
| B | One 12-16GB GPU | 7B-14B | 1-2 | Personal assistant, code completion, doc Q&A |
| C | One 24GB GPU | 14B-32B | 2-4 | Small-team internal assistant, RAG |
| D | 48GB (single or 2x24GB TP) | 70B Q4, 32B FP16 | 4-8 | Department-level service |
| E | 8-GPU server | 70B FP16 and up | Dozens | Batch workloads, replacing part of cloud spend |
Tier A is underrated. An 8B quantized model handles classification, extraction and rewriting well at a few tokens per second, which is fine for batch jobs and painful for conversation.
Tiers A-C: Ollama is enough
curl -fsSL https://ollama.com/install.sh | sh
ollama run qwen2.5:7b
Ollama exposes an OpenAI-compatible endpoint on port 11434, so existing code only needs a new base_url. Three environment variables shape daily experience:
| Variable | Purpose | Suggested |
|---|---|---|
OLLAMA_KEEP_ALIVE |
How long a model stays in memory | -1 for always-on services |
OLLAMA_NUM_PARALLEL |
Concurrent requests | 1-4 based on VRAM |
OLLAMA_MAX_LOADED_MODELS |
Models loaded at once | 1 on a single GPU |
Set KEEP_ALIVE first. The default unloads the model after a few idle minutes, and every cold start costs seconds of reload.
Tier C: squeezing more with llama.cpp
./llama-server -m qwen2.5-14b-instruct-q4_k_m.gguf \
-ngl 99 -c 8192 -fa -t 8 --port 8080
| Flag | Meaning | How to tune |
|---|---|---|
-ngl |
Layers offloaded to GPU | 99 when it fits, lower until OOM stops |
-c |
Context length | Start at 4096, raise as needed |
-fa |
Flash attention | On if supported, saves VRAM |
-t |
CPU threads | Physical cores, not hyperthreads |
-ngl is the useful dial: when VRAM is just short, offload a few layers to CPU instead of giving up the GPU.
Tiers D-E: vLLM with tensor parallelism
pip install vllm
vllm serve Qwen/Qwen2.5-72B-Instruct-AWQ \
--tensor-parallel-size 2 --max-model-len 8192 \
--gpu-memory-utilization 0.9 --max-num-seqs 8
| Flag | Purpose | Typical |
|---|---|---|
--tensor-parallel-size |
Shard across GPUs | 2/4/8 |
--max-model-len |
Max context | Business need, reserves KV cache |
--gpu-memory-utilization |
VRAM share | 0.85-0.92 |
--max-num-seqs |
Concurrent requests | Start at 8 |
--quantization |
Quantization | AWQ / GPTQ |
The real multi-GPU win is continuous batching: generation steps from different requests share a batch, so the GPU stops idling. Ollama and llama.cpp use fixed parallel slots, which waste capacity when request lengths vary. Past 4 concurrent requests the throughput gap shows.
The cost is complexity: weight formats must match, cards must be identical, and without NVLink interconnect traffic eats part of the gain.
Six traps that bite
- Sizing VRAM exactly — leave 15-20% headroom.
- Slow but no obvious cause — check how many layers offloaded to CPU, and whether
KEEP_ALIVEis thrashing loads. - Multi-GPU slower than one card — PCIe bandwidth. Buy one big card before two small ones.
- Model files on a spinning disk — order-of-magnitude load times. Use NVMe.
- Over-quantizing — Q2/Q3 gives back in quality what it saves in VRAM.
- Maxing context — KV cache pushes weights out and triggers offload.
Choosing in three lines
- Laptop only: 8B Q4, batch work not chat.
- 24GB card: 14B-32B Q4 on Ollama.
- Serving a team past 4 concurrent: move to vLLM early.
FAQ
No discrete GPU — still worth it? Yes, for classification, extraction and rewriting. Not for real-time chat.
Can Ollama and vLLM coexist? Yes, on separate GPUs or with explicit VRAM budgets.
Can a 24GB card run 70B? With CPU offload and aggressive quantization, at speeds unusable for interaction. 48GB is the practical floor.
How much system RAM? At least the model file size plus OS overhead; offload scenarios depend on it directly.
How do I deploy a fine-tuned model? Merge the LoRA adapter into the base weights, convert to GGUF for Ollama/llama.cpp or AWQ for vLLM.
Note: VRAM, throughput and speed vary with model version, quantization, context length and drivers. Figures here are order-of-magnitude guidance; verify against your own hardware and the official docs.
Related
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.