Run a Local LLM: Models, Hardware and Setup
Running a local LLM on your own machine requires no API key, imposes no daily cap and keeps every prompt private. Choose your GPU or Mac memory and context length below to see which verified open models fit, compare five runtimes and copy the exact start command.
What Can My Computer Run?
Estimates assume a Q4_K_M quantization. Macs share unified memory with macOS, leaving roughly 75% usable.
Local LLM Runtimes Compared
Every local runtime below downloads open-weight models and exposes an OpenAI-compatible API on localhost, so apps built for hosted APIs run offline on Windows, macOS or Linux by swapping a single base_url.
| Runtime | Interface | Systems | Local API | Best for |
|---|---|---|---|---|
| Jan | Desktop app | Windows, macOS, Linux | http://127.0.0.1:1337/v1 | Open-source offline desktop chat with local API |
| llama.cpp | CLI + llama-server | Windows, macOS, Linux | http://localhost:8080/v1 | Lean CPU or GPU serving of GGUF files |
| LM Studio | Desktop app + lms CLI | Windows, macOS, Linux | http://localhost:1234/v1 | Browsing and testing models with a GUI |
| Ollama | CLI + app | Windows, macOS, Linux | http://localhost:11434/v1 | Fastest start, one command per model |
| vLLM | CLI + Python server | Linux + NVIDIA/AMD GPU | http://localhost:8000/v1 | High-throughput serving for many users |
How to Run an LLM Locally
The fastest way to run an LLM locally on macOS, Windows or Linux is Ollama — install once, pull a quantized model that fits your GPU or unified memory, and call localhost:11434/v1.
Full Ollama setup guideInstall the Runtime
Download Ollama from ollama.com/download, or run its official install script on Linux.
Pull a Model That Fits
Pick a model from the fit checker above, for example ollama pull llama3.2.
Call It Like an API
Ollama serves http://localhost:11434/v1. Point any OpenAI SDK client straight at it.
Running an LLM Locally vs a Free API
| What matters | Local LLM | Free API tier |
|---|---|---|
| Limits | Only your hardware | Per minute and per day |
| Privacy | Prompts never leave your machine | Some providers may review free-tier prompts |
| Model size | Limited by memory, usually 3B to 30B | Up to 70B+ on hosted free tiers |
| Speed | Depends on your GPU or Apple Silicon | Fast, shared with other users |
| Works offline | Yes | No |
Local LLM Questions
Can I Run an LLM Locally Without a GPU?
Yes. Both Ollama and llama.cpp run quantized GGUF models on standard Windows, macOS and Linux CPUs using system RAM. Generation is slower than on a dedicated GPU, but compact 3B to 8B models at Q4_K_M remain usable for chat and drafting on modern laptops.
How Much RAM Do I Need to Run an LLM Locally?
Plan on 8 GB of VRAM (or 16 GB Apple Silicon unified memory) for 3B–8B models at Q4_K_M, 16 GB VRAM or 24 GB unified memory for 12B–24B models, and 48 GB+ (or a 64–128 GB Mac Studio) for 70B checkpoints. Use the hardware fit checker above to test longer context windows.
Why Run an LLM Locally?
Running an LLM locally gives you zero daily request caps, zero per-token billing, complete offline reliability and strict privacy since prompts never leave your machine. The main trade-off is being bounded by your local GPU VRAM or unified memory.
Is Running an LLM Locally Free?
Yes. Runtimes like Ollama, llama.cpp, vLLM and Jan are free open-source software (LM Studio is free for personal and workplace use), and open-weight models cost nothing to download. Always check each model license before commercial redistribution.