Observatory
Build Logs·Nov 22, 2026·8 min read

How to Run AI Models Locally on Your PC

A practical, hardware-first guide to running a local LLM on Windows, with no cloud, no subscription and no data leaving your machine.

run AI locally on PChow to run AI locallyfree ChatGPT alternative on PCbest local AI modelshow much RAM for local AIlocal LLM Windowsrun LLM offlinelocal AI setupOllamaLM StudioquantizationWindows
A few years ago, running a large language model on your own computer was a weekend experiment for people who enjoyed compiling things. In 2026 it is a ten-minute install. You download an app, pick a model, and you have a capable assistant that works offline, costs nothing per message, and never sends your prompts to anyone.
The catch is that most guides skip the part that actually decides whether your experience is good or miserable: your hardware. This guide starts there. By the end you will know how to run AI locally on a PC, which models fit your machine, and how to avoid the mistakes that make local AI feel slow.

Why run AI locally?

Cloud assistants are convenient, but local models have real advantages:
  • Privacy. Your prompts, documents and code stay on your machine. That matters for client work, contracts, financial notes and anything you would not paste into a website.
  • No per-use cost. After the hardware, every prompt is free. Heavy users and developers running thousands of calls save the most.
  • Offline access. Planes, bad Wi-Fi and outages stop mattering.
  • Control. You choose the model, the settings and the version. Nothing changes under you overnight.
  • A local API. Tools like Ollama and LM Studio expose an OpenAI-compatible endpoint on localhost, so you can plug a local model into your own apps and scripts.
Be realistic about the trade-off too. The best local models are very good, but the largest frontier models in the cloud are still stronger at hard reasoning and long, complex tasks. Local AI is best for everyday writing, summarizing, coding help, private document work and experimentation, and less suited to replacing top-tier cloud models for every job.

Step 1: Check your hardware (this decides everything)

A language model is a very large file of numbers (its “weights”) that must sit in fast memory while it runs. The faster that memory, the faster the replies. That gives you a simple hierarchy:
  1. GPU VRAM is the fastest. If the whole model fits in your graphics card’s memory, you get snappy responses.
  2. System RAM works too, but is much slower. If a model does not fully fit in VRAM, the rest spills into RAM and speed drops sharply.
  3. Apple unified memory (on Macs) acts as both, which is why Macs punch above their weight for local AI. This guide focuses on Windows PCs.

How to see what you have on Windows

  • System RAM: Press Ctrl + Shift + Esc to open Task Manager, then go to Performance > Memory.
  • GPU and VRAM: In the same Performance tab, click your GPU and look at “Dedicated GPU memory”. On NVIDIA cards you can also open Command Prompt or PowerShell and run nvidia-smi.

What your hardware can realistically run

Most people run quantized models, which store each weight in roughly 4 bits instead of 16. That shrinks a model to around a quarter of its original size with only a modest quality loss, and it is the reason a 7-billion-parameter model fits on an ordinary gaming laptop. A handy rule of thumb: at 4-bit quantization, budget roughly half a gigabyte per billion parameters, plus extra headroom for context.
Use this table as a starting point. Exact numbers vary by model and by how long your conversations are.
Your hardwareComfortable model size (4-bit)What to expect
8 GB RAM, no dedicated GPU1B to 3BBasic chat, summaries. Slow but usable.
16 GB RAM, no dedicated GPU7B to 8BDecent everyday assistant, modest speed.
GPU with 8 GB VRAM7B to 9BFast responses, limited room for long context.
GPU with 12 to 16 GB VRAM12B to ~20BThe sweet spot for most people.
GPU with 24 GB VRAM~30B classSerious local work, strong coding and reasoning.
32 GB+ VRAM or large unified memoryLarger stillEnthusiast territory.
Two cautions that save a lot of frustration:
  • Buy and choose for the model you want to run. VRAM is the one thing you cannot upgrade later on most cards.
  • Do not push past your VRAM. If you try to run a model that is slightly too big for your GPU, it will technically work but crawl, because layers are offloaded to system RAM. The fix is not a faster CPU. It is a smaller model, a more aggressive quantization, or more VRAM. Just like keeping Windows lightweight and stable without system modifications (as discussed in Building a Safer macOS-Style Setup for Windows 11), respecting your hardware boundaries keeps your setup reliable.
Also remember that long conversations and large documents use extra memory (the “context window”), so leave some headroom beyond the model file itself.

Step 2: Pick your tool (Ollama vs LM Studio vs Jan)

Three tools cover almost everyone. All are free to download and all run on Windows.
ToolBest forInterface
OllamaDevelopers, anyone who wants the quickest start and a local APICommand line, now with a desktop app
LM StudioBeginners and anyone who likes a polished visual interfaceFull desktop GUI
JanA simple, offline ChatGPT-style assistantDesktop app
Under the hood, most of these tools are built on the same open-source engine, llama.cpp, which is why improvements tend to benefit all of them at once.
My suggestion: if you are comfortable with a terminal, start with Ollama. If you would rather click than type, start with LM Studio. You can install both without conflict and try each in an afternoon.

Step 3A: Set up a local LLM on Windows with Ollama

Ollama is the fastest path from zero to a running model.
  1. Download and install. Go to ollama.com, download the Windows installer, and run it.
  2. Open a terminal. Use PowerShell or Command Prompt.
  3. Run a model. One command downloads the model the first time and then starts a chat:
    ollama run gpt-oss:20b
    That particular model is a good fit for a machine with roughly 16 GB of memory available. On a smaller machine, pick a smaller model from the Ollama library instead. Look for the 1B to 4B models for 8 GB systems and the 7B to 9B models for 8 GB GPUs.
  4. Chat. Type a question and press Enter. Type /bye to exit.
  5. See what is installed. Run ollama list. To free disk space, run ollama rm <model-name>.
