Running a Large Language Model Locally: VRAM Math and Consumer Hardware Tiers
Before asking which GPU can run a model, do one division. This guide is that division plus a shopping list you can follow.
Start with the division: parameters x precision = memory
How much VRAM a model's weights need is close to hand-calculable: parameter count × bytes per parameter. Each parameter takes 2 bytes at FP16, 1 byte at INT8 and 0.5 bytes at INT4. A 7B model at FP16 therefore needs roughly 14GB.
On top of that division you need runtime overhead: the KV cache, which at long context lengths can exceed the weights themselves, plus the framework's own footprint. In practice add 20–30% on top, or you will hit an out-of-memory error halfway through.
One takeaway is enough: a 13B model at FP16 needs about 26GB — just over what a 24GB card offers. So the answer to "can a 24GB card run 13B?" is: yes, but you must quantise to INT8 or accept a shorter context.
How consumer graphics cards actually tier
For local models, a graphics card is graded on exactly two things: VRAM capacity and memory bandwidth. Raw compute (TFLOPS) comes third, because inference constantly shuttles weights between memory and the chip, and insufficient bandwidth stalls everything.
- 8GB: a 7B model at INT4, workable but strained at long context
- 12GB: the comfortable tier for 7B, enough for 13B at INT4
- 16GB: the FP16 threshold for 13B, the INT4 threshold for 30B
- 24GB: the sweet spot. A quantised 13B is comfortable, a 32B runs, and code completion feels usable
Unified memory: the other route, taken by Macs
On a Mac there is a completely different route: Apple Silicon's unified memory lets CPU and GPU share one pool, available at 32GB, 64GB and beyond. The cost is bandwidth — roughly 40–60% the speed of an NVIDIA card of the same capacity.
- The reasons to pick a Mac: quiet, low idle power, portable
- The reasons to pick NVIDIA: speed, the CUDA ecosystem, more mature quantisation tooling
- Note: no CUDA on Mac, so some quantisation and fine-tuning recipes simply do not run
What running a model locally does not buy you
A local model wins on exactly three things: privacy, working offline, and no per-token cost. On almost everything else it is slower, less capable and harder to tune than the cloud API it replaces.
- "My data never leaves my machine" — only worth paying for when it genuinely is sensitive
- "It's free" — count the electricity, the depreciation and your own hours
- "It works offline" — only if your model is good enough; otherwise you have just locked a worse model onto your machine
Three honest tiers
- Floor tier: run a quantised 7B on hardware you already own and find out whether this matters to you at all
- Middle tier: a 12GB–16GB card running a quantised 13B for everyday questions
- Upper tier: 24GB of VRAM — where code completion and local pair programming start to be genuinely usable
The pre-purchase checklist
- What model size do you actually intend to run? Write it down, then do the maths
- FP16 or INT8? Quantisation halves the memory but costs some quality
- How long a context do you need? At long lengths the KV cache can exceed the weights
- Does it fit the case? Large-VRAM cards are usually two or three centimetres longer than standard ones
- Is the power supply enough? High-VRAM cards spike harder under load