What it is
Most people use AI by sending a prompt over the internet to a company's servers. Local inference flips that. You download a model's files and run it yourself, on a laptop, a desktop with a graphics card, or a server you manage.
The word inference means using a trained model to produce an answer. Local simply says where that happens.
What you need
Three things decide whether a model will run well on your machine:
- Open files. The model must be released as an open-weight model, because closed models are only available through their provider's API.
- Enough memory. The model weights have to fit in fast memory. On a PC that means graphics card memory, see VRAM. On a Mac, the processor and graphics share one pool, see unified memory.
- Software to run it. Tools such as Ollama and llama.cpp load a model and give you a chat window or a local API that other programs can call.
Why compression matters
Full-size weights are large. Quantization stores them at lower precision so the same model takes far less memory, with some loss in quality. Formats such as GGUF package quantized models for local tools. A rough rule: the file size of the model is close to the memory you need, plus room for the KV cache that grows with long conversations.
Trade-offs
Reasons to run locally
- Privacy: sensitive text stays on your hardware.
- Cost shape: you pay for the machine and power, not for each token.
- Control: you choose the exact model and it does not change under you.
- Offline use: it works without a connection.
Reasons not to
- Capability: the largest models will not fit on consumer hardware, so you usually run a smaller one.
- Speed: tokens per second on a laptop is often below what a cloud service delivers.
- Upkeep: you handle updates, security and hardware.
How to decide
Try it on your own task before committing. Pull a small open model, run the prompts you actually use, and compare the results with your current cloud model. If the quality is good enough for routine work, local inference can cut cost and keep data in-house. If it is not, you have learned that cheaply.
Local inference is the opposite end from a hosted AI gateway or cloud API, and it overlaps with on-device AI, which usually means models built into phones and laptops by their makers.