What Hardware Do You Need to Run a Local LLM?
Local LLM hardware requirements come down to memory. Learn the parameters × bytes rule, a worked 7B example, how quantization helps, and whether you need a GPU.
Short answer: The main local LLM hardware requirement is enough memory to hold the model: GPU memory (VRAM), unified memory, or ordinary RAM. Memory needed is roughly the number of parameters times the bytes per weight, plus overhead. A GPU makes answers much faster, but small quantized models can run on a CPU alone, just slowly.
What are the local LLM hardware requirements?
Local LLM hardware requirements come down to three questions: does the model fit in memory, how fast can that memory be read, and is there enough disk space for the model file. If you have not run a model locally yet, start with open-source LLMs and Ollama; this post focuses only on the hardware side.
Memory decides whether a model runs. If the weights do not fit, the model will not load or will be extremely slow.
Memory speed and the GPU decide how fast it writes. Generating each new token means reading through the weights, so fast memory matters a lot.
Disk stores the model files, which are roughly the same size as the weights in memory.
How much memory does a local LLM need?
A local LLM needs roughly parameters × bytes per weight for its weights, plus extra room. A parameter is one number the model learned during training. At 16-bit precision each weight takes 2 bytes; at 8-bit, 1 byte; at 4-bit, half a byte. This short script does the arithmetic for a 7-billion-parameter (7B) model:
def weights_gb(params_billion, bits_per_weight):
"""Approximate memory for the weights alone, in gigabytes."""
return params_billion * bits_per_weight / 8
for bits in (16, 8, 4):
print(f"7B model at {bits}-bit: about {weights_gb(7, bits):.1f} GB of weights")Running it prints:
7B model at 16-bit: about 14.0 GB of weights
7B model at 8-bit: about 7.0 GB of weights
7B model at 4-bit: about 3.5 GB of weightsSo a 7B model at 4-bit needs about 7 × 0.5 = 3.5 GB just for the weights. On top of that comes overhead: the runtime program itself and the cache that holds your conversation, which grows with the length of the context window you use. Real 4-bit files are also often a little larger than the simple sum, because they store extra scaling numbers. Treat every figure here as approximate and leave clear headroom.
Model size | 16-bit weights | 8-bit weights | 4-bit weights |
|---|---|---|---|
3B | about 6 GB | about 3 GB | about 1.5 GB |
7B | about 14 GB | about 7 GB | about 3.5 GB |
13B | about 26 GB | about 13 GB | about 6.5 GB |
70B | about 140 GB | about 70 GB | about 35 GB |
All values are weights only; add overhead before comparing with the memory you have.
What is quantization, and does it hurt quality?
Quantization is storing each weight with fewer bits, for example 4 bits instead of 16, so the model takes far less memory and usually runs faster. The cost is some loss of accuracy, because the weights are rounded. Moderate quantization such as 8-bit or 4-bit is widely used for local models and is often a good trade, while very low bit counts tend to hurt answers more. Test on your own tasks rather than assuming.
Do you need a GPU to run a local LLM?
You do not strictly need a GPU to run a local LLM, but it makes a big difference to speed. These are the main setups:
Setup | How it works | What to expect |
|---|---|---|
GPU with its own VRAM | The whole model sits in the graphics card's memory | Fastest, as long as the model fits in VRAM |
Unified memory | CPU and GPU share one large memory pool | Can hold larger models than many graphics cards; speed depends on memory bandwidth |
CPU only | The model runs from normal RAM | Works for small quantized models; noticeably slow for larger ones |
Split (partial offload) | Some layers on the GPU, the rest on the CPU | Lets a too-big model run, but slower than fitting it fully on the GPU |
How do you choose a model for the computer you already have?
Check your memory: VRAM if you have a dedicated GPU, otherwise total RAM or unified memory.
Reserve headroom for the operating system, other apps and the conversation cache.
Pick the largest model whose quantized weights fit in what is left, using the formula above.
If it is too slow, go smaller: a small language model that answers quickly is often more useful than a big one that crawls.
Read the model card on a hub such as Hugging Face for the file sizes and licence before downloading.
Common mistakes
Counting only the weights and forgetting the overhead, then running out of memory with long conversations.
Choosing a model by parameter count alone instead of testing it on your real tasks.
Expecting CPU-only speed to match a GPU.
Running many other heavy apps at the same time as the model.
Downloading model files from unknown sources instead of official pages.
Frequently Asked Questions
Can I run a local LLM on a laptop?
Yes, many laptops can run small quantized models. How large and how fast depends mainly on how much RAM, VRAM or unified memory the laptop has.
Does a local LLM need an internet connection?
Only to download the model and the software. After that, a local LLM runs on your own machine, so your prompts can stay on your computer.
Is more RAM or a better GPU more important?
Memory comes first, because a model that does not fit cannot run properly. Once it fits, a faster GPU and faster memory make each answer arrive sooner.
How much disk space do local LLMs take?
Each model file is roughly the size of its weights, so use the same formula: a 7B model at 4-bit is a few gigabytes. Keeping several models adds up quickly.
Key Takeaway
For a local LLM, memory decides what runs and memory speed decides how fast. Estimate weights as parameters × bytes per weight, add headroom, use quantization to fit, and choose the smallest model that does your job well.
Ready to start? You will learn to build LLM applications that can work with local or hosted models, step by step. Begin with the free course AI Engineering with LLMs: Beginner.
Related articles
More in LLM
What Is a Reasoning Model? How "Thinking" AI Works
A reasoning model is an LLM that writes out intermediate thinking before it answers. Learn how it works, when it helps, and why it is slower and uses more tokens.
6 min readNov 28, 2026Small Language Models vs LLMs
What a small language model (SLM) is, how it differs from a large language model, and how to choose between them for cost, privacy and quality.
4 min readNov 24, 2026What Is a Transformer? Attention Explained Simply
A plain-English guide to the transformer, the design behind modern language models: what attention means, how it works step by step, and a tiny Python example you can run.
5 min readNov 18, 2026What Are Open-Source LLMs? Run One Locally With Ollama
What open-source LLMs are, why people run them locally, and how Ollama lets you download and use one with a few commands.
3 min readNov 9, 2026What Are Top-k and Top-p in LLMs? How Do They Control AI Output?
Top-k and Top-p are sampling techniques that control which candidate tokens an LLM can choose from during generation. Understanding them is important for controlling creativity, diversity, and consistency in AI applications.
2 min readAug 30, 2026What Are Tokens and Tokenization in LLMs? Why Are They Important?
LLMs don't process text exactly like humans do. They process text as tokens. Understanding tokenization is essential for understanding context windows, API costs, model limits, and LLM performance.
2 min readAug 29, 2026
Comments
Sign in to join the discussion.


