Getting Started with Local LLMs (2026): The Complete Beginner's Guide
What Is a Local LLM and Why Run One?
A local LLM (large language model) is an AI chatbot that runs on your own computer instead of on a company's servers. Think of ChatGPT or Claude as a restaurant: you order, and the meal arrives from a kitchen you never see. A local model is cooking at home. Setup takes some effort and your stove limits the menu, but nothing leaves your house, and once a model is downloaded it works without internet.
| Local model | Cloud chatbot | |
|---|---|---|
| Your prompts | Stay on your computer | Sent to the provider's servers |
| Cost | Free software and models; you pay for hardware and electricity | Free tiers, then subscriptions or per-use fees |
| Internet | Not needed after the download | Always needed |
| Model size | Limited by your memory: 9B on an 8 GB card, 27B on 24 GB | The biggest models, far beyond a home PC |
| Speed | Depends on your hardware: an estimated 39 tok/s on an RTX 4060, 7 tok/s on a CPU alone | Handled by the provider |
| Setup | A few minutes, once | None |
Small models have caught up
Alibaba's model card for Qwen 3.5 9B lists 82.5 on MMLU-Pro, a hard multiple-choice exam, against 80.8 for OpenAI's gpt-oss-120b in the same table. That is the vendor's own number on one test, so treat it as a hint, but it shows why a 9B model is worth trying.Do You Have the Right Hardware? A Quick Check
The number that matters most is VRAM, the memory built into your graphics card. Picture a workbench: the model has to be laid out on it to be used, so a bigger bench holds a bigger model. If it does not fit, the overflow spills onto your regular RAM, a slower storage room down the hall, and everything slows down. With no graphics card, RAM is all you have. Check yours below, then find your size on the ladder.
- Windows: open Task Manager, go to Performance, click GPU, and read Dedicated GPU memory.
- Mac: Apple menu, About This Mac, then read Memory. Apple Silicon shares one pool of memory between the system and the GPU, so that total is what you work with.
- Linux: run nvidia-smi for an NVIDIA card or rocm-smi for an AMD card.
- No graphics card? Your system RAM counts instead. That works too, just more slowly.
- 6 GBAbout 4B parameters. Phi-4 Mini 3.8B needs 3.8 GB in total at Q4_K_M.
- 8 GB9B models at Q4_K_M. Qwen 3.5 9B needs 6.4 GB in total, with a little room to spare.
- 12 GBThe 9B model at Q8_0, a higher-quality version (11.0 GB in total, snug), or Gemma 4 12B at Q4_K_M (8.7 GB).
- 16 GBGemma 4 12B at Q6_K (11.6 GB in total), or the 9B at Q8_0 (11.0 GB) with room for long chats.
- 24 GB27B models at Q4_K_M, which score higher than 9B models on published benchmarks. Qwen 3.8 27B needs 19.0 GB in total.
- 48 GB+27B models at near-lossless Q8_0 (Qwen 3.8 27B: 32.8 GB in total), or 70B models squeezed down to Q3_K_M.
Why these totals are bigger than the download
Each total is the full memory a model needs: its weights (the file), plus short-term memory for an 8,192-token chat (about 6,000 words), plus about 12% working space. CanItRun also holds back 5% of a graphics card's memory for the driver, so an 8 GB card has 7.6 GB usable, and 8 GB of a Mac's memory for macOS and your apps.Step 1: Install Ollama (The Simplest Way to Start)
Ollama is a free, open-source app (MIT license) that downloads models and runs them for you. It finds your graphics card on its own, so there is nothing to configure. Run the command for your system below, or download the installer from ollama.com/download. On Windows and Mac you also get a small chat window.
# Mac or Linux (in Terminal)
curl -fsSL https://ollama.com/install.sh | sh
# Windows (in PowerShell)
irm https://ollama.com/install.ps1 | iex
# Check it worked (any system)
ollama -v
# Linux only, if the server is not running
ollama serve- Windows 10 22H2 or newer. NVIDIA owners need driver 551.61 or newer, per Ollama's Windows docs. Ollama then runs in the background.
- macOS 14 (Sonoma) or newer. Apple Silicon (M1 and later) uses the GPU; Intel Macs run on the CPU only.
- Linux: if chatting fails with a connection error, start the server with ollama serve.
Will Ollama use my graphics card?
Ollama supports recent NVIDIA drivers, AMD Radeon cards (through ROCm or Vulkan) and Apple Silicon. If your card is not supported, it falls back to the CPU: everything works, only slower. Step 3 shows how to tell.Step 2: Run Your First Model
With Ollama installed, running a model is one command. The first time, Ollama downloads the model (several GB, so allow a few minutes) and opens a chat prompt. Find your machine in the table, copy its command, and press Enter. Type a question and press Enter again. Type /bye to leave.
# Your first model
ollama run qwen3.5:9b
# Smaller, for CPU-only PCs
ollama run phi4-mini:3.8b
# Installed models / running now
ollama list
ollama ps
# Delete a model to free disk space
ollama rm qwen3.5:9b| Your machine | Command to run | Memory it needs | Estimated speed |
|---|---|---|---|
| 8 GB graphics card (RTX 4060) | ollama run qwen3.5:9b | 6.4 GB (7.6 GB usable) | 39 tok/s |
| 12 GB graphics card (RTX 3060 12GB) | ollama run qwen3.5:9b | 6.4 GB (11.4 GB usable) | 50 tok/s |
| 16 GB graphics card (RTX 5060 Ti 16GB) | ollama run qwen3.5:9b | 6.4 GB (15.2 GB usable) | 61 tok/s |
| Mac with 16 GB (Apple M4) | ollama run qwen3.5:9b | 6.4 GB (8 GB usable after macOS) | 17 tok/s |
| No graphics card, 16 GB of RAM | ollama run phi4-mini:3.8b | 3.8 GB (you have 16 GB of RAM) | 12 tok/s |
- More room? On a 12 GB or 16 GB card, ollama run qwen3.5:9b-q8_0 is a higher-quality version of the same model (11.0 GB in total), and ollama run gemma4:12b is a different model (8.7 GB in total). A 16 GB card has far more room left over for long chats.
- On an 8 GB card or a 16 GB Mac, nothing bigger fits comfortably. Keep chats short, and on a Mac close big apps first, because macOS needs its share.
- With no graphics card, ollama run qwen3.5:9b also works at about 7 tok/s, but it thinks out loud first, so the smaller model feels much quicker.
How these picks were chosen
For each machine we took CanItRun's default 'can run first' ranking, kept models that fit at Q4_K_M and have an official Ollama download, and found the top two on every graphics-card and Mac row are Ornith 1.5 9B and Qwen 3.5 9B (Ornith is a coding-focused model built on the same design). You start with the general-purpose one. A bigger card does not change the model; it unlocks a higher-quality version and longer chats. On a CPU, Qwen 3.5 9B manages only about 7 tok/s, so that row uses Phi-4 Mini, the highest-ranked model above 10 tok/s. (We skipped Gemma 4 E2B and E4B: their downloads are much larger than their names suggest.)- When the download finishes, the prompt reads >>> Send a message (/? for help). If you see it, you are running a local LLM.
- Qwen 3.5 is a 'thinking' model, so it may write out its reasoning first. That is normal. Type /set nothink to switch it off, and /set think to bring it back.
Step 3: Check Your Speed and Where It Is Running
Two quick checks show whether everything works. First, with a model loaded, run ollama ps in a second terminal. In the PROCESSOR column, 100% GPU is what you want; 100% CPU means your graphics card is not being used, and a split such as 48%/52% CPU/GPU means the model spilled into RAM. Second, type /set verbose in the chat and ask something: eval rate, printed after each reply, is your speed in tokens per second.
# In a second terminal, while a model is loaded
ollama ps
# Inside the chat, to see speed after each reply
/set verbose- A token is a piece of a word, about three quarters of a word on average (LM Studio's docs use the same ratio). At 5 tokens per second that is about 225 words a minute, roughly reading pace.
- Rule of thumb: under 5 tokens per second feels slow, 5 to 15 is comfortable for chat, and 30 or more streams faster than you can read.
Why the same model runs at different speeds
Imagine the model's weights as a book that must be read through once for every word it writes; faster memory is a faster reader. That is why the same Qwen 3.5 9B is estimated at 39 tok/s, 50 tok/s and 61 tok/s on an 8, 12 and 16 GB card, and why an M4 Mac manages 17 tok/s and an older M1 about 10 tok/s.Understanding the Basics: Models, Parameters, and Quantization
Four words come up constantly, and each has an everyday picture. After them, the bars show how big the same model is at each quantization level, as a share of its full 16-bit (FP16) size.
- Model: the AI itself, a big file of learned numbers called weights. In Qwen 3.5 9B, the 9B means 9 billion parameters.
- Parameters: the individual numbers inside the model, like knobs on a mixing desk. More knobs usually means a more capable model and a bigger file.
- Quantization: compression for those numbers, like saving a photo as a smaller JPEG. You lose a little detail and the file shrinks a lot.
- Context: the model's short-term memory for your chat, counted in tokens. Longer chats use more memory. Ollama's docs say it defaults to 4k tokens (about 3,000 words) on cards under 24 GB of VRAM; this page's numbers assume 8k.
A worked example, and the one rule to remember
At full 16-bit precision, the weights of Qwen 3.5 9B take about 18.0 GB. At Q4_K_M they take about 5.5 GB, roughly 30% of that, and it is what Ollama downloads by default. Q4 means about 4 bits per number, K is the method, and M is the medium variant. Stay at Q4_K_M or higher: quality falls off quickly below it, and LM Studio's own docs give the same advice.Prefer Clicking? Run Local LLMs With LM Studio
LM Studio is a desktop app with a ChatGPT-style window and a built-in model store, so you never open a terminal. It is free to use at home and at work (LM Studio's July 2025 announcement), though the app is closed source. It needs an Apple Silicon Mac on macOS 14 or newer, a Windows PC with AVX2 (16 GB of RAM and 4 GB of VRAM recommended), or Linux on Ubuntu 20.04 or newer.
- Download LM Studio from lmstudio.ai and install it.
- Open the Discover tab (Ctrl+2, or Cmd+2 on a Mac) and search for a model, for example Qwen3.5-9B.
- Pick a Q4_K_M file or better from a well-known publisher such as lmstudio-community or unsloth. Search results also include random re-uploads named 'abliterated' or 'uncensored' that you do not want for a first model.
- When it finishes, open the Chat tab, open the model loader, choose your model, and start typing.
Next Steps: Where to Go From Here
Pick whichever of these you are curious about next. The r/LocalLLaMA community on Reddit is a good place for news and troubleshooting (search before you post, as its rules ask), and Ollama has its own Discord and r/ollama.
LM Studio guide
A full desktop chat app. Open WebUI (pip install open-webui, Python 3.11) is a browser-based option for Ollama.
Go deeper on OllamaOllama setup guide
The local API, custom Modelfiles and troubleshooting.
Use it in your editorCoding agents guide
Ollama's docs cover VS Code, Cline, JetBrains and Zed, and suggest at least 64,000 tokens of context for coding tools. That needs far more memory than a short chat.
Understand your hardwareCanItRun calculator
Pick your GPU and see every model that fits, at which quantization, with estimated speed.
Understand quantizationGGUF Quantization Explained
Why some models run and others do not.
Own an 8 GB card?Best LLMs for 8 GB VRAM
Model picks for entry-level cards.
Own a 12 GB card?12 GB VRAM guide
Model picks for mid-range cards.
Own a 16 GB card?Best LLMs for 16 GB VRAM
Model picks for roomier cards.
Common Beginner Mistakes (and How to Avoid Them)
Almost everyone hits a few of these in the first week. Here is the list, so you can skip straight past them.
- Picking a model that is too big. If replies crawl, run ollama ps: a PROCESSOR value like 48%/52% CPU/GPU means the model spilled out of your graphics card. Choose a smaller model or quantization, and check the table above or the CanItRun calculator.
- Thinking the first reply is broken. A new model takes a few seconds to load, and a thinking model such as Qwen 3.5 then writes out its reasoning before it answers. Wait a moment, or type /set nothink.
- Forgetting that models stay loaded. Ollama keeps a model in memory for 5 minutes after your last message. To free the memory sooner, run ollama stop followed by the model name.
- Running two models at once. Ollama loads several only if there is free memory for all of them, so on a consumer card stick to one and check ollama ps.
- Comparing a local model to the biggest cloud chatbots. A 9B model on your PC is not a frontier model on a datacenter cluster. Compare local models with each other, and treat benchmark scores as a rough guide.
- Ignoring context length. Ollama's docs say it defaults to a 4k context on cards under 24 GB of VRAM, so long documents get cut off. For one chat, type /set parameter num_ctx 8192. For every chat, use the context slider in Ollama's settings, or start the server with OLLAMA_CONTEXT_LENGTH=8192 ollama serve. More context needs more memory, so recheck ollama ps.
- Downloading everything. Ollama lists qwen3.5:27b at 17 to 20 GB. Delete models you do not use with ollama rm.
Frequently asked questions
- Do I need a powerful GPU to get started?
- No. An 8 GB graphics card runs a 9B model: Qwen 3.5 9B needs 6.4 GB in total at Q4_K_M, and the calculator estimates 39 tok/s on an RTX 4060. With no graphics card, Ollama uses your CPU: on a laptop with 16 GB of RAM, expect an estimated 12 tok/s with a small model like Phi-4 Mini. Start with what you have.
- What is VRAM, and how is it different from RAM?
- VRAM is the memory on your graphics card, and RAM is what the rest of the computer uses. A model runs fastest when it fits entirely in VRAM. If it does not, the overflow goes into RAM and speed drops sharply. A Mac has one shared pool, so its total counts, minus what macOS and your apps use (the calculator holds back 8 GB).
- Is running local LLMs safe?
- Yes, with two caveats. Ollama's FAQ says it does not see your prompts or data when you run models locally. But it also offers cloud models, with names ending in :cloud, that run on Ollama's servers, so avoid those if privacy is the point (setting OLLAMA_NO_CLOUD=1 switches cloud features off). And local models can still be wrong, so check important answers as you would with any chatbot.
- How much does it cost to run local LLMs?
- The software is free: Ollama and llama.cpp are open source under the MIT license, and LM Studio is free to use. Many models, including Qwen 3.5 9B (Apache 2.0), are free to download, but check each license. You pay for hardware, disk space and electricity: a graphics card drawing 150 W for an hour a day uses about 4.5 kWh a month, which is $0.90 at 20 cents per kWh.
- Can I run local LLMs on a laptop?
- Yes. A 16 GB MacBook with an M4 chip runs Qwen 3.5 9B at an estimated 17 tok/s. A Windows laptop with a dedicated NVIDIA card works well, but check its VRAM, because laptop versions often have less than the desktop card with the same name. Thin laptops with integrated graphics run on the CPU, so use a small model like Phi-4 Mini. Plug in, because running a model drains a battery quickly.
- Which is the best first model to try?
- Qwen 3.5 9B (ollama run qwen3.5:9b) if you have an 8 GB or larger graphics card or a 16 GB Mac. It shares the top spot on CanItRun's board for those machines, and the family has many sizes under one name, such as qwen3.5:4b (Ollama lists 3.3 to 4.0 GB) if it is too big. On a CPU-only computer, start with Phi-4 Mini (ollama run phi4-mini:3.8b), which needs 3.8 GB in total.
- Should I use Ollama or LM Studio?
- Both run the same kinds of models. Ollama is command-first and open source; LM Studio is a full graphical app with built-in model search. If you are happy typing a command, start with Ollama. If you would rather click, start with LM Studio. You can try both.
- What does Q4_K_M mean?
- It is a quantization level, a way of compressing a model: about 4 bits per number, using the K method, medium variant. It shrinks Qwen 3.5 9B's weights from about 18.0 GB to about 5.5 GB, roughly 30%, with a small quality loss. Ollama downloads it by default. Stay at Q4_K_M or higher.