The question that decides whether a model will run locally on your machine is not how new your computer is. It is how many bytes the model needs, and how many you can spare.
This guide works through that arithmetic, then covers quantization, runtimes, licences and privacy. Figures from outside documents were read on December 5, 2026. Rows marked as estimates are our own multiplication, shown so you can check it. We have not tested any model or machine for this page.
If the term open weights is new to you, start with open-weight versus closed models, which defines it. This page assumes you have chosen to look at running one yourself.
The Memory Math Comes First
A model is mostly a very long list of numbers called parameters, or weights. To produce text, the runtime has to hold those numbers in memory. The size of that list in bytes is the parameter count multiplied by the bytes used per parameter.
Hugging Face’s quantization guide gives the anchor points. Models are usually loaded in a 16-bit format called bf16, at 2 bytes per parameter. An 8-billion-parameter model therefore needs about 16 GB for weights alone, about 8 GB at 8 bits, and about 4 to 5 GB at 4 bits.
Did you know? A 4-bit file rarely averages exactly 4 bits. The llama.cpp quantization table lists its Q4_K_M type at about 4.89 bits per weight on Llama 3.1 8B, because some parts of the model are stored at higher precision.
Estimated Weight Memory by Model Size
The table below applies the same multiplication to other sizes. It uses 2 bytes, 1 byte, and 4.9 bits per parameter, with 1 GB meaning one billion bytes. These are estimates for the weights only.
| Parameters (billions) | 16-bit (GB, estimate) | 8-bit (GB, estimate) | About 4.9 bits (GB, estimate) |
|---|---|---|---|
| 3 | 6 | 3 | 1.8 |
| 8 | 16 | 8 | 4.9 |
| 14 | 28 | 14 | 8.6 |
| 30 | 60 | 30 | 18.4 |
| 70 | 140 | 70 | 42.9 |
| 119 | 238 | 119 | 72.9 |
To redo a row: 14 billion parameters times 4.9 bits is 68.6 billion bits, and dividing by 8 gives about 8.6 billion bytes. The llama.cpp documentation reports 43.1 GB for a 70B model in Q4_K_M, close to the 42.9 GB estimate above. File listings sometimes use GiB (1,073,741,824 bytes) instead, so the same file can show a smaller number.
What Model Makers State
Two model cards read on December 5, 2026 show how this plays out. Mistral AI says Ministral 3 14B fits in 24 GB of graphics memory (VRAM) in its 8-bit FP8 release, and in less if quantized further. OpenAI says gpt-oss-20b, a 21-billion-parameter model, runs within 16 GB of memory using the 4-bit MXFP4 format it was trained to use.
Mixture-of-experts models need extra care. Mistral Small 4 lists 119 billion parameters with 6.5 billion activated per token. The smaller number describes the work done for each token, not the size of the download. Budget memory from the total, which puts this model, despite its name, near 73 GB even at about 4.9 bits.
Working Memory: The Part People Forget
Weights are not the whole bill. While generating, most language models keep a cache of intermediate values for every token already in the conversation, so they do not recompute them. Hugging Face’s cache documentation explains that this memory grows with the length of the sequence. A long document or a long chat therefore costs memory on top of the file.
The context window you configure sets the ceiling. Ollama picks a default from your available graphics memory:
| Available VRAM | Ollama default context (tokens) |
|---|---|
| Under 24 GiB | 4k |
| 24 to 48 GiB | 32k |
| 48 GiB or more | 256k |
Ollama’s documentation advises at least 64,000 tokens for agents, coding tools and web search tasks, and warns that a larger context needs more memory. So a model that chats comfortably on a modest card may not fit once you point a coding tool at it.
Two further settings matter. Ollama says serving parallel requests multiplies the context allocation: four simultaneous requests at 2,000 tokens need room for 8,000. It also offers a quantized cache when Flash Attention is on. The 8-bit option uses about half the memory of the default, and the 4-bit option about a quarter, with some loss of precision that the docs describe as more noticeable at the 4-bit level.
A practical rule, which is our judgment rather than a documented one: leave several gigabytes free beyond the file size, and more if you need long inputs. If a model only fits with nothing to spare, choose the next size down.
Quantization in Plain Terms
Quantization stores the weights with fewer bits each. The file gets smaller, it needs less memory, and it can run faster. The cost is some accuracy. The llama.cpp documentation says the loss is usually measured with perplexity or a similar statistic, and that an importance matrix built from sample data can reduce it.
Names such as Q8_0, Q5_K_M and Q4_K_M are types in GGUF, the file format llama.cpp uses. The digit is a rough guide to the bit width. The documented sizes for Llama 3.1 8B show the spread:
| Type | Bits per weight | File size (GiB) |
|---|---|---|
| F16 | 16.0 | 14.96 |
| Q8_0 | 8.5 | 7.95 |
| Q5_K_M | 5.7 | 5.33 |
| Q4_K_M | 4.9 | 4.58 |
| Q3_K_M | 4.0 | 3.74 |
Three habits help. First, compare quantization levels on your own prompts, since a size table says nothing about answer quality for your task. Second, when choosing between a bigger model at very low precision and a smaller one at moderate precision, try both instead of assuming. Third, quantize from a 16-bit or 32-bit original if you make files yourself; the llama.cpp notes warn that quantizing an already quantized file can severely reduce quality.
Choosing a Runtime
The runtime is the program that loads the file and answers requests. The five below cover most starting points. This summary comes from each project’s own documentation, not from a comparison we ran.
| Runtime | What its documentation describes | Hardware notes |
|---|---|---|
| Ollama | Command-line and app, with a local API | NVIDIA, AMD, Apple via Metal, Vulkan |
| LM Studio | Desktop app with model search and a local server | Apple Silicon Macs, Windows, Linux |
| llama.cpp | C/C++ engine with a command-line tool and API server | Wide range, local or cloud |
| MLX LM | Python package for generation and fine-tuning | Apple silicon |
| vLLM | Library for high-throughput serving | NVIDIA and AMD GPUs, several CPU types, plugins |
Desktop and Command-Line Options
LM Studio states its requirements clearly. On a Mac it needs Apple Silicon and macOS 14.0 or newer, with 16 GB of RAM recommended; 8 GB machines may work with small models and short contexts. Intel Macs are not supported. On Windows it recommends at least 16 GB of RAM and 4 GB of dedicated VRAM, and x64 processors need AVX2 support.
Ollama’s hardware page lists NVIDIA cards with compute capability 5.0 or higher and a recent driver, a set of AMD cards through ROCm, Apple GPUs through Metal, and Vulkan for further coverage. The command ollama ps shows whether a loaded model sits on the GPU, in system memory, or split between them. If a split appears and replies are slow, a smaller file or shorter context is the first thing to try.
llama.cpp is the lower-level choice. It can download a GGUF model from Hugging Face and run it from the terminal, or start a server that speaks an OpenAI-compatible API. MLX LM works with Hugging Face models on Apple silicon and can quantize them with a single convert command. Its README notes that models large relative to your RAM may run slowly, and that macOS 15 or newer lets it wire memory to help.
Serving Many Users
vLLM is aimed at a different job: answering many requests at once on server hardware. Its documentation lists continuous batching, careful management of the attention cache, several quantization formats and an OpenAI-compatible server. For one person chatting on a laptop it is more machinery than needed.
Our open models on your own computer collection lists sources that follow these tools.
Open-Weight Licences Are Not All the Same
Downloadable does not mean unrestricted. Read the licence file for the exact model and version before you build on it. Here is what five of them said on December 5, 2026.
| Licence | Where it applies (example) | Main conditions to notice |
|---|---|---|
| Apache 2.0 | Ministral 3 14B, Mistral Small 4, gpt-oss-20b, Gemma 4 | Commercial use allowed; keep notices, mark changed files; includes a patent grant |
| Llama 4 Community License | Llama 4 | Attribution and naming rules; separate licence above 700 million monthly users; no rights to multimodal models for EU-based people or companies |
| Gemma Terms of Use | Earlier Gemma models listed on the terms page | Use restrictions that you must pass on when distributing |
| Kimi K3 License | Kimi K3 | Extra terms for large model-as-a-service firms and large products |
| MiniMax M3 Community License | MiniMax M3 | Open grant covers non-commercial use; commercial use has added steps |
The Details Worth Reading
Under the Llama 4 agreement, anyone distributing the model or a product containing it must include the agreement and display a Built with Llama notice. A distributed model trained or improved using Llama outputs must start its name with Llama. The 700 million threshold is measured at the release date of that version. The use policy that the agreement incorporates also withholds rights to Llama 4 multimodal models from individuals domiciled in, and companies mainly based in, the European Union. It does not apply to end users of products built on them.
The Kimi K3 text reads like a permissive licence, then adds two conditions. A company selling model access as a service, with more than $20 million in revenue over 12 consecutive months, needs a separate agreement before commercial use. Products above 100 million monthly users or $20 million in monthly revenue must display the Kimi K3 name. Internal use is exempt from both.
MiniMax’s licence for M3 grants free use for non-commercial purposes. Commercial products must show a Built with MiniMax M3 notice. If the products and services using it earn $20 million a year or less, a one-time notice to MiniMax is enough; if they earn more, written authorization is required first. It also lists prohibited uses, including military ones.
Google’s case shows why version matters. Gemma 4 comes under Apache 2.0. The Gemma Terms of Use page, last modified April 1, 2026, says it covers the models listed in its appendix and sends Gemma 4 users to the other licence. Those older terms carry their own restrictions and a prohibited use policy. Check which one applies to the file you downloaded. This section is a reading aid, not legal advice.
What Local Running Does for Privacy
The main privacy gain is simple: if the model runs on your machine, your prompt does not need to travel to a provider.
LM Studio’s offline page says chatting, document chat and the local server work without an internet connection, and that what you type does not leave the device. Network requests still happen when you search for or download models, fetch runtimes, or check for app updates. Its privacy policy adds that cloud features, if you buy and use them, process data off the device.
Ollama’s FAQ says the company does not see prompts or data when you run locally. It also offers cloud-hosted models, which do process your prompts on its servers, though it says that content is not stored or used for training. You can turn cloud features off with the setting disable_ollama_cloud or the variable OLLAMA_NO_CLOUD=1. By default Ollama listens only on your own computer, and changing OLLAMA_HOST alters that.
Local does not mean secure by itself. Chat logs sit on your disk, any tool or plugin you connect may send data elsewhere, and a server opened to your network can be reached by others on it. Encrypt the disk, check which features call out, and keep the server private unless you have a reason not to.
Myth vs Fact
Myth: If the file fits on disk, the model will run. Fact: It has to fit in memory, with room left for the conversation cache and everything else the computer is doing.
Myth: A mixture-of-experts model only needs memory for its active parameters. Fact: The active figure describes computation per token. Size your memory from the total parameter count.
Myth: Local models are free to use however you like. Fact: Licences differ, and some add revenue thresholds, attribution or non-commercial limits.
Myth: Running locally removes all network traffic. Fact: Downloads, update checks and optional cloud features still connect out.
When an API Is the Better Choice
Hosted APIs charge per token, so light use is cheap. The AI News Bay price board, read on December 5, 2026, lists Ministral 3 14B from Mistral AI at $0.20 per million input tokens and $0.20 per million output tokens (checked November 24, 2026). It lists Mistral Small 4 at $0.15 input and $0.60 output (checked December 5, 2026). How we read these prices.
Here is an illustrative calculation with assumed volumes. At those list prices, one million input tokens plus one million output tokens costs $0.40 on the 14B model. If you assume you would spend $1,000 on hardware only for this, that money equals 2,500 such months of API use at that volume, before electricity or your time. Change the assumptions and the answer changes, which is the point: write down your real token counts first. Our guide to AI API cost per request shows how.
| Choose local when | Choose an API when |
|---|---|
| Data may not leave your machine or network | Your volume is low or uneven |
| You need it to work offline | You need a model too large for your hardware |
| You want a fixed model version you control | Several people need answers at once and you have no server |
| You already own suitable hardware | Nobody can maintain runtimes and updates |
A mixed setup is reasonable: a small local model for sensitive or routine text, and a hosted one for harder requests. Keep the switch explicit so private text is never sent by accident.
What This Means for You
- Developers: Compute weight memory, then add cache for your real context length and parallel requests. Pin the model file and quantization type so results can be reproduced.
- Founders and team leads: Have someone read the exact licence before launch, and compare hardware plus upkeep with your measured API bill, not a guessed one.
- Curious beginners: Start with a model whose file is well under your RAM, in a desktop app, and move up only if the answers fall short.
Copy-Ready Local Model Check
Model and version:
Total parameters (billions):
Quantization type and bits per weight:
Estimated weights in GB = parameters x bits / 8:
Context length I need (tokens):
Parallel requests:
Free RAM or VRAM on this machine:
Headroom left after weights:
Licence name, and does it allow my use:
Network features switched off:
API cost for my monthly tokens:
FAQ
Can I Run a Local Model Without a Graphics Card?
Often, yes. Ollama’s documentation describes loading a model entirely into system memory, and vLLM lists CPU support. Expect slower replies than on a suitable GPU, especially as models get larger.
How Much RAM Do I Need to Start?
LM Studio recommends at least 16 GB. By the estimates above, an 8B model at about 4.9 bits needs roughly 4.9 GB for weights, which leaves room for the system and a modest context. On 8 GB, stay with smaller models.
Is 4-bit Quality Good Enough?
It depends on the task. Fewer bits cost some accuracy, and the size of that cost varies by model and method. Run the same ten prompts from your own work at two precision levels and compare the answers yourself.
Do I Need the Internet After Setup?
Not for the core features LM Studio describes, once the model is downloaded. You need a connection again for new models, runtime downloads, updates and any cloud feature.
Can I Use a Downloaded Model in a Commercial Product?
Sometimes. Apache 2.0 permits it with notice requirements. Other licences in the table above attach thresholds, display rules or authorization steps, so check the file for your exact version.
Bottom Line
Work out the memory before you download: parameters times bits, divided by eight, plus room for the conversation. Then pick the runtime that matches the job, read the licence, and check which features still use the network. If your volume is small or the model you need is large, an API is likely the simpler path.
Want these updates by email? Sign up here, or follow new guides and data stories through our RSS feed.