Ollama also runs a local server in the background, so other apps can talk to it at http://localhost:11434. That is what makes it popular with developers: you can point scripts, coding assistants and chat front-ends at it without an API key.

Step 3B: Set up local AI with LM Studio (no terminal needed)

  1. Download and install LM Studio from lmstudio.ai.
  2. Open the Discover tab and search for a model. LM Studio shows size and quantization options and will usually flag whether a model is likely to fit your hardware.
  3. Download a model and wait for it to finish.
  4. Load it from the chat tab and start talking.
  5. Tune it if you like. LM Studio exposes the controls that matter on a given machine, including how many layers to offload to the GPU, the quantization level and the context length.
  6. Optional: switch on the local server to get an OpenAI-compatible API, just like Ollama.
LM Studio is also a good place to learn what is going on, because it makes the trade-offs between model size, quantization and speed visible.

Step 4: Choose a model that fits

New open models arrive constantly, so treat any list as a snapshot and check the model library of your chosen tool for the latest. As of late 2026, the families most often recommended for local use include:
  • Gemma 4 (Google): strong all-rounder, with sizes spanning small laptops to bigger GPUs.
  • Qwen3 (Alibaba): popular for multilingual work and coding, in many sizes.
  • gpt-oss (OpenAI's open-weight models): a capable 20B option that suits 16 GB-class machines.
  • Phi-4-mini (Microsoft): a compact text model for low-memory machines. Pick the “instruct” variant, because similarly named reasoning and multimodal models are separate checkpoints with different requirements.
A simple way to choose:
  • Low-end laptop: a small model in the 1B to 4B range, for quick drafts and summaries.
  • Typical gaming PC (8 to 12 GB VRAM): a 7B to 14B model for general use.
  • Coding help: a coding-tuned model that fits your VRAM, such as a Qwen3-Coder variant.
  • Best quality your hardware allows: the largest model that fits fully in VRAM at 4-bit quantization.
And a counterintuitive truth worth repeating: a well-matched 13B model often feels better than a 70B model that barely runs. Speed and responsiveness are part of quality.

Step 5: Make it nicer to use

Once the basics work, a few upgrades turn a terminal toy into a daily tool:
  • A chat interface. Open WebUI is a popular browser-based front end that connects to Ollama and gives you a ChatGPT-style experience, with history and document upload.
  • Chat with your files. Several local tools support retrieval over your own documents, so you can ask questions about PDFs and notes without uploading them anywhere.
  • Coding assistants. Editors and agents such as Cline can connect to a local Ollama or LM Studio model, giving you private code help.
  • Your own apps. Because the local server is OpenAI-compatible, you can point scripts, pipelines, and AI platforms like Diver AI to localhost with a single configuration change.

Step 6: Troubleshooting common problems

It is painfully slow. The model probably does not fit in VRAM and is spilling into system RAM. Try a smaller model or a lower-bit quantization, close other GPU-heavy apps, and check that your GPU is actually being used.

It crashes or fails to load. Usually an out-of-memory error. Choose a smaller model, shorten the context length, or close browsers and games.

The GPU is not used. Update your graphics drivers. On NVIDIA, confirm nvidia-smi works. In LM Studio, check the GPU offload setting.

Answers are poor. Make sure you picked an “instruct” or chat-tuned model rather than a base model, and try a larger size or a better quantization if you have the memory.

Downloads are huge. Models range from under 2 GB to tens of gigabytes. Keep an eye on disk space and delete models you no longer use.

How private is local AI, really?

The model itself runs entirely on your device, and that is a genuine privacy win. But privacy depends on the whole setup, not just the model. Connected tools, optional cloud fallbacks, plug-ins and application telemetry can still send data elsewhere. If privacy is the reason you are going local:
  • Check each app’s settings for telemetry and update checks.
  • Be careful with web-search or cloud-connected extensions.
  • Download models only from reputable sources.
  • Consider blocking the app’s network access once your models are downloaded, if you want a strictly offline setup.

For an in-depth guide on keeping documents, prompts, and local APIs private, read How to Use AI Without Sending Your Data to the Cloud.

Is it worth it?

Local AI makes the most sense if you care about privacy, use AI heavily, build software on top of language models, or simply enjoy understanding how this technology works. It makes less sense if you only need an occasional answer and have a machine with little memory. In that case a cloud assistant is simpler.
The good news is that trying it costs nothing. Install Ollama or LM Studio, download a small model, and see how your PC copes. If it feels good, scale up the model. If it does not, you have learned something useful about where your hardware stands before spending a cent on an upgrade.

Frequently asked questions

Quick-start checklist

  1. Check your RAM and VRAM in Task Manager.
  2. Install Ollama or LM Studio.
  3. Start with a model that fits comfortably in your VRAM at 4-bit.
  4. Add a chat interface or connect your editor once it works.
  5. Review privacy settings if staying private is the goal.
  6. Scale up the model size only if you have the memory for it.

Have a setup you want me to cover, or a GPU you are wondering about? Looking to stack free cloud API tiers instead of running models on your own GPU? Check out my guide on getting free AI tokens with FreeLLMAPI. Get in touch and it might become the next guide in the Observatory.